Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
Visualization
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
Container registry
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Modules
Visualization
Commits
96de53d3
Commit
96de53d3
authored
4 years ago
by
Simone Bna
Browse files
Options
Downloads
Patches
Plain Diff
BUG
#4
: workaround for having CUDA 10 compiler working with gcc8
parent
f8a8c546
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
src/catalyst/CMakeLists.txt
+9
-0
9 additions, 0 deletions
src/catalyst/CMakeLists.txt
src/runTimePostProcessing/CMakeLists.txt
+9
-0
9 additions, 0 deletions
src/runTimePostProcessing/CMakeLists.txt
with
18 additions
and
0 deletions
src/catalyst/CMakeLists.txt
+
9
−
0
View file @
96de53d3
...
@@ -12,6 +12,15 @@ if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)
...
@@ -12,6 +12,15 @@ if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)
"In-source builds disallowed. Use a separate build directory"
)
"In-source builds disallowed. Use a separate build directory"
)
endif
()
endif
()
# workaround to fix a problem with GCC and CUDA 10, fixed in CUDA 11
# see https://github.com/LLNL/blt/issues/341
# an alternative is to add: -Xcompiler=-mno-float128
if
(
(
CMAKE_CXX_COMPILER_ID MATCHES GNU
)
AND
(
CMAKE_SYSTEM_PROCESSOR MATCHES ppc64le
)
)
if
(
CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 8.0
)
set
(
CMAKE_CUDA_FLAGS
"
${
CMAKE_CUDA_FLAGS
}
-std=c++11"
)
endif
()
endif
()
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# Simple discovery and sanity checks
# Simple discovery and sanity checks
...
...
This diff is collapsed.
Click to expand it.
src/runTimePostProcessing/CMakeLists.txt
+
9
−
0
View file @
96de53d3
...
@@ -12,6 +12,15 @@ if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)
...
@@ -12,6 +12,15 @@ if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)
"In-source builds disallowed. Use a separate build directory"
)
"In-source builds disallowed. Use a separate build directory"
)
endif
()
endif
()
# workaround to fix a problem with GCC and CUDA 10, fixed in CUDA 11
# see https://github.com/LLNL/blt/issues/341
# an alternative is to add: -Xcompiler=-mno-float128
if
(
(
CMAKE_CXX_COMPILER_ID MATCHES GNU
)
AND
(
CMAKE_SYSTEM_PROCESSOR MATCHES ppc64le
)
)
if
(
CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 8.0
)
set
(
CMAKE_CUDA_FLAGS
"
${
CMAKE_CUDA_FLAGS
}
-std=c++11"
)
endif
()
endif
()
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Simple discovery and sanity checks
# Simple discovery and sanity checks
...
...
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