Hello,
I am trying to do some machine vision computation acceleration done by AMD GPUs using OpenCL via ROCm since this is what many machine vision frameworks use for AMD GPUs.
I spoke with the OpenCL group from their IRC channel on Freenode(Libera). They told me that I would need to install ROCm.
They also told me that I can use CUDA code on AMD GPUs thanks to AMD's HIP.
I couldn't find any way on how to install ROCm on FreeBSD 13.1.
From my understanding ROCm is used so that AMD's OpenCL can be used.
I know that ROCm is supported on Linux distros.
Also clinfo shows that the AMD Radeon RX 580 GPU is OpenCL 1.1 when the card is actually supported with OpenCL 2.1:
OpenCV supports only OpenCL 1.2 and not OpenCL 1.1 and my card is capable with OpenCL 2.1.
Do I really need ROCm to get OpenCL GPU acceleration working for OpenCV or dlib?
What are some options since I am using FreeBSD?
Here is the output of clinfo:
Thanks for any info.
I am trying to do some machine vision computation acceleration done by AMD GPUs using OpenCL via ROCm since this is what many machine vision frameworks use for AMD GPUs.
I spoke with the OpenCL group from their IRC channel on Freenode(Libera). They told me that I would need to install ROCm.
They also told me that I can use CUDA code on AMD GPUs thanks to AMD's HIP.
I couldn't find any way on how to install ROCm on FreeBSD 13.1.
From my understanding ROCm is used so that AMD's OpenCL can be used.
I know that ROCm is supported on Linux distros.
Also clinfo shows that the AMD Radeon RX 580 GPU is OpenCL 1.1 when the card is actually supported with OpenCL 2.1:
AMD Radeon RX 580 Specs
AMD Polaris 20, 1340 MHz, 2304 Cores, 144 TMUs, 32 ROPs, 8192 MB GDDR5, 2000 MHz, 256 bit
www.techpowerup.com
OpenCV supports only OpenCL 1.2 and not OpenCL 1.1 and my card is capable with OpenCL 2.1.
Do I really need ROCm to get OpenCL GPU acceleration working for OpenCV or dlib?
What are some options since I am using FreeBSD?
Here is the output of clinfo:
Code:
Number of platforms 2
Platform Name Clover
Platform Vendor Mesa
Platform Version OpenCL 1.1 Mesa 21.3.8
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd
Platform Extensions function suffix MESA
Platform Name Portable Computing Language
Platform Vendor The pocl project
Platform Version OpenCL 2.0 pocl 1.8 Unix, Release+Asserts, RELOC, LLVM 13.0.1, SLEEF, DISTRO, POCL_DEBUG
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_pocl_content_size
Platform Extensions function suffix POCL
Platform Name Clover
Number of devices 1
Device Name AMD Radeon RX 580 Series (POLARIS10, DRM 3.35.0, 13.1-RELEASE-p1, LLVM 13.0.1)
Device Vendor AMD
Device Vendor ID 0x1002
Device Version OpenCL 1.1 Mesa 21.3.8
Device Numeric Version 0x401000 (1.1.0)
Driver Version 21.3.8
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 1100MHz
Max work item dimensions 3
Max work item sizes 256x256x256
Max work group size 256
Preferred work group size multiple (kernel) 64
Preferred / native vector sizes
char 16 / 16
short 8 / 8
int 4 / 4
long 2 / 2
half 0 / 0 (n/a)
float 4 / 4
double 2 / 2 (cl_khr_fp64)
Half-precision Floating-point support (n/a)
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 4294967296 (4GiB)
Error Correction support No
Max memory allocation 3435973836 (3.2GiB)
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 67108864 (64MiB)
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
ILs with version (n/a)
Built-in kernels with version (n/a)
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_extended_versioning
Device Extensions with Version cl_khr_byte_addressable_store 0x400000 (1.0.0)
cl_khr_global_int32_base_atomics 0x400000 (1.0.0)
cl_khr_global_int32_extended_atomics 0x400000 (1.0.0)
cl_khr_local_int32_base_atomics 0x400000 (1.0.0)
cl_khr_local_int32_extended_atomics 0x400000 (1.0.0)
cl_khr_int64_base_atomics 0x400000 (1.0.0)
cl_khr_int64_extended_atomics 0x400000 (1.0.0)
cl_khr_fp64 0x400000 (1.0.0)
cl_khr_extended_versioning 0x400000 (1.0.0)
Thanks for any info.