I could build all the examples of the ArrayFire project (except the CUDA ones, having an AMD APU). However, just the ones running on the CPU work correctly; the GPU based ones have issues.
Example:
benchmarks> ls
CMakeFiles blas_cpu cg_cpu cmake_install.cmake fft_cpu fft_opencl Makefile pi_cpu
This is the CPU version:
benchmarks> ./fft_cpu
ArrayFire v3.8.0 (CPU, 64-bit Linux, build d99887a)
[0] AMD: AMD Ryzen 7 2700U with Radeon Vega Mobile Gfx Benchmark N-by-N 2D fft
128 x 128: 3 Gflops
256 x 256: 4 Gflops
512 x 512: 4 Gflops
1024 x 1024: 4 Gflops
2048 x 2048: 5 Gflops
4096 x 4096: 5 Gflops
This is the GPU version (running in verbose mode):
benchmarks> AF_PRINT_ERRORS=1 AF_JIT_KERNEL_TRACE=stdout AF_TRACE=all ./fft_opencl
[platform][1626887645][022941] [ ../src/backend/common/DependencyModule.cpp:99 ] Attempting to load: libforge.so
[platform][1626887645][022941] [ ../src/backend/common/DependencyModule.cpp:102 ] Found: libforge.so
[platform][1626887645][022941] [ ../src/backend/opencl/device_manager.cpp:218 ] Found 1 OpenCL platforms
[platform][1626887645][022941] [ ../src/backend/opencl/device_manager.cpp:230 ] Found 1 devices on platform Clover
[platform][1626887645][022941] [ ../src/backend/opencl/device_manager.cpp:235 ] Found device AMD Radeon(TM) Vega 3 Graphics (RAVEN, DRM 3.40.0, 5.12.11-zen1-1-zen, LLVM 12.0.0) on platform
Clover
[platform][1626887645][022941] [ ../src/backend/opencl/device_manager.cpp:240 ] Found 1 OpenCL devices
[platform][1626887646][022941] [ ../src/backend/opencl/device_manager.cpp:335 ] Default device: 0
ArrayFire v3.8.0 (OpenCL, 64-bit Linux, build d99887a)
[0] Clover: AMD Radeon(TM) Vega 3 Graphics (RAVEN, DRM 3.40.0, 5.12.11-zen1-1-zen, LLVM 12.0.0), 3072 MB
Benchmark N-by-N 2D fft
128 x 128: [mem][1626887646][022941] [ ../src/backend/opencl/memory.cpp:200 ] nativeAlloc: 64 KB 0x56337cfc7e50
[jit][1626887646][022941] [ ../src/backend/opencl/compile_module.cpp:254 ] {9348653917523335434 : loaded from /home/pietrom/.arrayfire/KER9348653917523335434_CL_4098_AMD_RADEON(TM)_VEGA_3_
GRAPHICS_(RAVEN,_DRM_3.40.0,_5.12.11-ZEN1-1-ZEN,_LLVM_12.0.0)_AF_38.bin for AMD Radeon(TM) Vega 3 Graphics (RAVEN, DRM 3.40.0, 5.12.11-zen1-1-zen, LLVM 12.0.0) }
Using the GPU, the execution is stuck after the last message printed above.
Is this a common issue? Could have I done something wrong? Could be anything missing on my system?