* update hsa-rocr to 6.0.2-2
This commit is contained in:
parent
9784c7d84c
commit
5cca0c6a2d
@ -8,37 +8,35 @@
|
||||
|
||||
pkgname=hsa-rocr
|
||||
pkgver=6.0.2
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='HSA Runtime API and runtime for ROCm'
|
||||
arch=(x86_64 powerpc64le powerpc64 riscv64)
|
||||
url='https://rocmdocs.amd.com/en/latest/Installation_Guide/ROCR-Runtime.html'
|
||||
url='https://github.com/ROCm/ROCR-Runtime'
|
||||
license=('NCSA')
|
||||
depends=('libelf' 'hsakmt-roct' 'rocm-device-libs')
|
||||
depends=('rocm-core' 'glibc' 'gcc-libs' 'libelf' 'libdrm'
|
||||
'hsakmt-roct' 'rocm-device-libs')
|
||||
makedepends=('cmake' 'rocm-llvm' 'xxd')
|
||||
_git='https://github.com/RadeonOpenCompute/ROCR-Runtime'
|
||||
source=("${pkgname}-${pkgver}.tar.gz::$_git/archive/rocm-$pkgver.tar.gz")
|
||||
source=("${pkgname}-${pkgver}.tar.gz::$url/archive/rocm-$pkgver.tar.gz")
|
||||
sha256sums=('e7ff4d7ac35a2dd8aad1cb40b96511a77a9c23fe4d1607902328e53728e05c28')
|
||||
_dirname="$(basename "$_git")-$(basename "${source[0]}" .tar.gz)"
|
||||
_dirname="$(basename "$url")-$(basename "${source[0]}" .tar.gz)"
|
||||
options=(!lto)
|
||||
|
||||
build() {
|
||||
# Silence warnings on optional libraries,
|
||||
# Silence warnings on optional libraries with -DNDEBUG,
|
||||
# https://github.com/RadeonOpenCompute/ROCR-Runtime/issues/89#issuecomment-613788944
|
||||
CXXFLAGS="$CXXFLAGS -DNDEBUG" \
|
||||
cmake \
|
||||
-Wno-dev \
|
||||
-B build \
|
||||
-S "$_dirname/src" \
|
||||
-DCMAKE_BUILD_TYPE=None \
|
||||
-DCMAKE_INSTALL_PREFIX=/opt/rocm \
|
||||
-DCMAKE_PREFIX_PATH=/opt/rocm
|
||||
cmake --build build
|
||||
local cmake_args=(
|
||||
-Wno-dev
|
||||
-S "$_dirname/src"
|
||||
-B build
|
||||
-D CMAKE_BUILD_TYPE=None
|
||||
-D CMAKE_INSTALL_PREFIX=/opt/rocm
|
||||
-D CMAKE_PREFIX_PATH=/opt/rocm
|
||||
-D CMAKE_CXX_FLAGS="$CXXFLAGS -DNDEBUG")
|
||||
cmake "${cmake_args[@]}"
|
||||
VERBOSE=1 cmake --build build
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
|
||||
install -Dm644 "$_dirname/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
echo "/opt/rocm/hsa/lib" > "$pkgname.conf"
|
||||
install -Dm644 "$pkgname.conf" "$pkgdir/etc/ld.so.conf.d/$pkgname.conf"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user