Announcement

Collapse
No announcement yet.

How to get OpenCL going with RX 6900XT on Ubuntu 20.04

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • bridgman
    replied
    I'm not sure what happened - we had updated the instructions to specify rocr instead of pal - but it seems like the changes got lost or reverted recently.

    Apologies for the confusion and glad to hear it's working now.

    Leave a comment:


  • FriedrichGuenther
    replied
    Hey birdgman, wow, thanks a lot! That went off the rails quickly haha. Where could I have found this? On the AMD Installation Instruction page, the argument "rocr" is not mentioned if I am not mistaken.

    Using your installation command worked, thanks a lot again!

    Leave a comment:


  • bridgman
    replied
    On the first line, you need to use "--opencl=rocr". Probably best to uninstall completely first.

    Leave a comment:


  • How to get OpenCL going with RX 6900XT on Ubuntu 20.04

    Hey all,

    i have a system consisting of an i9 9900K, an RX 6900XT and 32GB of RAM. This is meant to run OpenCL code for a university project and it would be very nice to get the graphics card involved. On the system there is a fresh install of Ubuntu 20.04 (if easier I don't mind switching distributions or reinstalling).

    So far I have installed the latest proprietary driver as of writing (21.10) using
    Code:
    ./amdgpu-pro-install -y --opencl=pal,legacy
    and
    Code:
    ocl-icd-opencl-dev
    and
    Code:
    clinfo
    . The output of clinfo is
    Code:
    Number of platforms 1
    Platform Name AMD Accelerated Parallel Processing
    Platform Vendor Advanced Micro Devices, Inc.
    Platform Version OpenCL 2.1 AMD-APP (3224.4)
    Platform Profile FULL_PROFILE
    Platform Extensions cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
    Platform Host timer resolution 1ns
    Platform Extensions function suffix AMD
    
    Platform Name AMD Accelerated Parallel Processing
    Number of devices 0
    
    NULL platform behavior
    clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) No platform
    clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) No platform
    clCreateContext(NULL, ...) [default] No platform
    clCreateContext(NULL, ...) [other] No platform
    clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) No devices found in platform
    clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
    clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No devices found in platform
    clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
    clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
    clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No devices found in platform
    Is there anything I missed? Any help would be greatly appreciated.

Working...
X