Open jalaxy33 opened 1 month ago
Bot detected the issue body's language is not English, translate it automatically.
Title: libtorch cannot use gpu & mkl hash value mismatch
sha 问题,可以直接来个 pr 过来修复下
Bot detected the issue body's language is not English, translate it automatically.
For sha problems, you can directly send a PR to fix it.
sha 问题,可以直接来个 pr 过来修复下
我刚开始学 xmake,请问包的 sha 要在哪里获得呢?@waruqi
Bot detected the issue body's language is not English, translate it automatically.
For sha problems, you can directly send a PR to fix it.
I just started learning xmake. Where can I get the sha package? @waruqi
sha 问题,可以直接来个 pr 过来修复下
我刚开始学 xmake,请问包的 sha 要在哪里获得呢?@waruqi
下载包的 tar 源码包后,使用 shasum -a 256 filepath 获取,或者用 xmake l hash.sha256 filepath
Bot detected the issue body's language is not English, translate it automatically.
sha problem, you can directly send a PR to fix it
I just started learning xmake. Where can I get the sha package? @waruqi
After downloading the tar source package of the package, use shasum -a 256 filepath to obtain it, or use xmake l hash.sha256 filepath
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 值不匹配:
Expected Behavior
Project Configuration
xmake.lua
测试代码
main.cpp
:预期输出:
Additional Information and Error Logs