diff options
| author | ruki <[email protected]> | 2019-07-11 17:22:44 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-07-11 17:22:44 +0800 |
| commit | 4bc4a680ec5b6769955f655aa0bc0c0da56cbe80 (patch) | |
| tree | 31f3c0c1a5a26d3fafb0d65fae89ce2ca45c61c6 /xmake/modules/detect | |
| parent | c43290bea303900e334243e4b38a8f4f72b8cf9d (diff) | |
| parent | b11c6f57662624732501045e6cccf6b6188dacee (diff) | |
Merge pull request #481 from OpportunityLiu/improve-find_cuda
improve find_cuda
Diffstat (limited to 'xmake/modules/detect')
| -rw-r--r-- | xmake/modules/detect/sdks/find_cuda.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/detect/sdks/find_cuda.lua b/xmake/modules/detect/sdks/find_cuda.lua index b7fb4911e..54b8f21cf 100644 --- a/xmake/modules/detect/sdks/find_cuda.lua +++ b/xmake/modules/detect/sdks/find_cuda.lua @@ -31,10 +31,13 @@ function _find_sdkdir() -- init the search directories local pathes = {} if os.host() == "macosx" then + table.insert(pathes, "/Developer/NVIDIA/CUDA/bin") table.insert(pathes, "/Developer/NVIDIA/CUDA*/bin") elseif os.host() == "windows" then table.insert(pathes, "$(env CUDA_PATH)/bin") else + -- find from default symbol link dir + table.insert(pathes, "/usr/local/cuda/bin") table.insert(pathes, "/usr/local/cuda*/bin") end table.insert(pathes, "$(env PATH)") |
