Skip to content

Commit

Permalink
Update ospray suite (#1532)
Browse files Browse the repository at this point in the history
* Updates OSPRay package
* Create rkcommon package
* Create openvkl package
  • Loading branch information
NadirRoGue committed Mar 22, 2022
1 parent 555e562 commit 0b2f759
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 5 deletions.
26 changes: 26 additions & 0 deletions bluebrain/repo-patches/packages/openvkl/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack import *


class Openvkl(CMakePackage):
"""
Intel® Open Volume Kernel Library (Intel Open VKL) is a
collection of high-performance volume computation kernels,
developed at Intel.
"""

homepage = "https://www.openvkl.org"
git = "https://github.com/openvkl/openvkl.git"
generator = "Ninja"

version("1.2.0", tag="v1.2.0")

depends_on("[email protected]:", type="build")
depends_on("ispc", type="build")
depends_on("ninja", type="build")
depends_on("embree")
depends_on("rkcommon")
27 changes: 22 additions & 5 deletions bluebrain/repo-patches/packages/ospray/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,40 @@ class Ospray(CMakePackage):

version("1.8.5", tag="v1.8.5")
version("1.7.3", tag="v1.7.3")
version("2.9.0", tag="v2.9.0")

variant("apps", default=False, description="Build example applications")

depends_on("[email protected]:", type="build")
depends_on("ispc@:1.12", type="build", when="@:1.999")
depends_on("[email protected]:", type="build", when="@2.9.0:")
depends_on("ninja", type="build")
depends_on("embree")
depends_on("mpi")
depends_on("tbb")
depends_on("rkcommon", when="@2.9.0:")
depends_on("openvkl", when="@2.9.0:")

conflicts("^gcc")

def cmake_args(self):
return [
args = [
"-DOSPRAY_ENABLE_TUTORIALS=OFF",
"-DOSPRAY_ENABLE_APPS:BOOL={0}".format(
"ON" if "+apps" in self.spec else "OFF"
),
"-DOSPRAY_MODULE_MPI=ON",
"-DOSPRAY_MODULE_MPI=ON"
]
if self.spec.satisifes('@:1.8.5'):
args.append("-DOSPRAY_ENABLE_APPS:BOOL={0}".format(
"ON" if "+apps" in self.spec else "OFF"))
elif self.spec.satisfies('@:2.9.0'):
args.append("-DOSPRAY_MODULE_DENOISER=OFF")
args.append("-DOSPRAY_ENABLE_APPS_BENCHMARK={0}".format(
"ON" if "+apps" in self.spec else "OFF"))
args.append("-DOSPRAY_ENABLE_APPS_EXAMPLES={0}".format(
"ON" if "+apps" in self.spec else "OFF"))
args.append("-DOSPRAY_ENABLE_APPS_TESTING={0}".format(
"ON" if "+apps" in self.spec else "OFF"))
args.append("-DOSPRAY_ENABLE_APPS_TUTORIALS={0}".format(
"ON" if "+apps" in self.spec else "OFF"))
args.append("-DOSPRAY_APPS_ENABLE_GLM=OFF")

return args
24 changes: 24 additions & 0 deletions bluebrain/repo-patches/packages/rkcommon/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack import *


class Rkcommon(CMakePackage):
"""
This project represents a common set of C++ infrastructure and
CMake utilities used by various components of Intel oneAPI
Rendering Toolkit.
"""

homepage = "https://github.com/ospray/rkcommon"
git = "https://github.com/ospray/rkcommon.git"
generator = "Ninja"

version("1.9.0", tag="v1.9.0")

depends_on("[email protected]:", type="build")
depends_on("ninja", type="build")
depends_on("tbb")

0 comments on commit 0b2f759

Please sign in to comment.