Browse Source

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>
master
Andrew Ammerlaan 3 months ago
parent
commit
fa9f0e6343
No known key found for this signature in database GPG Key ID: A19F636CD4EDBCD1
  1. 1
      dev-util/rocm-clang-ocl/Manifest
  2. 31
      dev-util/rocm-clang-ocl/rocm-clang-ocl-4.1.0.ebuild

1
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

31
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
}
Loading…
Cancel
Save