diff options
author | kwryankrattiger <80296582+kwryankrattiger@users.noreply.github.com> | 2023-04-06 12:30:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-06 10:30:00 -0700 |
commit | a70f307f7ee732701c38651d7ad70e9aeb0ac19e (patch) | |
tree | 0b353559726824281e187ded9056ea6b31fb2fa6 | |
parent | c338d2fb0206be69afd7ed111beba21343671395 (diff) | |
download | spack-a70f307f7ee732701c38651d7ad70e9aeb0ac19e.tar.gz spack-a70f307f7ee732701c38651d7ad70e9aeb0ac19e.tar.bz2 spack-a70f307f7ee732701c38651d7ad70e9aeb0ac19e.tar.xz spack-a70f307f7ee732701c38651d7ad70e9aeb0ac19e.zip |
ParaView: Add variant for raytracing (#36640)
* ParaView: Add variant for raytracing
* [@spackbot] updating style on behalf of kwryankrattiger
-rw-r--r-- | var/spack/repos/builtin/packages/paraview/package.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/paraview/package.py b/var/spack/repos/builtin/packages/paraview/package.py index b3830768be..0679d6b057 100644 --- a/var/spack/repos/builtin/packages/paraview/package.py +++ b/var/spack/repos/builtin/packages/paraview/package.py @@ -71,6 +71,7 @@ class Paraview(CMakePackage, CudaPackage, ROCmPackage): variant("eyedomelighting", default=False, description="Enable Eye Dome Lighting feature") variant("adios2", default=False, description="Enable ADIOS2 support", when="@5.8:") variant("visitbridge", default=False, description="Enable VisItBridge support") + variant("raytracing", default=False, description="Enable Raytracing support") variant( "openpmd", default=False, @@ -181,6 +182,10 @@ class Paraview(CMakePackage, CudaPackage, ROCmPackage): depends_on("libxt", when="~osmesa platform={}".format(p)) conflicts("+qt", when="+osmesa") + depends_on("ospray@2.1:", when="+raytracing") + depends_on("openimagedenoise", when="+raytracing") + depends_on("ospray +mpi", when="+raytracing +mpi") + depends_on("bzip2") depends_on("double-conversion") depends_on("expat") @@ -611,4 +616,9 @@ class Paraview(CMakePackage, CudaPackage, ROCmPackage): cmake_args.append("-DVTK_MODULE_ENABLE_ParaView_InSitu=YES") cmake_args.append("-DPARAVIEW_ENABLE_CATALYST=YES") + cmake_args.append(self.define_from_variant("PARAVIEW_ENABLE_RAYTRACING", "raytracing")) + # Currently only support OSPRay ray tracing + cmake_args.append(self.define_from_variant("VTK_ENABLE_OSPRAY", "raytracing")) + cmake_args.append(self.define_from_variant("VTKOSPRAY_ENABLE_DENOISER", "raytracing")) + return cmake_args |