forked from spack/spack
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updates OSPRay package * Create rkcommon package * Create openvkl package
- Loading branch information
1 parent
555e562
commit 0b2f759
Showing
3 changed files
with
72 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |