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
0de25e9a
Commit
0de25e9a
authored
5 years ago
by
Matteo Cicuttin
Browse files
Options
Downloads
Patches
Plain Diff
CMakeLists.txt fixes.
parent
ca670a25
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
kokkos-testing/fd_catalog/CMakeLists.txt
+18
-6
18 additions, 6 deletions
kokkos-testing/fd_catalog/CMakeLists.txt
kokkos-testing/fd_catalog/fd_kokkos.cpp
+1
-0
1 addition, 0 deletions
kokkos-testing/fd_catalog/fd_kokkos.cpp
with
19 additions
and
6 deletions
kokkos-testing/fd_catalog/CMakeLists.txt
+
18
−
6
View file @
0de25e9a
...
...
@@ -8,11 +8,6 @@ set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
set
(
CMAKE_CXX_STANDARD 14
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
set
(
THREADS_PREFER_PTHREAD_FLAG ON
)
find_package
(
Threads REQUIRED
)
set
(
LINK_LIBS
${
LINK_LIBS
}
Threads::Threads
)
######################################################################
if
(
CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
)
set
(
COMPILER_IS_CLANG TRUE
)
...
...
@@ -24,6 +19,13 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "PGI")
set
(
COMPILER_IS_PGI
)
endif
()
set
(
THREADS_PREFER_PTHREAD_FLAG ON
)
find_package
(
Threads REQUIRED
)
if
(
COMPILER_IS_CLANG OR COMPILER_IS_INTEL OR COMPILER_IS_GNU
)
set
(
LINK_LIBS
${
LINK_LIBS
}
Threads::Threads
)
endif
()
find_package
(
SILO
)
if
(
SILO_FOUND
)
add_definitions
(
-DHAVE_SILO
)
...
...
@@ -138,7 +140,17 @@ endif()
option
(
ENABLE_OPENMP
"Enable OpenMP"
OFF
)
if
(
ENABLE_OPENMP
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fopenmp"
)
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"Clang"
OR CMAKE_CXX_COMPILER_ID STREQUAL
"AppleClang"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fopenmp"
)
endif
()
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"Intel"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-qopenmp"
)
endif
()
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"GNU"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fopenmp"
)
endif
()
endif
()
set
(
CMAKE_CXX_FLAGS_DEBUG
"-g"
)
...
...
This diff is collapsed.
Click to expand it.
kokkos-testing/fd_catalog/fd_kokkos.cpp
+
1
−
0
View file @
0de25e9a
...
...
@@ -188,6 +188,7 @@ double solve_kokkos(wave_equation_context_kokkos<T>& wec)
static
const
T
w4
=
-
1.0
/
560.0
;
static
const
T
w
[
9
]
=
{
w4
,
w3
,
w2
,
w1
,
w0
,
w1
,
w2
,
w3
,
w4
};
/* Find a way to disable this when compiling Kokkos/GPU */
#ifdef DISALLOW_DENORMALS
_MM_SET_FLUSH_ZERO_MODE
(
_MM_FLUSH_ZERO_ON
);
_MM_SET_DENORMALS_ZERO_MODE
(
_MM_DENORMALS_ZERO_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