DEPRECATION NOTICE
AMD is deprecating ROCm-OpenCL-Driver. We will no longer develop any new feature in ROCm-OpenCL-Driver and we will stop maintaining it after its final release, which is planned for December 2019. If your application was developed with the ROCm-OpenCL-Driver, we would encourage you to transition it to ROCm-CompilerSupport, which provides similar functionality.
how can I easily now use OpenCL with any open source solution?
]]># Maintainer: Jakub Okoński <jakub@okonski.org>
pkgname=roct-thunk-interface
_pkgname=ROCT-Thunk-Interface
pkgver=3.0.0
pkgrel=1
pkgdesc="user-mode API interfaces used to interact with the ROCk driver"
arch=(x86_64)
url="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface"
license=('BSD')
makedepends=(cmake gcc ninja)
depends=(numactl pciutils)
source=("$_pkgname-roc-$pkgver.tar.gz::https://github.com/RadeonOpenCompute/$_pkgname/archive/roc-$pkgver.tar.gz"
"fix_build-dev_command.patch")
sha256sums=('d6d91397fcd926bd90fae8dfe81d69653273e8b68cd47f822576838f2ac96729'
'f58bdd6df3065ad1e08c107e95140445fc01bd46dae27fb9d2091a2f3b5d3d2f')
#patch does not seem to be needed
#prepare() {
# cd $_pkgname-roc-$pkgver
# patch -Np1 -i ../fix_build-dev_command.patch
#}
build() {
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/opt/rocm \
$_pkgname-roc-$pkgver
ninja -C build all build-dev
}
package() {
DESTDIR="$pkgdir" ninja -C build install install-dev
install -dm 755 "$pkgdir/usr/share/licenses/$pkgname"
install -Dm 644 $_pkgname-roc-$pkgver/LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
install -dm 755 "$pkgdir/etc/ld.so.conf.d"
cat <<-EOF > $pkgdir/etc/ld.so.conf.d/roct-thunk-interface.conf
/opt/rocm/lib
EOF
}
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
# Contributor: Jakub Okoński <jakub@okonski.org>
pkgname=rocr-runtime
_pkgname=ROCR-Runtime
pkgver=3.0.0
pkgrel=1
pkgdesc="ROCm Platform Runtime: ROCr a HPC market enhanced HSA based runtime"
url="https://github.com/RadeonOpenCompute/ROCR-Runtime"
arch=(x86_64)
license=('Custom')
makedepends=('cmake')
depends=('libelf' 'roct-thunk-interface')
source=("$_pkgname-roc-$pkgver.tar.gz::https://github.com/RadeonOpenCompute/$_pkgname/archive/roc-$pkgver.tar.gz")
sha256sums=("6d133e285535adef61464f7f0377fe97c480323ebfd242b34b5585b8bb41f99e")
build() {
#remove legacy symlinks whichrequire adding "$pkgdir" to CMAKE_INSTALL_PREFIX
sed -i '180,182d;187,189d' $_pkgname-roc-$pkgver/src/CMakeLists.txt
cmake -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/opt/rocm \
-DHSAKMT_INC_PATH=/opt/rocm/include \
-DHSAKMT_LIB_PATH=/opt/rocm/lib \
$_pkgname-roc-$pkgver/src
make -C build
}
package() {
make DESTDIR="$pkgdir" -C build install
install -dm 755 "$pkgdir/usr/share/licenses/$pkgname"
install -Dm 644 $_pkgname-roc-$pkgver/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
install -dm 755 "$pkgdir/etc/ld.so.conf.d"
cat <<-EOF > $pkgdir/etc/ld.so.conf.d/rocm-runtime.conf
/opt/rocm/lib
/opt/rocm/hsa/lib/
EOF
}
/home/krzysiek/.cache/yay/rocr-runtime/src/ROCR-Runtime-roc-3.0.0/src/core/runtime/amd_cpu_agent.cpp:360:63: error: ‘const HsaNodeProperties’ {aka ‘const struct _HsaNodeProperties’} has no member named ‘Domain’
360 | *((uint32_t*)value) = static_cast<uint32_t>(properties_.Domain);
| ^~~~~~
make[2]: *** [CMakeFiles/hsa-runtime64.dir/build.make:128: CMakeFiles/hsa-runtime64.dir/core/runtime/amd_cpu_agent.cpp.o] Błąd 1
make[1]: *** [CMakeFiles/Makefile2:82: CMakeFiles/hsa-runtime64.dir/all] Błąd 2
make: *** [Makefile:152: all] Błąd 2
==> BŁĄD: Wystąpił błąd w build().
Przerywam...
Is there any way to turn on image support in the opencl-mesa? I need it for Darktable's opencl rendering
$ clinfo
Number of platforms 1
Platform Name Clover
Platform Vendor Mesa
Platform Version OpenCL 1.1 Mesa 19.3.1
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd
Platform Extensions function suffix MESA
Platform Name Clover
Number of devices 1
Device Name Radeon RX 590 Series (POLARIS10, DRM 3.35.0, 5.4.6-arch3-1, LLVM 9.0.0)
Device Vendor AMD
Device Vendor ID 0x1002
Device Version OpenCL 1.1 Mesa 19.3.1
Driver Version 19.3.1
Device OpenCL C Version OpenCL C 1.1
Device Type GPU
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Max compute units 36
Max clock frequency 1580MHz
Max work item dimensions 3
Max work item sizes 256x256x256
Max work group size 256
Preferred work group size multiple 64
Preferred / native vector sizes
char 16 / 16
short 8 / 8
int 4 / 4
long 2 / 2
half 8 / 8 (cl_khr_fp16)
float 4 / 4
double 2 / 2 (cl_khr_fp64)
Half-precision Floating-point support (cl_khr_fp16)
Denormals No
Infinity and NANs Yes
Round to nearest Yes
Round to zero No
Round to infinity No
IEEE754-2008 fused multiply-add No
Support is emulated in software No
Single-precision Floating-point support (core)
Denormals No
Infinity and NANs Yes
Round to nearest Yes
Round to zero No
Round to infinity No
IEEE754-2008 fused multiply-add No
Support is emulated in software No
Correctly-rounded divide and sqrt operations No
Double-precision Floating-point support (cl_khr_fp64)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Address bits 64, Little-Endian
Global memory size 8589934592 (8GiB)
Error Correction support No
Max memory allocation 6871947673 (6.4GiB)
Unified memory for Host and Device No
Minimum alignment for any data type 128 bytes
Alignment of base address 32768 bits (4096 bytes)
Global Memory cache type None
Image support No
Local memory type Local
Local memory size 32768 (32KiB)
Max number of constant args 16
Max constant buffer size 2147483647 (2GiB)
Max size of kernel argument 1024
Queue properties
Out-of-order execution No
Profiling Yes
Profiling timer resolution 0ns
Execution capabilities
Run OpenCL kernels Yes
Run native kernels No
Device Extensions cl_khr_byte_addressable_store cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp64 cl_khr_fp16
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) Clover
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [MESA]
clCreateContext(NULL, ...) [default] Success [MESA]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1)
Platform Name Clover
Device Name Radeon RX 590 Series (POLARIS10, DRM 3.35.0, 5.4.6-arch3-1, LLVM 9.0.0)
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1)
Platform Name Clover
Device Name Radeon RX 590 Series (POLARIS10, DRM 3.35.0, 5.4.6-arch3-1, LLVM 9.0.0)
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (1)
Platform Name Clover
Device Name Radeon RX 590 Series (POLARIS10, DRM 3.35.0, 5.4.6-arch3-1, LLVM 9.0.0)
ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.2.12
ICD loader Profile OpenCL 2.2