-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
libtorch无法使用gpu & mkl 哈希值不匹配 #5595
Comments
Title: libtorch cannot use gpu & mkl hash value mismatch |
sha 问题,可以直接来个 pr 过来修复下 |
For sha problems, you can directly send a PR to fix it. |
我刚开始学 xmake,请问包的 sha 要在哪里获得呢?@waruqi |
I just started learning xmake. Where can I get the sha package? @waruqi |
下载包的 tar 源码包后,使用 shasum -a 256 filepath 获取,或者用 |
After downloading the tar source package of the package, use shasum -a 256 filepath to obtain it, or use |
Xmake Version
v2.9.5+HEAD.d30de52e9
Operating System Version and Architecture
Windows 11 23H2
Describe Bug
尝试编译 xmake-repo 中的 libtorch,遇到如下问题。
问题一:libtorch 无法使用 GPU
尝试编译 cuda 版 libtorch:
编译通过,但是 torch::cuda::is_available() 返回 false,即无法使用 gpu。
查询网上的解决方法,尝试添加链接器选项,无效:
目前,使用从官网下载的预编译 libtorch 库可以使用 gpu,但是希望直接使用 xmake-repo 中的 libtorch。
问题二:mkl 库 SHA 值不匹配
修改选项 blas='mkl':
该选项需要 mkl 库。编译报错,显示 mkl 库的 SHA 值不匹配:
error: unmatched checksum, current hash(48c71fa0) != original hash(e760103a)
Expected Behavior
Project Configuration
xmake.lua
测试代码
main.cpp
:预期输出:
hello world! Using cuda
Additional Information and Error Logs
The text was updated successfully, but these errors were encountered: