summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Lipsa <dan.lipsa@kitware.com>2019-10-02 13:00:03 -0400
committerAdam J. Stewart <ajstewart426@gmail.com>2019-10-02 12:00:03 -0500
commit210dd594a1b752fa3c1303a8ad568712b412ae97 (patch)
treeb2bdd0d9fc7fdf9ed21e28fc4165c03fdb8bf139
parent21e95e41413b81d239a5fdd8e81fb212cf792b88 (diff)
downloadspack-210dd594a1b752fa3c1303a8ad568712b412ae97.tar.gz
spack-210dd594a1b752fa3c1303a8ad568712b412ae97.tar.bz2
spack-210dd594a1b752fa3c1303a8ad568712b412ae97.tar.xz
spack-210dd594a1b752fa3c1303a8ad568712b412ae97.zip
Add cuda to paraview build. (#12996)
-rw-r--r--var/spack/repos/builtin/packages/paraview/package.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/paraview/package.py b/var/spack/repos/builtin/packages/paraview/package.py
index d68c751978..fc6d0e99c2 100644
--- a/var/spack/repos/builtin/packages/paraview/package.py
+++ b/var/spack/repos/builtin/packages/paraview/package.py
@@ -7,7 +7,7 @@ from spack import *
import os
-class Paraview(CMakePackage):
+class Paraview(CMakePackage, CudaPackage):
"""ParaView is an open-source, multi-platform data analysis and
visualization application."""
@@ -234,6 +234,16 @@ class Paraview(CMakePackage):
'-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:
cmake_args.extend([
'-DVTK_USE_X:BOOL=OFF',