Okay, I think I was celebrating too early. As I said, I was using OpenCL to do VDF verification for running node/farmer for a cryptocurrency program. It can use the CPU (slower) or GPU (with OpenCL) to keep in sync with the current blockchain height.
Under Win 10, with the same computer I'm consistently getting ~0.2 seconds. Under Manjaro, using the CPU, I get 2.7 - 3.0 seconds. With OpenCL, I'm getting 0.3xxx seconds, which is okay if it had been consistent. But sometimes I'm still getting 14 or 18 seconds.
ROCm OpenCL did not work for my APU. Setting the power level to 'high' really helps, but then it always reverts back to 'auto' after reboot. And sudo/root user is needed to change this setting. Can anyone tell me how to write a script that change this setting at reboot with root permission?
sudo nano /sys/class/drm/card0/device/power_dpm_force_performance_level
Pinned Comments
nho1ix commented on 2023-12-29 08:43 (UTC) (edited on 2024-02-10 07:13 (UTC) by nho1ix)
Note for anyone who has a Polaris GPU (Radeon RX 5xx) debugging issues with this package; Packages that use OpenCL like clinfo or davinci-resolve-studio will need you to downgrade opencl-amd to 1:5.7.1-1 as well as amdgpu-pro-oglp to 23.10_1620044-1 to avoid coredumps & segfaults.
DVR would not open unless these 2 packages were downgraded (along with their dependencies). Had to figure it out the hard way after hours using valgrind and rebooting over and over. Hopefully someone else will not have to pull their hair out trying to resolve their issue.
luciddream commented on 2021-12-26 15:14 (UTC) (edited on 2025-01-29 20:13 (UTC) by luciddream)
Current release is for ROCm 6.3.2
opencl-amd
package includes only OpenCL / HIP runtime. You also need to use opencl-amd-dev package for ROCm LLVM compiler, OpenCL and HIP SDK. Please relog / reboot after installing so your PATH gets updatedThere are now official packages available: rocm-opencl-sdk for OpenCL and rocm-hip-sdk for HIP - You might have better luck with these packages depending on your GPU.