diff --git a/rocm-device-libs/PKGBUILD b/rocm-device-libs/PKGBUILD index a9727d1ef3..481a1152a5 100644 --- a/rocm-device-libs/PKGBUILD +++ b/rocm-device-libs/PKGBUILD @@ -3,17 +3,24 @@ # Contributor: Ranieri Althoff pkgname=rocm-device-libs -pkgver=5.4.4 +pkgver=5.6.0 pkgrel=1 pkgdesc='ROCm Device Libraries' arch=(x86_64 powerpc64le powerpc64 riscv64) url='https://github.com/RadeonOpenCompute/ROCm-Device-Libs' license=('custom:NCSAOSL') makedepends=('rocm-cmake' 'rocm-llvm') -source=("${pkgname}-${pkgver}.tar.gz::$url/archive/rocm-$pkgver.tar.gz") -sha256sums=('04bdfda8293779ca254596339607686633fc20d54490127b1d542884f777d9e3') +source=("${pkgname}-${pkgver}.tar.gz::$url/archive/rocm-$pkgver.tar.gz" + "${pkgname}-rm-gfx700.patch") +sha256sums=('efb5dcdca9b3a9fbe408d494fb4a23e0b78417eb5fa8eebd4a5d226088f28921' + '0b38ab6d8b1a52bac198007af098d6ec5008a7359a4ee174283e6c69c8b1a868') _dirname="$(basename "$url")-$(basename "${source[0]}" .tar.gz)" +prepare() { + cd "$_dirname" + patch -Np1 -i "$srcdir/$pkgname-rm-gfx700.patch" +} + build() { cmake \ -Wno-dev \ diff --git a/rocm-device-libs/rocm-device-libs-rm-gfx700.patch b/rocm-device-libs/rocm-device-libs-rm-gfx700.patch new file mode 100644 index 0000000000..f27850423d --- /dev/null +++ b/rocm-device-libs/rocm-device-libs-rm-gfx700.patch @@ -0,0 +1,19 @@ +diff --git a/test/compile/CMakeLists.txt b/test/compile/CMakeLists.txt +index 9af0b1a..a789222 100644 +--- a/test/compile/CMakeLists.txt ++++ b/test/compile/CMakeLists.txt +@@ -54,12 +54,12 @@ foreach(gpu gfx900 gfx1030) + add_constant_fold_test(lgamma_r ${gpu}) + endforeach() + +-foreach(gpu gfx700 gfx803) ++foreach(gpu gfx803) + add_isa_test(asin ${gpu}) + add_isa_test(atan2 ${gpu}) + add_isa_test(atan2pi ${gpu}) + endforeach() + +-foreach(gpu gfx600 gfx700) ++foreach(gpu gfx600) + add_isa_test(frexp ${gpu}) + endforeach()