I was playing around with ROCm and OpenCL. I installed `rocm6.4-amd-opencl`, `lib64rocm6.4-opencl-runtime` and related packages. When executing `clinfo` I get
- Code: Select all
$ clinfo
Number of platforms 1
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.1 AMD-APP (3649.0)
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_amd_event_callback
Platform Extensions function suffix AMD
Platform Host timer resolution 1ns
Platform Name AMD Accelerated Parallel Processing
Number of devices 0
I have cross-checked that the GPUs (and CPU related graphics) do show up in `lscpi` and are supported by ROCm.
With the help of AI I executed
- Code: Select all
$ LD_DEBUG=libs clinfo 2>clinfo_ld.log
$ cat clinfo_ld.log
...
20513: find library=libamd_comgr.so.3 [0]; searching
20513: search cache=/etc/ld.so.cache
20513: search path=/lib64/glibc-hwcaps/x86-64-v4:/lib64/glibc-hwcaps/x86-64-v3:/lib64/glibc-hwcaps/x86-64-v2:/lib64:/usr/lib64/glibc-hwcaps/x86-64-v4:/usr/lib64/glibc-hwcaps/x86-64-v3:/usr/lib64/glibc-hwcaps/x86-64-v2:/usr/lib64 (system search path)
20513: trying file=/lib64/glibc-hwcaps/x86-64-v4/libamd_comgr.so.3
20513: trying file=/lib64/glibc-hwcaps/x86-64-v3/libamd_comgr.so.3
20513: trying file=/lib64/glibc-hwcaps/x86-64-v2/libamd_comgr.so.3
20513: trying file=/lib64/libamd_comgr.so.3
20513: trying file=/usr/lib64/glibc-hwcaps/x86-64-v4/libamd_comgr.so.3
20513: trying file=/usr/lib64/glibc-hwcaps/x86-64-v3/libamd_comgr.so.3
20513: trying file=/usr/lib64/glibc-hwcaps/x86-64-v2/libamd_comgr.so.3
20513: trying file=/usr/lib64/libamd_comgr.so.3
...
And here it gets interesting because I was able to find
- Code: Select all
lib64rocm-compilersupport5.7.1
(I tried to install the 2.5 version and symlinking to the /usr/lib64/libamd_comgr.so.3 but this shows some other errors because of missing features.)
