ROCm / ROCm-OpenCL-Runtime

ROCm OpenOpenCL Runtime
166 stars 60 forks source link

Enable OpenCL 2.2 support #122

Closed tpkessler closed 2 years ago

tpkessler commented 4 years ago

I'm using Ubuntu 18.04 LTS with ROCm 3.5.1 (rocm-dkms) installed as in the official documentation. clinfo reports

$ /opt/rocm/opencl/bin/clinfo | grep "Platform Version"
  Platform Version:              OpenCL 2.0 AMD-APP (3137.0)

$ /opt/rocm/opencl/bin/clinfo | grep -i spir

But the release notes say

AMD ROCm OpenCL Runtime extends support to OpenCL2.2

How do I enable full 2.2 support?

My system:

$ uname -r
5.3.0-59-generic

$ lsmod | grep amdgpu
amdgpu               5218304  55
amd_iommu_v2           20480  1 amdgpu
amd_sched              32768  1 amdgpu
amdttm                 98304  1 amdgpu
amdkcl                 24576  2 amdttm,amdgpu
drm_kms_helper        180224  1 amdgpu
drm                   491520  22 drm_kms_helper,amd_sched,amdttm,amdgpu,amdkcl
i2c_algo_bit           16384  1 amdgpu

$ /opt/rocm/bin/rocminfo | grep Name
  Name:                    AMD Ryzen 7 2700X Eight-Core Processor
  Marketing Name:          AMD Ryzen 7 2700X Eight-Core Processor
  Vendor Name:             CPU                                
  Name:                    gfx900                             
  Marketing Name:          Vega 10 XT [Radeon RX Vega 64]     
  Vendor Name:             AMD                                
      Name:                    amdgcn-amd-amdhsa--gfx900          
oscarbg commented 3 years ago

+1

tpkessler commented 2 years ago

ROCm 5.0+ enables Opencl 2.2 support

clinfo | grep "Platform Version"

  Platform Version:              OpenCL 2.2 AMD-APP.dbg (3406.0)