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
df23de0d
Commit
df23de0d
authored
3 years ago
by
Martin Schönherr
Browse files
Options
Downloads
Patches
Plain Diff
changed CMakeLists.txt of GridGenerator
parent
62ca8b91
No related branches found
No related tags found
1 merge request
!75
deletet all gpu related files, changed alle .cu files to .cpp files and add...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/gpu/GridGenerator/CMakeLists.txt
+1
-14
1 addition, 14 deletions
src/gpu/GridGenerator/CMakeLists.txt
with
1 addition
and
14 deletions
src/gpu/GridGenerator/CMakeLists.txt
+
1
−
14
View file @
df23de0d
project
(
GridGenerator LANGUAGES CUDA CXX
)
project
(
GridGenerator LANGUAGES CXX
)
vf_add_library
(
PRIVATE_LINK basics OpenMP::OpenMP_CXX
)
vf_get_library_name
(
library_name
)
set_target_properties
(
${
library_name
}
PROPERTIES CUDA_SEPARABLE_COMPILATION ON
)
# according to linker error when building static libraries.
# https://stackoverflow.com/questions/50033435/cmake-cuda-separate-compilation-static-lib-link-error-on-windows-but-not-on-ubun
if
(
NOT BUILD_SHARED_LIBRARY
)
set_target_properties
(
${
library_name
}
PROPERTIES CUDA_RESOLVE_DEVICE_SYMBOLS ON
)
endif
()
# we want to suppress all cuda warnings so far for this library.
target_compile_options
(
${
library_name
}
PUBLIC $<$<COMPILE_LANGUAGE:CUDA>:-Xcudafe
"-w"
>
)
\ No newline at end of file
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