Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
snippets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Matteo Cicuttin
snippets
Commits
30849133
Commit
30849133
authored
5 years ago
by
Matteo Cicuttin
Browse files
Options
Downloads
Patches
Plain Diff
Fixed linking in fd_catalog.
parent
f0386bda
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
kokkos-testing/fd_catalog/CMakeLists.txt
+46
-2
46 additions, 2 deletions
kokkos-testing/fd_catalog/CMakeLists.txt
with
46 additions
and
2 deletions
kokkos-testing/fd_catalog/CMakeLists.txt
+
46
−
2
View file @
30849133
cmake_minimum_required
(
VERSION 3.10 FATAL_ERROR
)
project
(
fd_catalog
)
cmake_minimum_required
(
VERSION 3.10
)
include
(
CheckLanguage
)
find_package
(
CUDA
)
set
(
CMAKE_CXX_STANDARD 17
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
option
(
ENABLE_CUDA
"Enable CUDA if present"
ON
)
if
(
ENABLE_CUDA
)
check_language
(
CUDA
)
if
(
CMAKE_CUDA_COMPILER
)
enable_language
(
CUDA
)
set
(
CMAKE_CUDA_STANDARD 14
)
set
(
CMAKE_CUDA_STANDARD_REQUIRED ON
)
add_definitions
(
-DHAVE_CUDA
)
set
(
HAVE_CUDA TRUE
)
endif
()
endif
()
set
(
CMAKE_CXX_FLAGS_DEBUG
"-g"
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"-O3 -DNDEBUG"
)
set
(
CMAKE_CXX_FLAGS_RELEASEASSERT
"-O3 -g -fpermissive"
)
option
(
ENABLE_SINGLE
"Enable single precision build"
ON
)
if
(
ENABLE_SINGLE
)
if
(
HAVE_CUDA
)
add_executable
(
fd_catalog_single fd_main.cpp fd_wave_cuda.cu
)
if
(
APPLE
)
set_property
(
TARGET fd_catalog_single PROPERTY BUILD_RPATH /usr/local/cuda/lib
)
endif
()
else
()
add_executable
(
fd_catalog_single fd_main.cpp
)
endif
()
target_compile_definitions
(
fd_catalog_single PUBLIC -DSINGLE_PRECISION
)
endif
()
option
(
ENABLE_DOUBLE
"Enable double precision build"
ON
)
if
(
ENABLE_DOUBLE
)
if
(
HAVE_CUDA
)
add_executable
(
fd_catalog_double fd_main.cpp fd_wave_cuda.cu
)
if
(
APPLE
)
set_property
(
TARGET fd_catalog_double PROPERTY BUILD_RPATH /usr/local/cuda/lib
)
endif
()
else
()
add_executable
(
fd_catalog_double fd_main.cpp
)
endif
()
endif
()
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