summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkwryankrattiger <80296582+kwryankrattiger@users.noreply.github.com>2023-03-10 12:35:46 -0600
committerGitHub <noreply@github.com>2023-03-10 19:35:46 +0100
commit369914c3e1e0b3ebe08b487071afe27d6849ff28 (patch)
tree55d5a5b55d1b7565012b5d4fb6c0e66fcdb41f60
parent64e0ca5a89481be315ca84546bb97d711ba6fb1f (diff)
downloadspack-369914c3e1e0b3ebe08b487071afe27d6849ff28.tar.gz
spack-369914c3e1e0b3ebe08b487071afe27d6849ff28.tar.bz2
spack-369914c3e1e0b3ebe08b487071afe27d6849ff28.tar.xz
spack-369914c3e1e0b3ebe08b487071afe27d6849ff28.zip
Add packages OSPRay, rkcommon, Open VKL, and Open Image Denoise (#35530)
-rw-r--r--var/spack/repos/builtin/packages/ispc/package.py7
-rw-r--r--var/spack/repos/builtin/packages/openimagedenoise/package.py34
-rw-r--r--var/spack/repos/builtin/packages/openvkl/package.py43
-rw-r--r--var/spack/repos/builtin/packages/ospray/package.py69
-rw-r--r--var/spack/repos/builtin/packages/rkcommon/package.py34
5 files changed, 186 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/ispc/package.py b/var/spack/repos/builtin/packages/ispc/package.py
index cfda6a844b..6a6fd4a165 100644
--- a/var/spack/repos/builtin/packages/ispc/package.py
+++ b/var/spack/repos/builtin/packages/ispc/package.py
@@ -25,6 +25,8 @@ class Ispc(CMakePackage):
executables = ["^ispc$"]
version("main", branch="main")
+ version("1.18.0", sha256="ecf1fc6ad5e39242e555b8e0ac539489939a9e475722eaa9da5caa4651cecf05")
+ version("1.17.0", sha256="1d47365febd2e17c84c22501aa63b1eafbc1ef826d6f5deadafe14783b8388a5")
version("1.16.1", sha256="b32dbd374eea5f1b5f535bfd79c5cc35591c0df2e7bf1f86dec96b74e4ebf661")
version("1.16.0", sha256="12db1a90046b51752a65f50426e1d99051c6d55e30796ddd079f7bc97d5f6faf")
version("1.15.0", sha256="3b634aaa10c9bf0e82505d1af69cb307a3a00182d57eae019680ccfa62338af9")
@@ -38,11 +40,14 @@ class Ispc(CMakePackage):
depends_on("ncurses", type="link")
depends_on("zlib", type="link")
depends_on("llvm+clang")
- depends_on("llvm@:12", when="@:1.16")
+ depends_on("llvm@:13", when="@:1.18")
+ depends_on("llvm@:12", when="@:1.17")
depends_on("llvm@11:", when="@1.16.0:")
depends_on("llvm@10:11", when="@1.15.0:1.15")
depends_on("llvm@10.0:10", when="@1.13:1.14")
+ conflicts("@1.17:", msg="Link error with ncurses")
+
patch(
"don-t-assume-that-ncurses-zlib-are-system-libraries.patch",
when="@1.14.0:1.14",
diff --git a/var/spack/repos/builtin/packages/openimagedenoise/package.py b/var/spack/repos/builtin/packages/openimagedenoise/package.py
new file mode 100644
index 0000000000..90eaa559ca
--- /dev/null
+++ b/var/spack/repos/builtin/packages/openimagedenoise/package.py
@@ -0,0 +1,34 @@
+# Copyright 2013-2023 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.package import *
+
+
+class Openimagedenoise(CMakePackage):
+ """Intel Open Image Denoise is an open source library of high-performance,
+ high-quality denoising filters for images rendered with ray tracing.
+ Open Image Denoise is part of the Intel® oneAPI Rendering Toolkit and is released
+ under the permissive Apache 2.0 license."""
+
+ homepage = "https://www.openimagedenoise.org/"
+ url = "https://github.com/OpenImageDenoise/oidn/releases/download/v1.4.3/oidn-1.4.3.src.tar.gz"
+
+ # maintainers("github_user1", "github_user2")
+
+ version("1.4.3", sha256="3276e252297ebad67a999298d8f0c30cfb221e166b166ae5c955d88b94ad062a")
+ version("1.4.2", sha256="e70d27ce24b41364782376c1b3b4f074f77310ccfe5f8ffec4a13a347e48a0ea")
+ version("1.4.1", sha256="9088966685a78adf24b8de075d66e4c0019bd7b2b9d29c6e45aaf35d294e3f6f")
+ version("1.4.0", sha256="3e7b85d344b3635719879c4444f061714e6e799895110bd5d78a357dc9b017db")
+ version("1.3.0", sha256="88367b2bbea82d1df45d65141c36b6d86491bc6b397dc70beb3a05dda566f31c")
+ version("1.2.4", sha256="948b070c780b5de0d983e7d5d37f6d9454932cc278913d9ee5b0bd047d23864a")
+ version("1.2.3", sha256="469d20b093a73b18a54a2e559b0f18a6baac845ede864be62429737042ebe4f7")
+
+ depends_on("ispc", type=("build"))
+ depends_on("python@3:", type=("build", "test"))
+ depends_on("tbb")
+
+ def cmake_args(self):
+ args = [self.define("OIDN_APPS", False)]
+ return args
diff --git a/var/spack/repos/builtin/packages/openvkl/package.py b/var/spack/repos/builtin/packages/openvkl/package.py
new file mode 100644
index 0000000000..51de419822
--- /dev/null
+++ b/var/spack/repos/builtin/packages/openvkl/package.py
@@ -0,0 +1,43 @@
+# Copyright 2013-2023 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.package import *
+
+
+class Openvkl(CMakePackage):
+ """Intel® Open Volume Kernel Library is a collection of high-performance volume
+ computation kernels, developed at Intel."""
+
+ homepage = "https://www.openvkl.org/"
+ url = "https://www.github.com/OpenVKL/openvkl/archive/v1.0.0.tar.gz"
+ git = "https://www.github.com/OpenVKL/openvkl.git"
+
+ # maintainers("github_user1", "github_user2")
+
+ version("1.3.1", sha256="c9cefb6c313f2b4c0331e9629931759a6bc204ec00deed6ec0becad1670a1933")
+ version("1.3.0", sha256="c6d4d40e6d232839c278b53dee1e7bd3bd239c3ccac33f49b465fc65a0692be9")
+ version("1.2.0", sha256="dc468c2f0a359aaa946e04a01c2a6634081f7b6ce31b3c212c74bf7b4b0c9ec2")
+ version("1.1.0", sha256="d193c75a2c57acd764649215b244c432694a0169da374a9d769a81b02a9132e9")
+ version("1.0.1", sha256="55a7c2b1dcf4641b523ae999e3c1cded305814067d6145cc8911e70a3e956ba6")
+ version("1.0.0", sha256="81ccae679bfa2feefc4d4b1ce72bcd242ba34d2618fbb418a1c2a05d640d16b4")
+ version("0.13.0", sha256="974608259e3a5d8e29d2dfe81c6b2b1830aadeb9bbdc87127f3a7c8631e9f1bd")
+
+ depends_on("embree@3.13.0:")
+ depends_on("embree@3.13.1:", when="@1.0.0:")
+ depends_on("ispc@1.15.0:", type=("build"))
+ depends_on("ispc@1.16.0:", when="@1.0.0:", type=("build"))
+ depends_on("ispc@1.18:", when="@1.3:", type=("build"))
+ depends_on("rkcommon@1.6.1:")
+ depends_on("rkcommon@1.7.0:", when="@1.0.0:")
+ depends_on("rkcommon@1.8.0:", when="@1.1:")
+ depends_on("tbb")
+
+ def cmake_args(self):
+ args = [
+ self.define("BUILD_BENCHMARKS", False),
+ self.define("BUILD_EXAMPLES", False),
+ self.define("BUILD_TESTING", False),
+ ]
+ return args
diff --git a/var/spack/repos/builtin/packages/ospray/package.py b/var/spack/repos/builtin/packages/ospray/package.py
new file mode 100644
index 0000000000..fcb0d3ef62
--- /dev/null
+++ b/var/spack/repos/builtin/packages/ospray/package.py
@@ -0,0 +1,69 @@
+# Copyright 2013-2023 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.package import *
+
+
+class Ospray(CMakePackage):
+ """Intel OSPRay is an open source, scalable, and portable ray tracing engine for
+ high-performance, high-fidelity visualization on Intel Architecture CPUs."""
+
+ homepage = "https://www.ospray.org/"
+ url = "https://github.com/ospray/ospray/archive/v2.10.0.tar.gz"
+ git = "https://github.com/ospray/ospray.git"
+
+ # maintainers("aumuell")
+
+ version("2.10.0", sha256="bd478284f48d2cb775fc41a2855a9d9f5ea16c861abda0f8dc94e02ea7189cb8")
+ version("2.9.0", sha256="0145e09c3618fb8152a32d5f5cff819eb065d90975ee4e35400d2db9eb9f6398")
+ version("2.8.0", sha256="2dabc75446a0e2e970952d325f930853a51a9b4d1868c8135f05552a4ae04d39")
+ version("2.7.1", sha256="4e7bd8145e19541c04f5d949305f19a894d85a827f567d66ae2eb11a760a5ace")
+ version("2.7.0", sha256="bcaeb221b5dd383d27587ffaca7f75d7e0064f64017a0d73df90862b14b5704b")
+ version("2.6.0", sha256="5efccd7eff5774b77f8894e68a6b803b535a0d12f32ab49edf13b954e2848f2e")
+
+ variant("apps", default=False, description="Enable building OSPRay Apps")
+ variant("mpi", default=True, description="Enable MPI support")
+
+ depends_on("rkcommon@1.5:")
+ depends_on("rkcommon@1.7:1.9", when="@2.7.0:2.8")
+ depends_on("rkcommon@1.9", when="@2.9.0")
+ depends_on("rkcommon@1.10:", when="@2.10.0:")
+ depends_on("embree@3.12: +ispc")
+ depends_on("embree@3.13.1:", when="@2.7.0:")
+ depends_on("openvkl@0.13.0:")
+ depends_on("openvkl@1.0.1:", when="@2.7.0:")
+ depends_on("openvkl@1.2.0:", when="@2.9.0:")
+ depends_on("openvkl@1.3.0:", when="@2.10.0:")
+ depends_on("openimagedenoise@1.2.3:")
+ depends_on("ispc@1.14.1:", type=("build"))
+ depends_on("ispc@1.16.0:", when="@2.7.0:", type=("build"))
+ depends_on("ispc@1.18.0:", when="@2.10.0:", type=("build"))
+ depends_on("tbb")
+
+ depends_on("mpi", when="+mpi")
+ depends_on("snappy@1.1.8:", when="+mpi")
+
+ def cmake_args(self):
+ args = [
+ self.define("OSPRAY_MODULE_DENOISER", True),
+ self.define("OSPRAY_ENABLE_MODULES", True),
+ self.define("OSPRAY_ENABLE_APPS", False),
+ self.define_from_variant("OSPRAY_MODULE_MPI", "mpi"),
+ self.define("OSPRAY_MPI_BUILD_TUTORIALS", False),
+ self.define("OSPRAY_ISPC_DIRECTORY", self.spec["ispc"].prefix.bin),
+ ]
+
+ # Apps
+ enable_apps_arg = "" if self.spec.satisfies("@2.9:") else "ENABLE_"
+ args.extend(
+ [
+ self.define("OSPRAY_{0}APPS_TESTING".format(enable_apps_arg), False),
+ self.define("OSPRAY_{0}APPS_EXAMPLES".format(enable_apps_arg), False),
+ self.define("OSPRAY_{0}APPS_TUTORIALS".format(enable_apps_arg), False),
+ self.define("OSPRAY_{0}APPS_BENCHMARK".format(enable_apps_arg), False),
+ ]
+ )
+
+ return args
diff --git a/var/spack/repos/builtin/packages/rkcommon/package.py b/var/spack/repos/builtin/packages/rkcommon/package.py
new file mode 100644
index 0000000000..50409f10a4
--- /dev/null
+++ b/var/spack/repos/builtin/packages/rkcommon/package.py
@@ -0,0 +1,34 @@
+# Copyright 2013-2023 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.package 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"
+ url = "https://github.com/ospray/rkcommon/archive/v1.4.1.tar.gz"
+ git = "https://github.com/ospray/rkcommon.git"
+
+ # maintainers("github_user1",o"github_user2")
+
+ version("1.10.0", sha256="57a33ce499a7fc5a5aaffa39ec7597115cf69ed4ff773546b5b71ff475ee4730")
+ version("1.9.0", sha256="b68aa02ef44c9e35c168f826a14802bb5cc6a9d769ba4b64b2c54f347a14aa53")
+ version("1.8.0", sha256="f037c15f7049610ef8bca37500b2ab00775af60ebbb9d491ba5fc2e5c04a7794")
+ version("1.7.0", sha256="b24d063541ccbfd69e6d77485b509d1bbffd9744e735dbd9bd8647eb8751c5b7")
+ version("1.6.1", sha256="b61c10f26fba3e6f00305d5828b3bac523d559c5c0e6f79893b19e8c0e30074e")
+ version("1.6.0", sha256="24d0c9c58a4d2f22075850df170ec5732cfaa0a16f22f90dbd6538232be009b0")
+ version("1.5.1", sha256="27dc42796aaa4ea4a6322f14ad64a46e83f42724c20c0f7b61d069ac91310295")
+ version("1.5.0", sha256="3556e90301d4361f871b87ddf898b9d675deaa717cab541f99012e14557986bd")
+ version("1.4.2", sha256="2d1c0046cf583d3040fc9bb3b8ddcb1a2262d3f48aebd0973e6bd6cabb487f9e")
+ version("1.4.1", sha256="f5968f5865fa5fe938843e1db621795524e7d31b37ce6024ba2978bb293ddfcf")
+
+ depends_on("tbb")
+
+ def cmake_args(self):
+ args = [self.define("INSTALL_DEPS", False)]
+ return args