Skip to content

Commit b609d86

Browse files
committed
ispc and OIDN now in ci-moonray images
The ispc and openimagedenoise recipes currently download and wrap pre-built binaries, adapt the package structure to match the built from source packages so they can get correctly installed when building the ci-openmoonray container image. Also make sure the moonray recipe references ispc as a requires() rather than a tool_requires(), otherwise ispc won't get included in the image. Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
1 parent e3c692c commit b609d86

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

packages/conan/recipes/ispc/conanfile.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from conan import ConanFile
77
from conan.errors import ConanInvalidConfiguration
88
from conan.tools.files import copy, get
9+
from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
910

1011
required_conan_version = ">=2.1"
1112

@@ -21,7 +22,10 @@ class IspcConan(ConanFile):
2122
homepage = "https://ispc.github.io/"
2223
topics = ("ispc", "compiler", "simd", "spmd")
2324
package_type = "application"
24-
settings = "os", "arch"
25+
settings = "os", "arch", "compiler", "build_type"
26+
27+
def layout(self):
28+
cmake_layout(self, src_folder="src")
2529

2630
def validate(self):
2731
if self.settings.os not in ["Linux", "Macos", "Windows"]:

packages/conan/recipes/moonray/conanfile.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,8 @@ def requirements(self):
5555
self.requires("openimagedenoise/2.3.3") # mcrt_denoise
5656
self.requires("random123/1.14.0") # stochastic sampling
5757

58+
# ---- Build Tools ----
59+
self.requires("ispc/[>=1.21.0]") # should be a tool_requires() but we need it in the ci-moonray image
60+
5861
def package_id(self):
5962
self.info.clear()

packages/conan/recipes/openimagedenoise/conanfile.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from conan import ConanFile
77
from conan.errors import ConanInvalidConfiguration
88
from conan.tools.files import copy, get
9+
from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
910

1011
required_conan_version = ">=2.1"
1112

@@ -21,7 +22,10 @@ class OpenImageDenoiseConan(ConanFile):
2122
homepage = "https://www.openimagedenoise.org/"
2223
topics = ("denoising", "rendering", "deep-learning", "intel")
2324
package_type = "shared-library"
24-
settings = "os", "arch"
25+
settings = "os", "arch", "compiler", "build_type"
26+
27+
def layout(self):
28+
cmake_layout(self, src_folder="src")
2529

2630
def requirements(self):
2731
self.requires("onetbb/2023.0.0")

0 commit comments

Comments
 (0)