Closed ArberSephirotheca closed 1 week ago
try this patch. https://github.com/xmake-io/xmake/pull/5319
xmake update -s github:xmake-io/xmake#cuda
@waruqi Thanks for the help! That patch does not fix, I tried to change the line 108 to
elseif is_host("linux") and is_arch("x86_64", "arm64-v8a") then
It fixes the problem.
Strange, why would it be arm64-v8a?
Can you run
xmake l os.arch
uname -a
xmake f -cvD
xmake -rv
and provide all logs? I need to check your machine arch.
try it again, I have fixed arm64 arch name. https://github.com/xmake-io/xmake/pull/5319
@waruqi The problem now is resolved. Thanks!
Xmake Version
xmake v2.9.3+20240703
Operating System Version and Architecture
Ubuntu 22.04, Arm64
Describe Bug
When I tried to build cuda program with xmake, the linker cannot find the related library during linking.
It turns out that in arm64 architecture, the cuda libraries are stored under
/usr/local/cuda/lib64
instead of/usr/local/cuda/lib
. but therpath
is pointed to the later path by default, making linker unable to find the library.Expected Behavior
The cuda program should be built successfully.
Project Configuration
Additional Information and Error Logs