Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
psrdada_cpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MPIfR-BDG
psrdada_cpp
Commits
1827b9d5
Commit
1827b9d5
authored
6 years ago
by
Ewan Barr
Browse files
Options
Downloads
Patches
Plain Diff
updated cuda.cmake to handle stupid unresolved extern function errors when compiling with gencode
parent
40af6ee8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/cuda.cmake
+6
-2
6 additions, 2 deletions
cmake/cuda.cmake
with
6 additions
and
2 deletions
cmake/cuda.cmake
+
6
−
2
View file @
1827b9d5
...
@@ -14,10 +14,14 @@ if(ENABLE_CUDA)
...
@@ -14,10 +14,14 @@ if(ENABLE_CUDA)
set
(
CUDA_PROPAGATE_HOST_FLAGS OFF
)
set
(
CUDA_PROPAGATE_HOST_FLAGS OFF
)
# Pass options to NVCC ( -ccbin /path --compiler-options -lfftw3f --compiler-options -lm --verbose)
# Pass options to NVCC ( -ccbin /path --compiler-options -lfftw3f --compiler-options -lm --verbose)
list
(
APPEND CUDA_NVCC_FLAGS -DENABLE_CUDA --std c++11
)
list
(
APPEND CUDA_NVCC_FLAGS -DENABLE_CUDA --std c++11
-Wno-deprecated-gpu-targets
)
list
(
APPEND CUDA_NVCC_FLAGS_DEBUG --debug; --device-debug; --generate-line-info -Xcompiler
"-Werror"
)
list
(
APPEND CUDA_NVCC_FLAGS_DEBUG --debug; --device-debug; --generate-line-info -Xcompiler
"-Werror"
)
#list(APPEND CUDA_NVCC_FLAGS -arch compute_35) # minumum compute level (Sps restriction)
#list(APPEND CUDA_NVCC_FLAGS -arch compute_35) # minumum compute level (Sps restriction)
list
(
APPEND CUDA_NVCC_FLAGS -gencode arch=compute_61,code=sm_61
)
# GTX1080Ti
string
(
TOUPPER
"
${
CMAKE_BUILD_TYPE
}
"
uppercase_CMAKE_BUILD_TYPE
)
if
(
NOT uppercase_CMAKE_BUILD_TYPE MATCHES
"DEBUG"
)
message
(
"Enabling device specific compilation as not in DEBUG mode"
)
list
(
APPEND CUDA_NVCC_FLAGS -gencode arch=compute_61,code=sm_61
)
# GTX1080Ti
endif
(
NOT uppercase_CMAKE_BUILD_TYPE MATCHES
"DEBUG"
)
#list(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_52,code=sm_52) # TitanX
#list(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_52,code=sm_52) # TitanX
#list(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_50,code=sm_50) # Maxwell
#list(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_50,code=sm_50) # Maxwell
#list(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_37,code=sm_37) # K80
#list(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_37,code=sm_37) # K80
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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