ParaView: Add variant for raytracing (#36640)

* ParaView: Add variant for raytracing

* [@spackbot] updating style on behalf of kwryankrattiger
This commit is contained in:
kwryankrattiger 2023-04-06 12:30:00 -05:00 committed by GitHub
parent c338d2fb02
commit a70f307f7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 @@ def nvariant_bool(feature):
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