aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@riseup.net>2021-04-05 18:40:38 +0200
committerAndrew Ammerlaan <andrewammerlaan@riseup.net>2021-04-05 18:41:35 +0200
commitfa9f0e63433e97d83563bde9bb596d4a69d362ed (patch)
tree3e17e6c37d4b0da5ed792947e59fcb5c831aeb08 /dev-util
parentdev-lang/tk: import 8.5, removed from ::gentoo (diff)
downloadsci-fa9f0e63433e97d83563bde9bb596d4a69d362ed.tar.gz
sci-fa9f0e63433e97d83563bde9bb596d4a69d362ed.tar.bz2
sci-fa9f0e63433e97d83563bde9bb596d4a69d362ed.zip
dev-util/rocm-clang-ocl: add 4.1.0
Co-authored-by: Wilfried Holzke Closes: https://github.com/gentoo/sci/pull/1077 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/rocm-clang-ocl/Manifest1
-rw-r--r--dev-util/rocm-clang-ocl/rocm-clang-ocl-4.1.0.ebuild31
2 files changed, 32 insertions, 0 deletions
diff --git a/dev-util/rocm-clang-ocl/Manifest b/dev-util/rocm-clang-ocl/Manifest
index cd7d890e8..80600df00 100644
--- a/dev-util/rocm-clang-ocl/Manifest
+++ b/dev-util/rocm-clang-ocl/Manifest
@@ -1 +1,2 @@
DIST rocm-clang-ocl-4.0.0.tar.gz 3259 BLAKE2B a3c0237590b662a9298c39da306559c893ca50ff9dcb4a7cb150dcf381db0a9c17da7be553e0e33075a63c7a00c77e9dd30a40ae1ebdee225b0fd9cd199b0c9e SHA512 8d1b3a976fd1995980b524c32345a67eb6876ed76253efe99d55aea8dc07c673d6f84f69bf6379aeba95fd9d49ad745555096fce63300090c7e2868f3eecd261
+DIST rocm-clang-ocl-4.1.0.tar.gz 3238 BLAKE2B 60086022b3edd63ad4a76fc4751256c54db606e1ee915eb2b45dd9122e9aaa8c26192da814da17eccbe05977aa44ea29f3c2e5ccd2aedcfc609c4cc7339c37fb SHA512 685b21821d2a18c40dea41e610c4905916f9dedb80a9c4808c763c8ccbb5f4c473b51ab76da6782c7de985d00bd5b78a63e7cdb025ff74e3c088ab3f273b7e71
diff --git a/dev-util/rocm-clang-ocl/rocm-clang-ocl-4.1.0.ebuild b/dev-util/rocm-clang-ocl/rocm-clang-ocl-4.1.0.ebuild
new file mode 100644
index 000000000..1429be33c
--- /dev/null
+++ b/dev-util/rocm-clang-ocl/rocm-clang-ocl-4.1.0.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="OpenCL compilation with clang compiler"
+HOMEPAGE="https://github.com/RadeonOpenCompute/clang-ocl.git"
+SRC_URI="https://github.com/RadeonOpenCompute/clang-ocl/archive/rocm-${PV}.tar.gz -> rocm-clang-ocl-${PV}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="dev-libs/rocm-opencl-runtime"
+DEPEND="
+ dev-util/rocm-cmake
+ ${RDEPEND}"
+
+S="${WORKDIR}/clang-ocl-rocm-${PV}"
+
+src_prepare() {
+ sed -e "s:HINTS \${CXX_COMPILER_PATH}/bin:NO_DEFAULT_PATH:" \
+ -e "s:/opt/rocm/llvm/bin:${EPREFIX}/usr/lib/llvm/roc/bin:" \
+ -e "/AMDDeviceLibs PATHS/s:/opt/rocm:${EPREFIX}/usr/lib/cmake/AMDDeviceLibs:" \
+ -e "s:\${AMD_DEVICE_LIBS_PREFIX}/amdgcn/bitcode:${EPREFIX}/usr/lib/amdgcn/bitcode:" \
+ -i CMakeLists.txt || die
+
+ cmake_src_prepare
+}