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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Matteo Cicuttin
snippets
Commits
76070d77
Commit
76070d77
authored
5 years ago
by
Matteo Cicuttin
Browse files
Options
Downloads
Patches
Plain Diff
Added pthreads to CMakeLists.txt.
parent
374afe26
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
+5
-0
5 additions, 0 deletions
kokkos-testing/fd_catalog/CMakeLists.txt
with
5 additions
and
0 deletions
kokkos-testing/fd_catalog/CMakeLists.txt
+
5
−
0
View file @
76070d77
...
@@ -6,6 +6,9 @@ include(FetchContent)
...
@@ -6,6 +6,9 @@ include(FetchContent)
set
(
CMAKE_CXX_STANDARD 14
)
set
(
CMAKE_CXX_STANDARD 14
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
set
(
THREADS_PREFER_PTHREAD_FLAG ON
)
find_package
(
Threads REQUIRED
)
option
(
ENABLE_KOKKOS
"Enable Kokkos"
ON
)
option
(
ENABLE_KOKKOS
"Enable Kokkos"
ON
)
if
(
ENABLE_KOKKOS
)
if
(
ENABLE_KOKKOS
)
FetchContent_Declare
(
kokkos
FetchContent_Declare
(
kokkos
...
@@ -54,6 +57,7 @@ if (ENABLE_SINGLE)
...
@@ -54,6 +57,7 @@ if (ENABLE_SINGLE)
endif
()
endif
()
target_compile_definitions
(
fd_catalog_single PUBLIC -DSINGLE_PRECISION
)
target_compile_definitions
(
fd_catalog_single PUBLIC -DSINGLE_PRECISION
)
target_link_libraries
(
fd_catalog_single siloh5
)
target_link_libraries
(
fd_catalog_single siloh5
)
target_link_libraries
(
fd_catalog_single Threads::Threads
)
endif
()
endif
()
option
(
ENABLE_DOUBLE
"Enable double precision build"
ON
)
option
(
ENABLE_DOUBLE
"Enable double precision build"
ON
)
...
@@ -67,4 +71,5 @@ if (ENABLE_DOUBLE)
...
@@ -67,4 +71,5 @@ if (ENABLE_DOUBLE)
add_executable
(
fd_catalog_double fd_main.cpp
)
add_executable
(
fd_catalog_double fd_main.cpp
)
endif
()
endif
()
target_link_libraries
(
fd_catalog_double siloh5
)
target_link_libraries
(
fd_catalog_double siloh5
)
target_link_libraries
(
fd_catalog_double Threads::Threads
)
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