Skip to content

Commit

Permalink
improve to find cuda for linux arm64 #5317
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jul 9, 2024
1 parent 46952b0 commit 85f26eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/modules/detect/sdks/find_cuda.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function _find_cuda(sdkdir)
if is_host("windows") then
local subdir = is_arch("x64") and "x64" or "Win32"
table.insert(linkdirs, path.join(sdkdir, "lib", subdir))
elseif is_host("linux") and is_arch("x86_64") then
elseif is_host("linux") and is_arch("x86_64", "arm64") then
table.insert(linkdirs, path.join(sdkdir, "lib64"))
else
table.insert(linkdirs, path.join(sdkdir, "lib"))
Expand Down

0 comments on commit 85f26eb

Please sign in to comment.