Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VTK-m
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
phcerdan
VTK-m
Commits
18a360b7
Commit
18a360b7
authored
Dec 29, 2017
by
Robert Maynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly allow constexpr on the device side when compiling cuda
parent
b2c03ad8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
CMake/VTKmDeviceAdapters.cmake
CMake/VTKmDeviceAdapters.cmake
+4
-0
No files found.
CMake/VTKmDeviceAdapters.cmake
View file @
18a360b7
...
...
@@ -48,6 +48,10 @@ if(VTKm_ENABLE_CUDA AND NOT TARGET vtkm::cuda)
add_library
(
vtkm::cuda UNKNOWN IMPORTED
)
set_target_properties
(
vtkm::cuda PROPERTIES
INTERFACE_COMPILE_OPTIONS $<$<COMPILE_LANGUAGE:CUDA>:--expt-relaxed-constexpr>
)
# We can't have this location/lib empty, so we provide a location that is
# valid and will have no effect on compilation
list
(
GET CMAKE_CUDA_IMPLICIT_LINK_LIBRARIES 0 VTKM_CUDA_LIBRARY
)
...
...
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