I want to mine GPGPU calculation and machine learning with OpenCL with RDNA2.
OS: Ubuntu 20.04 GPU: RX6800 (RDNA2) Driver: amdgpu(-pro) 20.45
https://math.dartmouth.edu/~sarunas/amdgpu.html
Refer to, and put the OpenCL driver (this is the pro version and looks like closed source) on the OSS version amdgpu kernel.
The arguments are a little different.
(Also, in 20.45, amdgpu-pro-install cannot select --no-dkms)
# unpack amdgpu package
$ cd <amdgpu-package>
$ ./amdgpu-install --opencl=legacy,rocr --headless --no-dkms
(Legacy may not be necessary)
Pro (closed source version) seems to be basically for games and old GPUs. I think that Pro version will also work.
For Ubuntu 20.04, add the user to the render group.
If you clinfo and recognize it well, it's OK!
Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.0 AMD-APP (3188.4)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback 
  Platform Extensions function suffix             AMD
  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 1
  Device Name                                     gfx1030
  Device Vendor                                   Advanced Micro Devices, Inc.
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 2.0 
  Driver Version                                  3188.4 (HSA1.1,LC)
  Device OpenCL C Version                         OpenCL C 2.0 
  Device Type                                     GPU
  Device Board Name (AMD)                         AMD Radeon RX 6800
amdgpu-pro 20.45 Vulkan notes https://qiita.com/syoyo/items/c66c0a46cd6ad584dacb
Not yet supported by amdgpu (-pro).
AMD VLK (with RADV?)
https://github.com/GPUOpen-Drivers/AMDVLK
I tried to put the binary of v-2021.Q1.1, but this was also not related toVK_KHR_ray _ ***.
Vulkan ray tracing on AMD GPUs on Linux has to wait for a while.: Cry:
Recommended Posts