Add cuda to paraview build. (#12996)

This commit is contained in:
Dan Lipsa 2019-10-02 13:00:03 -04:00 committed by Adam J. Stewart
parent 21e95e4141
commit 210dd594a1

View file

@ -7,7 +7,7 @@
import os import os
class Paraview(CMakePackage): class Paraview(CMakePackage, CudaPackage):
"""ParaView is an open-source, multi-platform data analysis and """ParaView is an open-source, multi-platform data analysis and
visualization application.""" visualization application."""
@ -234,6 +234,16 @@ def nvariant_bool(feature):
'-DMPI_Fortran_COMPILER:PATH=%s' % spec['mpi'].mpifc '-DMPI_Fortran_COMPILER:PATH=%s' % spec['mpi'].mpifc
]) ])
if '+cuda' in spec:
cmake_args.extend([
'-DPARAVIEW_USE_CUDA:BOOL=ON',
'-DPARAVIEW_BUILD_SHARED_LIBS:BOOL=OFF'
])
else:
cmake_args.extend([
'-DPARAVIEW_USE_CUDA:BOOL=OFF',
])
if 'darwin' in spec.architecture: if 'darwin' in spec.architecture:
cmake_args.extend([ cmake_args.extend([
'-DVTK_USE_X:BOOL=OFF', '-DVTK_USE_X:BOOL=OFF',