summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlysses Rangel Ribeiro2019-04-23 00:18:19 -0300
committerUlysses Rangel Ribeiro2019-04-23 00:18:19 -0300
commit962865be51f7794d042f297c6d0f9c8ff7655d3b (patch)
tree6faf95537e4a6dccd7703ab59b5e6d542d0807a0
parent5dec61ea49eb5a9db48c67f6a29a0719e2609bd9 (diff)
downloadaur-962865be51f7794d042f297c6d0f9c8ff7655d3b.tar.gz
Update to ROCm 2.3.0
-rw-r--r--.SRCINFO35
-rw-r--r--PKGBUILD37
2 files changed, 40 insertions, 32 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 186dba85272..86b42077fde 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = rocm-opencl-runtime
pkgdesc = ROCm OpenCLâ„¢ Compatible Runtime
- pkgver = 2.2.0
- pkgrel = 3
+ pkgver = 2.3.0
+ pkgrel = 1
url = https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime
arch = x86_64
license = MIT
@@ -11,25 +11,26 @@ pkgbase = rocm-opencl-runtime
makedepends = ocaml-findlib
makedepends = python2-z3
makedepends = gtest
- depends = rocr-runtime>=2.2.0
+ depends = rocr-runtime>=2.3.0
provides = rocm-opencl-runtime
+ provides = opencl-driver
conflicts = rocm-opencl-runtime
conflicts = rocm-opencl-git
- source = rocm-opencl-runtime-2.2.0.tar.gz::https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/roc-2.2.0.tar.gz
- source = rocm-opencl-driver-2.2.0.tar.gz::https://github.com/RadeonOpenCompute/ROCm-OpenCL-Driver/archive/roc-2.2.0.tar.gz
- source = llvm-roc-2.2.0.tar.gz::https://github.com/RadeonOpenCompute/llvm/archive/roc-2.2.0.tar.gz
- source = clang-roc-2.2.0.tar.gz::https://github.com/RadeonOpenCompute/clang/archive/roc-2.2.0.tar.gz
- source = lld-roc-2.2.0.tar.gz::https://github.com/RadeonOpenCompute/lld/archive/roc-2.2.0.tar.gz
- source = rocm-device-libs-2.2.0.tar.gz::https://github.com/RadeonOpenCompute/ROCm-Device-Libs/archive/roc-2.2.0.tar.gz
- source = OpenCL-ICD-Loader-44f384ae624675d6b0b92ce39a97cb7f4899d92a.zip::https://github.com/KhronosGroup/OpenCL-ICD-Loader/archive/44f384ae624675d6b0b92ce39a97cb7f4899d92a.zip
+ source = rocm-opencl-runtime-2.3.0.tar.gz::https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/roc-2.3.0.tar.gz
+ source = rocm-opencl-driver-2.3.0.tar.gz::https://github.com/RadeonOpenCompute/ROCm-OpenCL-Driver/archive/roc-2.3.0.tar.gz
+ source = llvm-roc-ocl-2.3.0.tar.gz::https://github.com/RadeonOpenCompute/llvm/archive/roc-ocl-2.3.0.tar.gz
+ source = clang-roc-2.3.0.tar.gz::https://github.com/RadeonOpenCompute/clang/archive/roc-2.3.0.tar.gz
+ source = lld-roc-ocl-2.3.0.tar.gz::https://github.com/RadeonOpenCompute/lld/archive/roc-ocl-2.3.0.tar.gz
+ source = rocm-device-libs-2.3.0.tar.gz::https://github.com/RadeonOpenCompute/ROCm-Device-Libs/archive/roc-2.3.0.tar.gz
+ source = OpenCL-ICD-Loader-d0f452d8480416b3b44838b5790a27dc02e766f5.zip::https://github.com/KhronosGroup/OpenCL-ICD-Loader/archive/d0f452d8480416b3b44838b5790a27dc02e766f5.zip
source = fix_rocm_opencl_build_order.patch
- sha256sums = 3bb99867ae962f5b47da03e23f39abc6e0ff5e3b9ef49646b139d14e1def11ae
- sha256sums = cda84f7fcff46ac1e36399fd919512573b89632c692ae93cd9d846f8067aa48a
- sha256sums = d46116a8adbacab6aa669704994d121d94264ed69851238bf51a26432e5dbc9a
- sha256sums = 4900cabd4735419785e4919e6ec1c7fe1792a8934b0413be87d469809255d287
- sha256sums = 6f39e600c6213c278f8cbf4df61b3b132915a9c68841b41ed8decd4013e03cc4
- sha256sums = 65c165d33898a7782b60cfe45d560d657b82e350d35035d11b759ee6d7dec190
- sha256sums = a8a5b2305f589f315403ca8390ab2ec57acbc99aae4fcabe7bb9632a6b11e89f
+ sha256sums = 379b7df9e5ab6b4b889ccb759ba2c4f70a83a6016a5b95734142814823331067
+ sha256sums = 1af3066268c4816bc0b0dc32fe2e12d02b4202cac2f671f3c25fce23c176df1f
+ sha256sums = 507de131234db47161afa0c88eb0a7a8b3368006adee8d26880f25aaf9dddb80
+ sha256sums = dba842a38254f3609a6537e9ccc20f4fac8b14bf433029b78a145d8343fd22d3
+ sha256sums = 3ff165df4a869c4b1d9939722430b697d8e9f9c9fbfe856926e93b33bb4a930a
+ sha256sums = 3ae6af172b203a942e97f0d5cad9b89c85fbe2dfe7414040f2aca2f6a6745822
+ sha256sums = c04823206f75ef515d8b74b7eb24871b0fac00deb7fc5b5e43d200953aad71c2
sha256sums = 0f735299810e9e22cd57f5b96a7628a0f399d445a1f3bacefd8b890e84ca372f
pkgname = rocm-opencl-runtime
diff --git a/PKGBUILD b/PKGBUILD
index 91027e54508..3c2ae95dede 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,9 @@
# Maintainer: Ulysses R Ribeiro <ulyssesrr@gmail.com>
-_opencl_icd_loader_commit="44f384ae624675d6b0b92ce39a97cb7f4899d92a"
+_opencl_icd_loader_commit="d0f452d8480416b3b44838b5790a27dc02e766f5"
pkgname=rocm-opencl-runtime
-pkgver=2.2.0
-pkgrel=3
+pkgver=2.3.0
+pkgrel=1
pkgdesc="ROCm OpenCLâ„¢ Compatible Runtime"
arch=('x86_64')
url="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime"
@@ -11,7 +11,7 @@ license=('MIT')
groups=()
depends=("rocr-runtime>=${pkgver}")
makedepends=(cmake ninja gcc ocaml-findlib python2-z3 gtest)
-provides=("${pkgname}")
+provides=("${pkgname}" "opencl-driver")
conflicts=("${pkgname}" "rocm-opencl-git")
replaces=()
backup=()
@@ -19,22 +19,22 @@ options=()
source=(
"rocm-opencl-runtime-${pkgver}.tar.gz::https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/roc-${pkgver}.tar.gz"
"rocm-opencl-driver-${pkgver}.tar.gz::https://github.com/RadeonOpenCompute/ROCm-OpenCL-Driver/archive/roc-${pkgver}.tar.gz"
- "llvm-roc-${pkgver}.tar.gz::https://github.com/RadeonOpenCompute/llvm/archive/roc-${pkgver}.tar.gz"
+ "llvm-roc-ocl-${pkgver}.tar.gz::https://github.com/RadeonOpenCompute/llvm/archive/roc-ocl-${pkgver}.tar.gz"
"clang-roc-${pkgver}.tar.gz::https://github.com/RadeonOpenCompute/clang/archive/roc-${pkgver}.tar.gz"
- "lld-roc-${pkgver}.tar.gz::https://github.com/RadeonOpenCompute/lld/archive/roc-${pkgver}.tar.gz"
+ "lld-roc-ocl-${pkgver}.tar.gz::https://github.com/RadeonOpenCompute/lld/archive/roc-ocl-${pkgver}.tar.gz"
"rocm-device-libs-${pkgver}.tar.gz::https://github.com/RadeonOpenCompute/ROCm-Device-Libs/archive/roc-${pkgver}.tar.gz"
"OpenCL-ICD-Loader-${_opencl_icd_loader_commit}.zip::https://github.com/KhronosGroup/OpenCL-ICD-Loader/archive/${_opencl_icd_loader_commit}.zip"
"fix_rocm_opencl_build_order.patch"
)
sha256sums=(
- "3bb99867ae962f5b47da03e23f39abc6e0ff5e3b9ef49646b139d14e1def11ae"
- "cda84f7fcff46ac1e36399fd919512573b89632c692ae93cd9d846f8067aa48a"
- "d46116a8adbacab6aa669704994d121d94264ed69851238bf51a26432e5dbc9a"
- "4900cabd4735419785e4919e6ec1c7fe1792a8934b0413be87d469809255d287"
- "6f39e600c6213c278f8cbf4df61b3b132915a9c68841b41ed8decd4013e03cc4"
- "65c165d33898a7782b60cfe45d560d657b82e350d35035d11b759ee6d7dec190"
- "a8a5b2305f589f315403ca8390ab2ec57acbc99aae4fcabe7bb9632a6b11e89f"
+ "379b7df9e5ab6b4b889ccb759ba2c4f70a83a6016a5b95734142814823331067"
+ "1af3066268c4816bc0b0dc32fe2e12d02b4202cac2f671f3c25fce23c176df1f"
+ "507de131234db47161afa0c88eb0a7a8b3368006adee8d26880f25aaf9dddb80"
+ "dba842a38254f3609a6537e9ccc20f4fac8b14bf433029b78a145d8343fd22d3"
+ "3ff165df4a869c4b1d9939722430b697d8e9f9c9fbfe856926e93b33bb4a930a"
+ "3ae6af172b203a942e97f0d5cad9b89c85fbe2dfe7414040f2aca2f6a6745822"
+ "c04823206f75ef515d8b74b7eb24871b0fac00deb7fc5b5e43d200953aad71c2"
"0f735299810e9e22cd57f5b96a7628a0f399d445a1f3bacefd8b890e84ca372f"
)
@@ -51,7 +51,7 @@ prepare() {
#<project path="opencl/compiler/llvm" name="llvm"/>
mkdir -p $srcdir/opencl/compiler/
- ln -s $srcdir/llvm-roc-${pkgver} opencl/compiler/llvm
+ ln -s $srcdir/llvm-roc-ocl-${pkgver} opencl/compiler/llvm
#<project path="opencl/compiler/llvm/tools/clang" name="clang"/>
mkdir -p $srcdir/opencl/compiler/llvm/tools/
@@ -59,7 +59,7 @@ prepare() {
#<project path="opencl/compiler/llvm/tools/lld" name="lld"/>
mkdir -p $srcdir/opencl/compiler/llvm/tools/
- ln -s $srcdir/lld-roc-${pkgver} opencl/compiler/llvm/tools/lld
+ ln -s $srcdir/lld-roc-ocl-${pkgver} opencl/compiler/llvm/tools/lld
#<project path="opencl/library/amdgcn" name="ROCm-Device-Libs"/>
mkdir -p $srcdir/opencl/library/
@@ -90,6 +90,10 @@ build() {
fi
mkdir -p $srcdir/build
cd $srcdir/build
+
+ ## mimic AMD official binaries LDFLAGS
+ #export LDFLAGS="-Wl,--no-as-needed"
+
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/opt/rocm/opencl \
-DCLANG_ENABLE_STATIC_ANALYZER=ON \
@@ -97,6 +101,9 @@ build() {
$srcdir/opencl
# -jNUM_BUILD_THREADS to avoid Out of Memory
ninja -j$NUM_BUILD_THREADS
+
+ # FIXME Check why lld has to built manually since 2.3.0
+ ninja lld
}
package() {