Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arbor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
arbor-sim
arbor
Commits
f2107b4b
Unverified
Commit
f2107b4b
authored
3 years ago
by
Thorsten Hater
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Include CMAKE+CUDA iff NVCC is needed. (#1855)
parent
19718283
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+2
-1
2 additions, 1 deletion
CMakeLists.txt
with
2 additions
and
1 deletion
CMakeLists.txt
+
2
−
1
View file @
f2107b4b
...
...
@@ -97,7 +97,6 @@ option(ARB_WITH_PYTHON "enable Python front end" OFF)
set
(
CMAKE_MODULE_PATH
"
${
PROJECT_SOURCE_DIR
}
/cmake"
)
include
(
GitSubmodule
)
# required for check_git_submodule
include
(
ErrorTarget
)
# reguired for add_error_target
include
(
FindCUDAToolkit
)
# Set release as the default build type (CMake default is debug.)
...
...
@@ -110,6 +109,7 @@ endif()
# Add CUDA as a language if GPU support requested. (This has to be set early so
# as to enable CUDA tests in generator expressions.)
if
(
ARB_GPU STREQUAL
"cuda"
)
include
(
FindCUDAToolkit
)
set
(
ARB_WITH_NVCC TRUE
)
# CMake 3.18 and later set the default CUDA architecture for
# each target according to CMAKE_CUDA_ARCHITECTURES.
...
...
@@ -128,6 +128,7 @@ if(ARB_GPU STREQUAL "cuda")
endif
()
endif
()
elseif
(
ARB_GPU STREQUAL
"cuda-clang"
)
include
(
FindCUDAToolkit
)
set
(
ARB_WITH_CUDA_CLANG TRUE
)
enable_language
(
CUDA
)
elseif
(
ARB_GPU STREQUAL
"hip"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment