Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
tilelang
Commits
37b3dbde
Unverified
Commit
37b3dbde
authored
Oct 17, 2025
by
LJC00118
Committed by
GitHub
Oct 17, 2025
Browse files
[Enhancement] Improve CUDA compiler detection in CMake (#1054)
* improve CUDA compiler detection in CMake * Minor fix
parent
1281d6f8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
CMakeLists.txt
CMakeLists.txt
+1
-0
No files found.
CMakeLists.txt
View file @
37b3dbde
...
...
@@ -116,6 +116,7 @@ elseif(USE_ROCM)
elseif
(
USE_CUDA
)
set
(
CMAKE_CUDA_STANDARD 17
)
find_package
(
CUDAToolkit REQUIRED
)
set
(
CMAKE_CUDA_COMPILER
"
${
CUDAToolkit_BIN_DIR
}
/nvcc"
)
add_compile_definitions
(
"CUDA_MAJOR_VERSION=
${
CUDAToolkit_VERSION_MAJOR
}
"
)
# Set `USE_CUDA=/usr/local/cuda-x.y`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment