Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_io
Commits
a5e9a55c
Commit
a5e9a55c
authored
Nov 06, 2018
by
incardon
Browse files
Fixing conditional CUDA
parent
0d13173f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/CMakeLists.txt
View file @
a5e9a55c
...
...
@@ -7,7 +7,9 @@ add_executable(io main.cpp HDF5_wr/HDF5_writer_cuda.cu ObjReader/ObjReader_unit_
###########################
target_compile_options
(
io PUBLIC $<$<COMPILE_LANGUAGE:CUDA>:-Xcudafe
"--display_error_number --diag_suppress=2885 --diag_suppress=2887 --diag_suppress=2888 --diag_suppress=186 --diag_suppress=111"
--expt-extended-lambda>
)
if
(
CUDA_FOUND
)
target_compile_options
(
io PUBLIC $<$<COMPILE_LANGUAGE:CUDA>:-Xcudafe
"--display_error_number --diag_suppress=2885 --diag_suppress=2887 --diag_suppress=2888 --diag_suppress=186 --diag_suppress=111"
--expt-extended-lambda>
)
endif
()
target_include_directories
(
io PUBLIC
${
CUDA_INCLUDE_DIRS
}
)
target_include_directories
(
io PUBLIC
${
CMAKE_CURRENT_SOURCE_DIR
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment