Add cuda to paraview build. (#12996)
This commit is contained in:
parent
21e95e4141
commit
210dd594a1
1 changed files with 11 additions and 1 deletions
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue