diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-01-10 06:41:31 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-01-10 06:41:31 +0000 |
commit | f9d8ddaae80afb8fa0924cd3f769f9b37dd373e1 (patch) | |
tree | d8962e6446d606b8c95329b4b78932a65f928a5f /dev-util/intel-graphics-compiler | |
parent | d94fef9a5708b8e64f363f4a71f0b56caef5efe4 (diff) |
gentoo auto-resync : 10:01:2025 - 06:41:30
Diffstat (limited to 'dev-util/intel-graphics-compiler')
3 files changed, 217 insertions, 0 deletions
diff --git a/dev-util/intel-graphics-compiler/Manifest b/dev-util/intel-graphics-compiler/Manifest index 2daea21c2bfd..a392cf65b034 100644 --- a/dev-util/intel-graphics-compiler/Manifest +++ b/dev-util/intel-graphics-compiler/Manifest @@ -2,5 +2,9 @@ AUX intel-graphics-compiler-1.0.8173-opencl-clang_version.patch 1807 BLAKE2B ec6 AUX intel-graphics-compiler-1.0.8365-disable-git.patch 1140 BLAKE2B f870def1128c30c3e50a71e9eac39eccbcc9bc798be574324016c6c31ed3a3f82e1499f1aada5a2c475bd6b6c467b1b236635fdd6b5145904bc63dc53f8d75e5 SHA512 d1d53a6f4a47031ec4cdcf3f57c059536ccf571a72929da3d9070487686f91f4202d20c4d626da616250f66b31815b61fafa82b903b1f5157a226ee748097bda AUX intel-graphics-compiler-1.0.9-no_Werror.patch 272 BLAKE2B 079fe334413dfddb7681940f2a8920a365e8e72526cfc09ea1c7d218e8b19468f80ea9a215be125b441ee5238d7856b8dec02ebfc4bfd76b1850aa9917da35ef SHA512 d3d27943e84e228b480172b4fe91ba9aed8bb1c98700eb8c8beebafb7f1cc6265279031f56181e67eff74f55e1bbc8ee24bdc4d14fc1200c5aff670ef019410d DIST intel-graphics-compiler-1.0.17657.8.tar.gz 10690533 BLAKE2B e1b3dc3fbd1515abb030c1da791cdc91d83648cfd1a9f8dce8ed087cefdd30a4413b6b534bb67902424c8ee67e84c7d85283cf548fb6ecd413e13639f883d0c3 SHA512 3dd0a6e5aa80ea0cad3608a6940cb563fcfce72e33b2284634903319ec984d6659f6a8ea51d31dfd35b1f3ebf6b89e78c5524d3f10735f52c09f52d13ea42e7a +DIST intel-graphics-compiler-1.0.17791.18.tar.gz 10746999 BLAKE2B d85c7888e4be962fc90ba6e2686aeba14d7ebe32c7dececdfddb0ba3726df82e43167dfc1bd0a2c4a0f72a6de481a270a4dcb6b4d5a40d785dac6c4628a27e2d SHA512 c814f667c558eebfbe1af68614c4eff7259b2d3626e317eb936e185b33b4aba7b225f33276ab09e9582164e5573b6cc52c230ab82e4689db41b3b2f4368367ec +DIST intel-graphics-compiler-2.5.7.tar.gz 11055255 BLAKE2B 5aba91cb083b8a94cd7182f25a6a4b24832816a07aad2f0583717213a5b752c32140e47fea9a0f48523227157239e519ccf2f708e3b3398fd8f15448dc202cc5 SHA512 520e4d1b9db993a90a8933f64c00da8fa785f7f7064d9f8d48aa9791a92d75e9a5d1d49509db6d81bd5a7645cdcb542dc261f5c653001fdc05033753b06dcba6 EBUILD intel-graphics-compiler-1.0.17657.8.ebuild 2952 BLAKE2B 76514e8ce620a095dc12052929fc5abc6e09e32bbf95c543ac8e6dd30a3cdb5314980e80988c1619ea9759db097bf84bf00389383c2bc286a792a60b18e17dd8 SHA512 1dc57df85cb465935393e829f7687b31bf3c95c8079ec3ad05bcead4f624a37def788477a5427743e27cf77e95af9375fa98c1dca77d0a94beb2e7d3a49d8e79 +EBUILD intel-graphics-compiler-1.0.17791.18.ebuild 3137 BLAKE2B 9be03b66a92c3d2118cfe222719dccc42cb879e753edd1f869fd0659cb32a5040c35789f892602d4c517dfde2bd10fdf11d6ee7a241cc042721387f54255c5e7 SHA512 187f697c6c2d32fd44ed29192f9010b6e270559084ea0bb746f983480d97dc13dc8f492f15d8e34531316b163130654a3c957b4fe0cb5cdb8274a5f4aaa9e4c1 +EBUILD intel-graphics-compiler-2.5.7-r1.ebuild 2991 BLAKE2B e0848decbbacc55a6a48ba3a9fe0b485c053f9fa1e46e6f9bfdcceeb3877b348e767b380ad5756425419ca43b40c8015060fca34b57bfb7d7844274e372c4222 SHA512 193b916cf69359b24ed2b706437fa23813f015e140f7e28a4dbdb37e3960c22351a015c6133c0971db108dd80e242db96acdb8d818c7a89e2486dfe151842ab7 MISC metadata.xml 682 BLAKE2B c5e74bbb1a5aca5eed7cb75a19820dc9d78d7ef7a15687924d16863a82a535403ca67103ac458d4b86f380244e726a3bd20fb496f8048f999abdf89950a7092c SHA512 d5a35d2104e9aa5caaf903a9f61ca8a8c4f8b5bff3e993c9964dd63196e64b88e3e7bde2e0cff9dcee9c66bdda0cabb43c5ac8c121796626bb0e7f4013929fb3 diff --git a/dev-util/intel-graphics-compiler/intel-graphics-compiler-1.0.17791.18.ebuild b/dev-util/intel-graphics-compiler/intel-graphics-compiler-1.0.17791.18.ebuild new file mode 100644 index 000000000000..a0e4b5f88d76 --- /dev/null +++ b/dev-util/intel-graphics-compiler/intel-graphics-compiler-1.0.17791.18.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CMAKE_BUILD_TYPE="Release" +LLVM_COMPAT=( 15 ) +MY_PN="igc" +MY_P="${MY_PN}-${PV}" +PYTHON_COMPAT=( python3_{10..13} ) + +inherit cmake flag-o-matic llvm-r1 python-any-r1 + +DESCRIPTION="LLVM-based OpenCL compiler for OpenCL targetting Intel Gen graphics hardware" +HOMEPAGE="https://github.com/intel/intel-graphics-compiler" +SRC_URI="https://github.com/intel/${PN}/archive/refs/tags/${MY_P}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${MY_P}" + +LICENSE="MIT" +SLOT="0/1.0.1" +KEYWORDS="~amd64" +IUSE="debug vc" + +DEPEND=" + dev-libs/opencl-clang:15[${LLVM_USEDEP}] + dev-util/spirv-tools + $(llvm_gen_dep ' + llvm-core/lld:${LLVM_SLOT} + llvm-core/llvm:${LLVM_SLOT} + ') + vc? ( + >=dev-libs/intel-vc-intrinsics-0.21.0[${LLVM_USEDEP}] + dev-util/spirv-llvm-translator:15= + ) +" + +RDEPEND="${DEPEND}" + +BDEPEND=" + $(python_gen_any_dep 'dev-python/mako[${PYTHON_USEDEP}]') + $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') + $(llvm_gen_dep 'llvm-core/lld:${LLVM_SLOT}') + ${PYTHON_DEPS} +" + +python_check_deps() { + python_has_version "dev-python/mako[${PYTHON_USEDEP}]" + python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" +} + +PATCHES=( + "${FILESDIR}/${PN}-1.0.9-no_Werror.patch" + "${FILESDIR}/${PN}-1.0.8173-opencl-clang_version.patch" + "${FILESDIR}/${PN}-1.0.8365-disable-git.patch" +) + +pkg_setup() { + llvm-r1_pkg_setup + python-any-r1_pkg_setup +} + +src_prepare() { + # Don't hardcode FORTIFY_SOURCE + sed -e '/-D_FORTIFY_SOURCE=2/d' -i IGC/CMakeLists.txt || die + + cmake_src_prepare +} + +src_configure() { + # Get LLVM version + local llvm_version="$(best_version -d llvm-core/llvm:${LLVM_SLOT})" + local llvm_version="${llvm_version%%-r*}" + + # See https://github.com/intel/intel-graphics-compiler/issues/212 + append-ldflags -Wl,-z,undefs + + # See bug #893370 and https://github.com/intel/intel-graphics-compiler/issues/282 + append-flags -U_GLIBCXX_ASSERTIONS + + # See https://bugs.gentoo.org/718824 + ! use debug && append-cppflags -DNDEBUG + + local mycmakeargs=( + -DBUILD_SHARED_LIBS="OFF" + -DCCLANG_FROM_SYSTEM="ON" + -DCCLANG_SONAME_VERSION="${LLVM_SLOT}" + -DCMAKE_LIBRARY_PATH="$(get_llvm_prefix)/$(get_libdir)" + -DIGC_BUILD__VC_ENABLED="$(usex vc)" + -DIGC_OPTION__ARCHITECTURE_TARGET="Linux64" + -DIGC_OPTION__CLANG_MODE="Prebuilds" + -DIGC_OPTION__LINK_KHRONOS_SPIRV_TRANSLATOR="ON" + -DIGC_OPTION__LLD_MODE="Prebuilds" + -DIGC_OPTION__LLDELF_H_DIR="$(get_llvm_prefix)/include/lld/Common" + -DIGC_OPTION__LLVM_MODE="Prebuilds" + -DIGC_OPTION__LLVM_PREFERRED_VERSION="${llvm_version##*-}" + -DIGC_OPTION__OPENCL_HEADER_PATH="/usr/lib/clang/${llvm_version##*-}/include/opencl-c.h" + -DIGC_OPTION__SPIRV_TOOLS_MODE="Prebuilds" + -DIGC_OPTION__SPIRV_TRANSLATOR_MODE="Prebuilds" + -DIGC_OPTION__USE_KHRONOS_SPIRV_TRANSLATOR_IN_SC="ON" + -DIGC_OPTION__USE_PREINSTALLED_SPIRV_HEADERS="ON" + $(usex vc '-DIGC_OPTION__VC_INTRINSICS_MODE=Prebuilds' '') + -DPYTHON_EXECUTABLE="${PYTHON}" + -DINSTALL_GENX_IR="ON" + -DSPIRVLLVMTranslator_INCLUDE_DIR="${EPREFIX}/usr/lib/llvm/${LLVM_SLOT}/include/LLVMSPIRVLib" + -Wno-dev + ) + + cmake_src_configure +} diff --git a/dev-util/intel-graphics-compiler/intel-graphics-compiler-2.5.7-r1.ebuild b/dev-util/intel-graphics-compiler/intel-graphics-compiler-2.5.7-r1.ebuild new file mode 100644 index 000000000000..fec7fad0e8b5 --- /dev/null +++ b/dev-util/intel-graphics-compiler/intel-graphics-compiler-2.5.7-r1.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CMAKE_BUILD_TYPE="Release" +LLVM_COMPAT=( 15 ) +PYTHON_COMPAT=( python3_{10..13} ) + +inherit cmake flag-o-matic llvm-r1 python-any-r1 + +DESCRIPTION="LLVM-based OpenCL compiler for OpenCL targetting Intel Gen graphics hardware" +HOMEPAGE="https://github.com/intel/intel-graphics-compiler" +SRC_URI="https://github.com/intel/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/2.5.0" +KEYWORDS="~amd64" +IUSE="debug vc" + +DEPEND=" + dev-libs/opencl-clang:15[${LLVM_USEDEP}] + dev-util/spirv-tools + $(llvm_gen_dep ' + llvm-core/lld:${LLVM_SLOT} + llvm-core/llvm:${LLVM_SLOT} + ') + vc? ( + >=dev-libs/intel-vc-intrinsics-0.21.0[${LLVM_USEDEP}] + dev-util/spirv-llvm-translator:15= + ) +" + +RDEPEND="${DEPEND}" + +BDEPEND=" + $(python_gen_any_dep 'dev-python/mako[${PYTHON_USEDEP}]') + $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') + $(llvm_gen_dep 'llvm-core/lld:${LLVM_SLOT}') + ${PYTHON_DEPS} +" + +python_check_deps() { + python_has_version "dev-python/mako[${PYTHON_USEDEP}]" + python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" +} + +PATCHES=( + "${FILESDIR}/${PN}-1.0.9-no_Werror.patch" + "${FILESDIR}/${PN}-1.0.8365-disable-git.patch" +) + +pkg_setup() { + llvm-r1_pkg_setup + python-any-r1_pkg_setup +} + +src_prepare() { + # Don't hardcode FORTIFY_SOURCE + sed -e '/-D_FORTIFY_SOURCE=2/d' -i IGC/CMakeLists.txt || die + + cmake_src_prepare +} + +src_configure() { + # Get LLVM version + local llvm_version="$(best_version -d llvm-core/llvm:${LLVM_SLOT})" + local llvm_version="${llvm_version%%-r*}" + + # See https://github.com/intel/intel-graphics-compiler/issues/212 + append-ldflags -Wl,-z,undefs + + # See bug #893370 and https://github.com/intel/intel-graphics-compiler/issues/282 + append-flags -U_GLIBCXX_ASSERTIONS + + # See https://bugs.gentoo.org/718824 + ! use debug && append-cppflags -DNDEBUG + + local mycmakeargs=( + -DBUILD_SHARED_LIBS="OFF" + -DCCLANG_FROM_SYSTEM="ON" + -DCCLANG_SONAME_VERSION="${LLVM_SLOT}" + -DCMAKE_LIBRARY_PATH="$(get_llvm_prefix)/$(get_libdir)" + -DIGC_BUILD__VC_ENABLED="$(usex vc)" + -DIGC_OPTION__ARCHITECTURE_TARGET="Linux64" + -DIGC_OPTION__CLANG_MODE="Prebuilds" + -DIGC_OPTION__LINK_KHRONOS_SPIRV_TRANSLATOR="ON" + -DIGC_OPTION__LLD_MODE="Prebuilds" + -DIGC_OPTION__LLDELF_H_DIR="$(get_llvm_prefix)/include/lld/Common" + -DIGC_OPTION__LLVM_MODE="Prebuilds" + -DIGC_OPTION__LLVM_PREFERRED_VERSION="${llvm_version##*-}" + -DIGC_OPTION__OPENCL_HEADER_PATH="/usr/lib/clang/${llvm_version##*-}/include/opencl-c.h" + -DIGC_OPTION__SPIRV_TOOLS_MODE="Prebuilds" + -DIGC_OPTION__SPIRV_TRANSLATOR_MODE="Prebuilds" + -DIGC_OPTION__USE_KHRONOS_SPIRV_TRANSLATOR_IN_SC="ON" + -DIGC_OPTION__USE_PREINSTALLED_SPIRV_HEADERS="ON" + $(usex vc '-DIGC_OPTION__VC_INTRINSICS_MODE=Prebuilds' '') + -DPYTHON_EXECUTABLE="${PYTHON}" + -DSPIRVLLVMTranslator_INCLUDE_DIR="${EPREFIX}/usr/lib/llvm/${LLVM_SLOT}/include/LLVMSPIRVLib" + -Wno-dev + ) + + cmake_src_configure +} |