From 62d59c728d456890225d388584ab7aa419c7f78e Mon Sep 17 00:00:00 2001 From: Naveen Saini Date: Thu, 24 Jun 2021 13:53:59 +0800 Subject: [PATCH] embree: add recipe Intel(R) Embree is a collection of high-performance ray tracing kernels, developed at Intel. The target users of Intel(R) Embree are graphics application engineers who want to improve the performance of their photo-realistic rendering application by leveraging Embree's performance-optimized ray tracing kernels. The kernels are optimized for the latest Intel(R) processors with support for SSE, AVX, AVX2, and AVX-512 instructions. https://github.com/embree/embree Added syrah license file https://github.com/boulos/syrah/blob/master/LICENSE Signed-off-by: Naveen Saini Signed-off-by: Anuj Mittal --- custom-licenses/syrah | 32 ++++++++++++++++++ .../recipes-oneapi/embree/embree_3.13.0.bb | 33 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 custom-licenses/syrah create mode 100644 dynamic-layers/openembedded-layer/recipes-oneapi/embree/embree_3.13.0.bb diff --git a/custom-licenses/syrah b/custom-licenses/syrah new file mode 100644 index 00000000..5cd7f4e6 --- /dev/null +++ b/custom-licenses/syrah @@ -0,0 +1,32 @@ +Copyright (c) 2009, Stanford University, and authors listed below. +All rights reserved. + +Original authors: + Solomon Boulos + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. + +Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +Neither the name of Stanford University nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/dynamic-layers/openembedded-layer/recipes-oneapi/embree/embree_3.13.0.bb b/dynamic-layers/openembedded-layer/recipes-oneapi/embree/embree_3.13.0.bb new file mode 100644 index 00000000..93fdcd18 --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-oneapi/embree/embree_3.13.0.bb @@ -0,0 +1,33 @@ +SUMMARY = "Collection of high-performance ray tracing kernels" +DESCRIPTION = "A collection of high-performance ray tracing kernels \ +intended to graphics application engineers that want to improve the \ +performance of their application." +HOMEPAGE = "https://github.com/embree/embree" + +LICENSE = "Apache-2.0 & syrah" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57 \ + file://third-party-programs.txt;md5=86f6028ba2138fe41ac5c121d0a3518e \ + file://common/math/transcendental.h;beginline=6;endline=8;md5=73380bb2ab6613b30b8464f114bd0ca8" + +inherit pkgconfig cmake + +S = "${WORKDIR}/git" + +SRC_URI = "git://github.com/embree/embree.git;protocol=https \ + " +SRCREV = "7c53133eb21424f7f0ae1e25bf357e358feaf6ab" + +COMPATIBLE_HOST = '(x86_64).*-linux' + +DEPENDS = "tbb jpeg libpng glfw" + +EMBREE-MAX-ISA = "SSE4.2" +EMBREE-MAX-ISA_intel-corei7-64 = "SSE4.2" +EMBREE-MAX-ISA_intel-skylake-64 = "AVX2" + +EXTRA_OECMAKE += " \ + -DEMBREE_ISPC_SUPPORT=OFF \ + -DEMBREE_IGNORE_CMAKE_CXX_FLAGS=OFF \ + -DEMBREE_MAX_ISA=${EMBREE-MAX-ISA} \ + -DEMBREE_TUTORIALS=OFF \ + "