Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VirtualFluids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
iRMB
VirtualFluids
Commits
add5c578
Commit
add5c578
authored
3 years ago
by
peters
Browse files
Options
Downloads
Patches
Plain Diff
Set CMAKE_BUILD_TYPE to release, if it was not predefined.
parent
4eecf744
No related branches found
No related tags found
1 merge request
!56
Clean up Configuration File mess. Closes #18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+7
-6
7 additions, 6 deletions
CMakeLists.txt
with
7 additions
and
6 deletions
CMakeLists.txt
+
7
−
6
View file @
add5c578
...
...
@@ -14,6 +14,11 @@ cmake_minimum_required(VERSION 3.15..3.20 FATAL_ERROR)
project
(
VirtualFluids CXX
)
if
(
NOT DEFINED CMAKE_BUILD_TYPE
)
set
(
CMAKE_BUILD_TYPE Release
)
endif
()
message
(
STATUS
"CMAKE_BUILD_TYPE:
${
CMAKE_BUILD_TYPE
}
"
)
set
(
CMAKE_CXX_STANDARD 17
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
...
...
@@ -86,14 +91,11 @@ if(BUILD_VF_GPU)
message
(
FATAL_ERROR
"CUDA Compiler was requested but is not found on the system."
)
endif
()
set
(
CMAKE_CUDA_STANDARD 17
)
set
(
CMAKE_CUDA_STANDARD_REQUIRED TRUE
)
enable_language
(
CUDA
)
if
(
NOT DEFINED CMAKE_CUDA_ARCHITECTURES
)
message
(
WARNING
"CMAKE_CUDA_ARCHITECTURES was not defined and is set to 30 (CUDA support until 10.1 only)."
)
set
(
CMAKE_CUDA_ARCHITECTURES 30
)
...
...
@@ -101,7 +103,6 @@ if(BUILD_VF_GPU)
if
(
BUILD_CUDA_LTO
)
if
(
CMAKE_CUDA_ARCHITECTURES LESS 50
)
message
(
FATAL_ERROR
"CUDA Link time optimization requires CUDA 11.2 and CC 5.0."
)
else
()
...
...
@@ -116,8 +117,8 @@ if(BUILD_VF_GPU)
set
(
CMAKE_CUDA_FLAGS
"
${
CMAKE_CUDA_FLAGS
}
--extended-lambda"
)
message
(
"CMAKE_CUDA_FLAGS:
${
CMAKE_CUDA_FLAGS
}
"
)
message
(
"CUDA Architecture:
${
CMAKE_CUDA_ARCHITECTURES
}
"
)
message
(
STATUS
"CMAKE_CUDA_FLAGS:
${
CMAKE_CUDA_FLAGS
}
"
)
message
(
STATUS
"CUDA Architecture:
${
CMAKE_CUDA_ARCHITECTURES
}
"
)
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