ParaView: Add variant for raytracing (#36640)
* ParaView: Add variant for raytracing * [@spackbot] updating style on behalf of kwryankrattiger
This commit is contained in:
parent
c338d2fb02
commit
a70f307f7e
1 changed files with 10 additions and 0 deletions
|
@ -71,6 +71,7 @@ class Paraview(CMakePackage, CudaPackage, ROCmPackage):
|
||||||
variant("eyedomelighting", default=False, description="Enable Eye Dome Lighting feature")
|
variant("eyedomelighting", default=False, description="Enable Eye Dome Lighting feature")
|
||||||
variant("adios2", default=False, description="Enable ADIOS2 support", when="@5.8:")
|
variant("adios2", default=False, description="Enable ADIOS2 support", when="@5.8:")
|
||||||
variant("visitbridge", default=False, description="Enable VisItBridge support")
|
variant("visitbridge", default=False, description="Enable VisItBridge support")
|
||||||
|
variant("raytracing", default=False, description="Enable Raytracing support")
|
||||||
variant(
|
variant(
|
||||||
"openpmd",
|
"openpmd",
|
||||||
default=False,
|
default=False,
|
||||||
|
@ -181,6 +182,10 @@ class Paraview(CMakePackage, CudaPackage, ROCmPackage):
|
||||||
depends_on("libxt", when="~osmesa platform={}".format(p))
|
depends_on("libxt", when="~osmesa platform={}".format(p))
|
||||||
conflicts("+qt", when="+osmesa")
|
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("bzip2")
|
||||||
depends_on("double-conversion")
|
depends_on("double-conversion")
|
||||||
depends_on("expat")
|
depends_on("expat")
|
||||||
|
@ -611,4 +616,9 @@ def nvariant_bool(feature):
|
||||||
cmake_args.append("-DVTK_MODULE_ENABLE_ParaView_InSitu=YES")
|
cmake_args.append("-DVTK_MODULE_ENABLE_ParaView_InSitu=YES")
|
||||||
cmake_args.append("-DPARAVIEW_ENABLE_CATALYST=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
|
return cmake_args
|
||||||
|
|
Loading…
Reference in a new issue