Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
André Pedro
CMake
Commits
613b3e49
Commit
613b3e49
authored
8 years ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
CUDA: Fix spelling of CudaOnly.SeparateCompilation test targets
parent
52d39264
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tests/CudaOnly/SeparateCompilation/CMakeLists.txt
+8
-8
8 additions, 8 deletions
Tests/CudaOnly/SeparateCompilation/CMakeLists.txt
with
8 additions
and
8 deletions
Tests/CudaOnly/SeparateCompilation/CMakeLists.txt
+
8
−
8
View file @
613b3e49
...
...
@@ -12,22 +12,22 @@ project (CudaOnlySeparateCompilation CUDA)
string
(
APPEND CMAKE_CUDA_FLAGS
" -gencode arch=compute_30,code=compute_30"
)
set
(
CMAKE_CXX_STANDARD 11
)
set
(
CMAKE_CUDA_STANDARD 11
)
add_library
(
CUDASe
r
arateLibA STATIC file1.cu file2.cu file3.cu
)
add_library
(
CUDASe
p
arateLibA STATIC file1.cu file2.cu file3.cu
)
#Having file4/file5 in a shared library causes serious problems
#with the nvcc linker and it will generate bad entries that will
#cause a segv when trying to run the executable
#
add_library
(
CUDASe
r
arateLibB STATIC file4.cu file5.cu
)
target_link_libraries
(
CUDASe
r
arateLibB PRIVATE CUDASe
r
arateLibA
)
add_library
(
CUDASe
p
arateLibB STATIC file4.cu file5.cu
)
target_link_libraries
(
CUDASe
p
arateLibB PRIVATE CUDASe
p
arateLibA
)
add_executable
(
CudaOnlySeparateCompilation main.cu
)
target_link_libraries
(
CudaOnlySeparateCompilation PRIVATE CUDASe
r
arateLibB
)
target_link_libraries
(
CudaOnlySeparateCompilation PRIVATE CUDASe
p
arateLibB
)
set_target_properties
(
CUDASe
r
arateLibA
CUDASe
r
arateLibB
set_target_properties
(
CUDASe
p
arateLibA
CUDASe
p
arateLibB
PROPERTIES CUDA_SEPARABLE_COMPILATION ON
)
set_target_properties
(
CUDASe
r
arateLibA
CUDASe
r
arateLibB
set_target_properties
(
CUDASe
p
arateLibA
CUDASe
p
arateLibB
PROPERTIES POSITION_INDEPENDENT_CODE ON
)
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