diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-12-29 06:30:44 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-12-29 06:30:44 +0000 |
commit | 0e12f8e53cdddba84b0eb27dca59153e2cf52309 (patch) | |
tree | 8dec970370295a71970b82457ae1db36dbbbd07c /llvm-runtimes/offload | |
parent | 72fd2b48b7154274a1d2009cdaab54e7f49fb3aa (diff) |
gentoo auto-resync : 29:12:2024 - 06:30:44
Diffstat (limited to 'llvm-runtimes/offload')
-rw-r--r-- | llvm-runtimes/offload/Manifest | 6 | ||||
-rw-r--r-- | llvm-runtimes/offload/offload-20.0.0_pre20241207.ebuild | 156 | ||||
-rw-r--r-- | llvm-runtimes/offload/offload-20.0.0_pre20241215.ebuild | 153 | ||||
-rw-r--r-- | llvm-runtimes/offload/offload-20.0.0_pre20241221.ebuild | 153 |
4 files changed, 0 insertions, 468 deletions
diff --git a/llvm-runtimes/offload/Manifest b/llvm-runtimes/offload/Manifest index 1139c9fa72eb..3cc7508706ed 100644 --- a/llvm-runtimes/offload/Manifest +++ b/llvm-runtimes/offload/Manifest @@ -1,13 +1,7 @@ DIST llvm-project-19.1.6.src.tar.xz 141248428 BLAKE2B b35ab0c754f28c850ac6fd4ee584e963b1d5cf06885c59827ee4ac11f93cde5b8e0268fbed560839137de2c495c9da2b889331cd12a8a02958d8e0cbdbed2607 SHA512 d411a6d913d6a1e1f3c16cfc1ce81c1e6292ea370703f55fb67c7af62f02193d53f5ef7823c8679d6f25cbe47b40236fcaf37044ad7cdfada8166efe7eb106b3 DIST llvm-project-19.1.6.src.tar.xz.sig 438 BLAKE2B 1791e98252ab78a9a762ef601ff9edee115385181781c8100f14ec80061d7888ee4c4c519297a0e89b9c7ab2203aa9d5bb3084ea1d0f0024c2acf84826fd370b SHA512 8e79a39a4f54da3579794f9b5a009ea8ee56c7bc1805187274794ce56e81aa492ea93f5c7839a59beedcf7d657acded5ecb75d5803658cce1f9e8f753439c6c4 -DIST llvm-project-32f7f0010bca99ee4bd917f57272733fb2bf3bd9.tar.gz 223983502 BLAKE2B fd3e6b0b795abc42568ef98fa774d927029c18838a5d0f34eaa66c37976444a63f2fc5d883f3bf3a98533f51e387936f1c659230f31c757d26153425696a16cd SHA512 65a345ad5b77c627008f759947e5e9f28a62c8992d7146113e0446e5849feaf9088c15c8b22ca0824af5b927d6a417f5326258b489fb8ccea78ec9e0e0fe8fba -DIST llvm-project-49a5ad8e5714fd404210279303acc97b495d66d0.tar.gz 224456065 BLAKE2B 0077b9d37c479ac6190cc4b897cc35d6f1f3e6a772cd0620bcb1006afc19377e9968e38fb9d9adffe316e85290c9045deecbf9bf62b440c55968634b442edb31 SHA512 45d779eb27c230f656fda47c85127381cab8c8f7f75d77411c6960269f8aad5fa3c99c024a98ab8a349da1c88ad9d892cc82f91a6f344b791b281449031ae49a -DIST llvm-project-665d79f2e967a5eee6fff93685e45f50cf24cab2.tar.gz 224186302 BLAKE2B 6d4a02b6cfaf53324161c43ed02024f0fea0e7de25a9150cc0168602d7dff3f618026fa8318aa6e03904a9424afa1f12c5eb33bfdfa82e72210f34e5829a7804 SHA512 7482e176b1e2389b0dd0e67271cdb0489e9db0595874408156a034b40d336ecd960c63b89c237ca22eee3650880b0f08a97de14f8a17c918245915d422e568c9 DIST llvm-project-ccfe0de0e1e37ed369c9bf89dd0188ba0afb2e9a.tar.gz 224396427 BLAKE2B 6e13c65d2ba83fdaf2db20a58b878106568406f07f9c2ceb47e4d2572fb041211384ed67c43801764060101ec4a1b04c18bf4097f37512d2751aa5860c1a8dc3 SHA512 ef4512b735568aaa627a7f4e9bac3fc4722db7a2b8bd1610faaf066856be9474fb297fd75b3c0dcc76f60ab35c3110fd329faad3e8d9b75e93844d56f41c03d1 EBUILD offload-19.1.6.ebuild 4284 BLAKE2B 8eb5087b58a05270257b75a3522b5d3bed67d2c53127d26b1c112be6af959e17cf3e47a415b839bf16d1cd12b25a5da8765f0f2820f28a768c34486bded4716c SHA512 c113267fda6a4ffae225e1ebdfff84ebc847cda967f992ee56dd4c9995670639767f71f9ce5d352373e9c9c8d8d6f4dafa5bf4242376865c82e1394a5dca9f81 EBUILD offload-20.0.0.9999.ebuild 3934 BLAKE2B 9ac1571296b78bdcc1f3c7108962181fd3630e6052d4d9bed39ae4c335a62920d7b1347fc52df4ae8fba37c799027da13441bc6309a9629eaec1332e5fcf84a9 SHA512 db745650bb54fd0319c1d0b0196a3b714a0185844578a01f280f473f8fb874b991d817f01bf3740fcaae32cfe228c410186f9fb2a6ede9a74cff6cd32f859b47 -EBUILD offload-20.0.0_pre20241207.ebuild 4178 BLAKE2B 5e84acbcab339b63d321f74a04242fca5d8bc92339acbc2bb15a4d5b6ef0a05fbad17eeefbb275eab1402a1745f0f59978d9e0887020d88350c9bf71d49d044d SHA512 dd8d141c4d184b11e8d9bbe045321c9b05fb197882861013d6b7f7f8a887505fb8e36c80829b940ce730fc37371b01036c56fd824c6ba4fa1d144d11b4f212aa -EBUILD offload-20.0.0_pre20241215.ebuild 3881 BLAKE2B eb96a1c1848799d1b80c838b006b1253e218c3428f231b43b75db7d74560b46a8cfac3218584ee627bfb05858737720f3b568a6b08b3c3f18eb8853f6403215b SHA512 262abb8034966f1923877fd462c20f30846d911fce5c13ad49cf73f9b98b7d19e2f59fc262ad090c14034b411cf9ee41cc5a2d11bdbbb260640148028ef2195a -EBUILD offload-20.0.0_pre20241221.ebuild 3881 BLAKE2B eb96a1c1848799d1b80c838b006b1253e218c3428f231b43b75db7d74560b46a8cfac3218584ee627bfb05858737720f3b568a6b08b3c3f18eb8853f6403215b SHA512 262abb8034966f1923877fd462c20f30846d911fce5c13ad49cf73f9b98b7d19e2f59fc262ad090c14034b411cf9ee41cc5a2d11bdbbb260640148028ef2195a EBUILD offload-20.0.0_pre20241227.ebuild 3934 BLAKE2B 9ac1571296b78bdcc1f3c7108962181fd3630e6052d4d9bed39ae4c335a62920d7b1347fc52df4ae8fba37c799027da13441bc6309a9629eaec1332e5fcf84a9 SHA512 db745650bb54fd0319c1d0b0196a3b714a0185844578a01f280f473f8fb874b991d817f01bf3740fcaae32cfe228c410186f9fb2a6ede9a74cff6cd32f859b47 MISC metadata.xml 379 BLAKE2B 2b4c75d4ec6e126d887b736ea978c4b34683a347252f408c9d1f5f55c6c1bead7b7f9533812806f816538d8abaa00ded4d439dbe626d3f2cf09b78a3674e41bd SHA512 d49054d4b5a1a051d83f1ef397a7925fb36ee3092668d134e6ed5c1218bf5d67a43145b689709677643da070a783ec9f8705b37f15587475829fe185634af1d4 diff --git a/llvm-runtimes/offload/offload-20.0.0_pre20241207.ebuild b/llvm-runtimes/offload/offload-20.0.0_pre20241207.ebuild deleted file mode 100644 index 952dcc45c03b..000000000000 --- a/llvm-runtimes/offload/offload-20.0.0_pre20241207.ebuild +++ /dev/null @@ -1,156 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..13} ) -inherit cmake flag-o-matic llvm.org python-any-r1 toolchain-funcs - -DESCRIPTION="OpenMP offloading support" -HOMEPAGE="https://openmp.llvm.org" - -LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" -SLOT="0/${LLVM_SOABI}" -IUSE="+debug ompt test llvm_targets_AMDGPU llvm_targets_NVPTX" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-libs/libffi:= - ~llvm-core/llvm-${PV} - ~llvm-runtimes/openmp-${PV}[ompt?] - llvm_targets_AMDGPU? ( dev-libs/rocr-runtime:= ) -" -DEPEND=" - ${RDEPEND} -" -# tests: -# - dev-python/lit provides the test runner -# - llvm-core/llvm provide test utils (e.g. FileCheck) -# - llvm-core/clang provides the compiler to run tests -BDEPEND=" - dev-lang/perl - virtual/pkgconfig - llvm_targets_AMDGPU? ( llvm-core/clang ) - llvm_targets_NVPTX? ( llvm-core/clang ) - test? ( - ${PYTHON_DEPS} - $(python_gen_any_dep ' - dev-python/lit[${PYTHON_USEDEP}] - ') - llvm-core/clang - ) -" -# TODO: can it be fixed to compile with gcc? -BDEPEND+=" - llvm-core/clang -" - -LLVM_COMPONENTS=( offload cmake runtimes/cmake libc/shared ) -LLVM_TEST_COMPONENTS=( openmp/cmake ) -llvm.org_set_globals - -pkg_pretend() { - if [[ ${LLVM_ALLOW_GPU_TESTING} ]]; then - ewarn "LLVM_ALLOW_GPU_TESTING set. This package will run tests against your" - ewarn "GPU if it is supported. Note that these tests may be flaky, fail or" - ewarn "hang, or even cause your GPU to crash (requiring a reboot)." - fi -} - -python_check_deps() { - python_has_version "dev-python/lit[${PYTHON_USEDEP}]" -} - -pkg_setup() { - if use test; then - python-any-r1_pkg_setup - fi -} - -src_configure() { - # TODO - local -x CC=${CHOST}-clang - local -x CXX=${CHOST}-clang++ - strip-unsupported-flags - - # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 - use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" - - local libdir="$(get_libdir)" - local ffi_cflags=$($(tc-getPKG_CONFIG) --cflags-only-I libffi) - local ffi_ldflags=$($(tc-getPKG_CONFIG) --libs-only-L libffi) - local plugins="host" - local gpus= - local build_devicertl=FALSE - - if has "${CHOST%%-*}" aarch64 powerpc64le x86_64; then - if use llvm_targets_AMDGPU; then - plugins+=";amdgpu" - build_devicertl=TRUE - gpus+=";gfx700;gfx701;gfx801;gfx803;gfx900;gfx902;gfx906" - gpus+=";gfx908;gfx90a;gfx90c;gfx940;gfx941;gfx942;gfx950" - gpus+=";gfx1010;gfx1012;gfx1030;gfx1031;gfx1032;gfx1033" - gpus+=";gfx1034;gfx1035;gfx1036;gfx1100;gfx1101;gfx1102" - gpus+=";gfx1103;gfx1150;gfx1151;gfx1152;gfx1153" - fi - if use llvm_targets_NVPTX; then - plugins+=";cuda" - build_devicertl=TRUE - gpus+=";sm_35;sm_37;sm_50;sm_52;sm_53;sm_60;sm_61;sm_62" - gpus+=";sm_70;sm_72;sm_75;sm_80;sm_86;sm_87;sm_89;sm_90" - fi - fi - - local mycmakeargs=( - -DOFFLOAD_LIBDIR_SUFFIX="${libdir#lib}" - -DLIBOMPTARGET_PLUGINS_TO_BUILD="${plugins}" - -DLIBOMPTARGET_OMPT_SUPPORT="$(usex ompt)" - -DLIBOMPTARGET_BUILD_DEVICERTL_BCLIB="${build_devicertl}" - - # this breaks building static target libs - -DBUILD_SHARED_LIBS=OFF - - -DFFI_INCLUDE_DIR="${ffi_cflags#-I}" - -DFFI_LIBRARY_DIR="${ffi_ldflags#-L}" - ) - - [[ ! ${LLVM_ALLOW_GPU_TESTING} ]] && mycmakeargs+=( - # prevent trying to access the GPU - -DLIBOMPTARGET_AMDGPU_ARCH=LIBOMPTARGET_AMDGPU_ARCH-NOTFOUND - -DLIBOMPTARGET_NVPTX_ARCH=LIBOMPTARGET_NVPTX_ARCH-NOTFOUND - ) - [[ -n ${gpus} ]] && mycmakeargs+=( - -DLIBOMPTARGET_DEVICE_ARCHITECTURES="${gpus}" - ) - use test && mycmakeargs+=( - # this project does not use standard LLVM cmake macros - -DOPENMP_LLVM_LIT_EXECUTABLE="${EPREFIX}/usr/bin/lit" - -DOPENMP_LIT_ARGS="$(get_lit_flags)" - - -DOPENMP_TEST_C_COMPILER="$(type -P "${CHOST}-clang")" - -DOPENMP_TEST_CXX_COMPILER="$(type -P "${CHOST}-clang++")" - ) - - cmake_src_configure - - if [[ -z ${gpus} ]]; then - # clang requires libomptarget.devicertl.a, but it can be empty - > "${BUILD_DIR}"/libomptarget.devicertl.a || die - fi -} - -src_test() { - # respect TMPDIR! - local -x LIT_PRESERVES_TMP=1 - - cmake_build check-offload -} - -src_install() { - cmake_src_install - - if [[ ! -f ${ED}/usr/$(get_libdir)/libomptarget.devicertl.a ]] - then - dolib.a "${BUILD_DIR}"/libomptarget.devicertl.a - fi -} diff --git a/llvm-runtimes/offload/offload-20.0.0_pre20241215.ebuild b/llvm-runtimes/offload/offload-20.0.0_pre20241215.ebuild deleted file mode 100644 index a10cab67956c..000000000000 --- a/llvm-runtimes/offload/offload-20.0.0_pre20241215.ebuild +++ /dev/null @@ -1,153 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..13} ) -inherit cmake flag-o-matic llvm.org python-any-r1 toolchain-funcs - -DESCRIPTION="OpenMP offloading support" -HOMEPAGE="https://openmp.llvm.org" - -LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" -SLOT="0/${LLVM_SOABI}" -IUSE="+debug ompt test llvm_targets_AMDGPU llvm_targets_NVPTX" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-libs/libffi:= - ~llvm-core/llvm-${PV} - ~llvm-runtimes/openmp-${PV}[ompt?] - llvm_targets_AMDGPU? ( dev-libs/rocr-runtime:= ) -" -DEPEND=" - ${RDEPEND} -" -# tests: -# - dev-python/lit provides the test runner -# - llvm-core/llvm provide test utils (e.g. FileCheck) -# - llvm-core/clang provides the compiler to run tests -BDEPEND=" - dev-lang/perl - virtual/pkgconfig - llvm_targets_AMDGPU? ( llvm-core/clang ) - llvm_targets_NVPTX? ( llvm-core/clang ) - test? ( - $(python_gen_any_dep ' - dev-python/lit[${PYTHON_USEDEP}] - ') - llvm-core/clang - ) -" -# TODO: can it be fixed to compile with gcc? -BDEPEND+=" - llvm-core/clang -" - -LLVM_COMPONENTS=( offload cmake runtimes/cmake libc/shared ) -LLVM_TEST_COMPONENTS=( openmp/cmake ) -llvm.org_set_globals - -pkg_pretend() { - if [[ ${LLVM_ALLOW_GPU_TESTING} ]]; then - ewarn "LLVM_ALLOW_GPU_TESTING set. This package will run tests against your" - ewarn "GPU if it is supported. Note that these tests may be flaky, fail or" - ewarn "hang, or even cause your GPU to crash (requiring a reboot)." - fi -} - -python_check_deps() { - python_has_version "dev-python/lit[${PYTHON_USEDEP}]" -} - -pkg_setup() { - if use test; then - python-any-r1_pkg_setup - fi -} - -src_configure() { - # TODO - local -x CC=${CHOST}-clang - local -x CXX=${CHOST}-clang++ - strip-unsupported-flags - - # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 - use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" - - local libdir="$(get_libdir)" - local ffi_cflags=$($(tc-getPKG_CONFIG) --cflags-only-I libffi) - local ffi_ldflags=$($(tc-getPKG_CONFIG) --libs-only-L libffi) - local plugins="host" - local gpus= - local build_devicertl=FALSE - - if has "${CHOST%%-*}" aarch64 powerpc64le x86_64; then - if use llvm_targets_AMDGPU; then - plugins+=";amdgpu" - build_devicertl=TRUE - gpus+="amdgpu" - fi - if use llvm_targets_NVPTX; then - plugins+=";cuda" - build_devicertl=TRUE - gpus+="nvptx" - fi - [[ ${gpus} == amdgpunvptx ]] && gpus=all - fi - - local mycmakeargs=( - -DLLVM_ROOT="${ESYSROOT}/usr/lib/llvm/${LLVM_MAJOR}" - - -DOFFLOAD_LIBDIR_SUFFIX="${libdir#lib}" - -DLIBOMPTARGET_PLUGINS_TO_BUILD="${plugins}" - -DLIBOMPTARGET_OMPT_SUPPORT="$(usex ompt)" - -DLIBOMPTARGET_BUILD_DEVICERTL_BCLIB="${build_devicertl}" - - # this breaks building static target libs - -DBUILD_SHARED_LIBS=OFF - - -DFFI_INCLUDE_DIR="${ffi_cflags#-I}" - -DFFI_LIBRARY_DIR="${ffi_ldflags#-L}" - ) - - [[ ! ${LLVM_ALLOW_GPU_TESTING} ]] && mycmakeargs+=( - # prevent trying to access the GPU - -DLIBOMPTARGET_AMDGPU_ARCH=LIBOMPTARGET_AMDGPU_ARCH-NOTFOUND - -DLIBOMPTARGET_NVPTX_ARCH=LIBOMPTARGET_NVPTX_ARCH-NOTFOUND - ) - [[ -n ${gpus} ]] && mycmakeargs+=( - -DLIBOMPTARGET_DEVICE_ARCHITECTURES="${gpus}" - ) - use test && mycmakeargs+=( - # this project does not use standard LLVM cmake macros - -DOPENMP_LLVM_LIT_EXECUTABLE="${EPREFIX}/usr/bin/lit" - -DOPENMP_LIT_ARGS="$(get_lit_flags)" - - -DOPENMP_TEST_C_COMPILER="$(type -P "${CHOST}-clang")" - -DOPENMP_TEST_CXX_COMPILER="$(type -P "${CHOST}-clang++")" - ) - - cmake_src_configure - - if [[ -z ${gpus} ]]; then - # clang requires libomptarget.devicertl.a, but it can be empty - > "${BUILD_DIR}"/libomptarget.devicertl.a || die - fi -} - -src_test() { - # respect TMPDIR! - local -x LIT_PRESERVES_TMP=1 - - cmake_build check-offload -} - -src_install() { - cmake_src_install - - if [[ ! -f ${ED}/usr/$(get_libdir)/libomptarget.devicertl.a ]] - then - dolib.a "${BUILD_DIR}"/libomptarget.devicertl.a - fi -} diff --git a/llvm-runtimes/offload/offload-20.0.0_pre20241221.ebuild b/llvm-runtimes/offload/offload-20.0.0_pre20241221.ebuild deleted file mode 100644 index a10cab67956c..000000000000 --- a/llvm-runtimes/offload/offload-20.0.0_pre20241221.ebuild +++ /dev/null @@ -1,153 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..13} ) -inherit cmake flag-o-matic llvm.org python-any-r1 toolchain-funcs - -DESCRIPTION="OpenMP offloading support" -HOMEPAGE="https://openmp.llvm.org" - -LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" -SLOT="0/${LLVM_SOABI}" -IUSE="+debug ompt test llvm_targets_AMDGPU llvm_targets_NVPTX" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-libs/libffi:= - ~llvm-core/llvm-${PV} - ~llvm-runtimes/openmp-${PV}[ompt?] - llvm_targets_AMDGPU? ( dev-libs/rocr-runtime:= ) -" -DEPEND=" - ${RDEPEND} -" -# tests: -# - dev-python/lit provides the test runner -# - llvm-core/llvm provide test utils (e.g. FileCheck) -# - llvm-core/clang provides the compiler to run tests -BDEPEND=" - dev-lang/perl - virtual/pkgconfig - llvm_targets_AMDGPU? ( llvm-core/clang ) - llvm_targets_NVPTX? ( llvm-core/clang ) - test? ( - $(python_gen_any_dep ' - dev-python/lit[${PYTHON_USEDEP}] - ') - llvm-core/clang - ) -" -# TODO: can it be fixed to compile with gcc? -BDEPEND+=" - llvm-core/clang -" - -LLVM_COMPONENTS=( offload cmake runtimes/cmake libc/shared ) -LLVM_TEST_COMPONENTS=( openmp/cmake ) -llvm.org_set_globals - -pkg_pretend() { - if [[ ${LLVM_ALLOW_GPU_TESTING} ]]; then - ewarn "LLVM_ALLOW_GPU_TESTING set. This package will run tests against your" - ewarn "GPU if it is supported. Note that these tests may be flaky, fail or" - ewarn "hang, or even cause your GPU to crash (requiring a reboot)." - fi -} - -python_check_deps() { - python_has_version "dev-python/lit[${PYTHON_USEDEP}]" -} - -pkg_setup() { - if use test; then - python-any-r1_pkg_setup - fi -} - -src_configure() { - # TODO - local -x CC=${CHOST}-clang - local -x CXX=${CHOST}-clang++ - strip-unsupported-flags - - # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 - use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" - - local libdir="$(get_libdir)" - local ffi_cflags=$($(tc-getPKG_CONFIG) --cflags-only-I libffi) - local ffi_ldflags=$($(tc-getPKG_CONFIG) --libs-only-L libffi) - local plugins="host" - local gpus= - local build_devicertl=FALSE - - if has "${CHOST%%-*}" aarch64 powerpc64le x86_64; then - if use llvm_targets_AMDGPU; then - plugins+=";amdgpu" - build_devicertl=TRUE - gpus+="amdgpu" - fi - if use llvm_targets_NVPTX; then - plugins+=";cuda" - build_devicertl=TRUE - gpus+="nvptx" - fi - [[ ${gpus} == amdgpunvptx ]] && gpus=all - fi - - local mycmakeargs=( - -DLLVM_ROOT="${ESYSROOT}/usr/lib/llvm/${LLVM_MAJOR}" - - -DOFFLOAD_LIBDIR_SUFFIX="${libdir#lib}" - -DLIBOMPTARGET_PLUGINS_TO_BUILD="${plugins}" - -DLIBOMPTARGET_OMPT_SUPPORT="$(usex ompt)" - -DLIBOMPTARGET_BUILD_DEVICERTL_BCLIB="${build_devicertl}" - - # this breaks building static target libs - -DBUILD_SHARED_LIBS=OFF - - -DFFI_INCLUDE_DIR="${ffi_cflags#-I}" - -DFFI_LIBRARY_DIR="${ffi_ldflags#-L}" - ) - - [[ ! ${LLVM_ALLOW_GPU_TESTING} ]] && mycmakeargs+=( - # prevent trying to access the GPU - -DLIBOMPTARGET_AMDGPU_ARCH=LIBOMPTARGET_AMDGPU_ARCH-NOTFOUND - -DLIBOMPTARGET_NVPTX_ARCH=LIBOMPTARGET_NVPTX_ARCH-NOTFOUND - ) - [[ -n ${gpus} ]] && mycmakeargs+=( - -DLIBOMPTARGET_DEVICE_ARCHITECTURES="${gpus}" - ) - use test && mycmakeargs+=( - # this project does not use standard LLVM cmake macros - -DOPENMP_LLVM_LIT_EXECUTABLE="${EPREFIX}/usr/bin/lit" - -DOPENMP_LIT_ARGS="$(get_lit_flags)" - - -DOPENMP_TEST_C_COMPILER="$(type -P "${CHOST}-clang")" - -DOPENMP_TEST_CXX_COMPILER="$(type -P "${CHOST}-clang++")" - ) - - cmake_src_configure - - if [[ -z ${gpus} ]]; then - # clang requires libomptarget.devicertl.a, but it can be empty - > "${BUILD_DIR}"/libomptarget.devicertl.a || die - fi -} - -src_test() { - # respect TMPDIR! - local -x LIT_PRESERVES_TMP=1 - - cmake_build check-offload -} - -src_install() { - cmake_src_install - - if [[ ! -f ${ED}/usr/$(get_libdir)/libomptarget.devicertl.a ]] - then - dolib.a "${BUILD_DIR}"/libomptarget.devicertl.a - fi -} |