-
-
Notifications
You must be signed in to change notification settings - Fork 783
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
win7下xmake编译cuda出错 #1972
Comments
应该是吧 xmake 搞跪了,这种情况很少,之前只有一次低版本 vs 编译器的bug 吧 xmake 搞跪的情况出现。。 你可以先自己调下 xmake/xmake/modules/core/tools/nvcc.lua Line 334 in edcbcd5
|
系统的用户名绝对不能有中文,有中文的话如果系统某些语言选项设置不正确是无法编译成功cuda程序的 |
如果中文编码问题,那可能跟 vs 有关,因为 nvcc 会内部调用 cl.exe ,但是 cl.exe 对 unicode 的处理支持,需要一些特殊处理。。 可以在 xmake/xmake/modules/core/tools/nvcc.lua Line 367 in 6654a88
这行,替换成 vstool.iorunv 调用,来尝试解决验证这个问题。 参考 xmake/xmake/modules/core/tools/cl.lua Line 448 in 5ffe41d
并导入相关模块:
|
现象:在cmd下,通过xmake编译xmake通过的CUDA测试代码console,出现问题如下:
从图中可以看出,编译到25%就退出来,也没提示任何的错误信息。
版本:
xmake:v2.6.2 HEAD.90e499cb2
操作系统:win7
vs : vs2019
The text was updated successfully, but these errors were encountered: