Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cudaErrorNoDevice 卡较长时间 #5058

Closed
TOMO-CAT opened this issue May 5, 2024 · 2 comments
Closed

cudaErrorNoDevice 卡较长时间 #5058

TOMO-CAT opened this issue May 5, 2024 · 2 comments
Labels

Comments

@TOMO-CAT
Copy link

TOMO-CAT commented May 5, 2024

Xmake 版本

xmake v2.8.9+dev.50dbca648

操作系统版本和架构

Ubuntu 2204

描述问题

背景是开发机上安装了 cuda、cudann 等相关库,但是没有英伟达显卡,xmake -b 或者 xmake r 时会卡在 checking for cuda devices 较长时间。
image

期待的结果

希望可以通过设置关掉这个检测。

工程配置

附加信息和错误日志

  • [ ]
@TOMO-CAT TOMO-CAT added the bug label May 5, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: cudaErrorNoDevice stuck for a long time

@waruqi
Copy link
Member

waruqi commented May 5, 2024

只有 add_cugencodes 里面配置了 native,才会走到这个 find 逻辑,如果不想自动探测,就不要 传 native

if archs == "native" then

@TOMO-CAT TOMO-CAT closed this as completed May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants