Commit a3a0b47c authored by Robert Maynard's avatar Robert Maynard
Browse files

Allows building with cuda support by enabling the cuda project

parent a9c2d461
......@@ -39,6 +39,7 @@ function (superbuild_find_projects var)
mark_as_advanced(USE_NONFREE_COMPONENTS)
list(APPEND projects
cuda
boost
bzip2
embree
......
superbuild_add_dummy_project(cuda)
if (cuda_enabled AND NOT CMAKE_VERSION VERSION_LESS "3.8.0")
enable_language(CUDA)
elseif(cuda_enabled)
find_package(CUDA REQUIRED)
endif()
......@@ -67,6 +67,11 @@ if (tbb_enabled)
set(paraview_smp_backend "TBB")
endif ()
set(paraview_enable_cuda "OFF")
if(vtkm_enabled AND cuda_enabled)
set(paraview_enable_cuda "ON")
endif()
set(PARAVIEW_EXTERNAL_PROJECTS ""
CACHE STRING "A list of projects for ParaView to depend on")
mark_as_advanced(PARAVIEW_EXTERNAL_PROJECTS)
......@@ -100,7 +105,7 @@ superbuild_add_project(paraview
DEBUGGABLE
DEFAULT_ON
DEPENDS_OPTIONAL
boost hdf5 matplotlib mpi numpy png
cuda boost hdf5 matplotlib mpi numpy png
python qt5 visitbridge zlib silo
xdmf3 ospray vrpn vtkm tbb netcdf
paraviewusersguide paraviewgettingstartedguide
......@@ -160,6 +165,7 @@ superbuild_add_project(paraview
-DPARAVIEW_BUILD_PLUGIN_VTKmFilters:BOOL=${vtkm_enabled}
-DPARAVIEW_USE_VTKM:BOOL=${vtkm_enabled}
-DModule_vtkAcceleratorsVTKm:BOOL=${vtkm_enabled}
-DVTKm_ENABLE_CUDA:BOOL=${paraview_enable_cuda}
# Web
-DPARAVIEW_ENABLE_WEB:BOOL=${paraviewweb_enabled}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment