3 Replies Latest reply on Jun 29, 2017 6:05 AM by dipak

    AMDGPU-PRO 17.20 does not expose devices to OpenCL

    Meteorhead

      I downloaded AMDGPU-PRO 17.20 in hopes of getting actually working SPIR support to ComputeCpp (which notes that even though AMDGPU-PRO 17.10 advertises Ubuntu 16.04 support back to GCN 1.0 devices, and the cl_khr_spir extension is supported on devices, it actually does not work). After installation and reboot, I see that the drivers are loaded, /etc/OpenCL/vendors is populated, ldconfig is set so that applications pick up libOpenCL.so that comes bundled with the driver, the library mentioned in the .icd file is in the same directory as libOpenCL.so (so it should be found by the ICD at runtime), but clinfo still says there are no platforms found.

       

      fglrx used to have aticonfig, which was a second test after lspci that the driver actually sees the hardware I wish to use with OpenCL. But in this case, even the platform is not found. Devices on the platform come later.

       

      These are the things I checked so far:

       

      PS /home/mnagy> lspci | grep VGA                                                                                                                                             
      05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Curacao XT [Radeon R7 370 / R9 270X/370 OEM]
      06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Curacao XT [Radeon R7 370 / R9 270X/370 OEM]
      PS /home/mnagy> lsmod | grep amdgpu                                                                                                                                          
      amdgpu               2678784  1
      amdttm                102400  1 amdgpu
      amdkcl                 28672  2 amdgpu,amdkfd
      i2c_algo_bit           16384  1 amdgpu
      drm_kms_helper        155648  1 amdgpu
      drm                   364544  5 drm_kms_helper,amdgpu,amdkcl,amdttm
      PS /home/mnagy> gci /etc/OpenCL/vendors/                                                                                                                                     
      
          Directory: /etc/OpenCL/vendors
      
      Mode                LastWriteTime         Length Name                                                                                                                       
      ----                -------------         ------ ----                                                                                                                       
      --r---    2017. 05. 26.     22:18             15 amdocl32.icd                                                                                                               
      --r---    2017. 05. 26.     22:18             15 amdocl64.icd                                                                                                               
      
      PS /home/mnagy> gc /etc/OpenCL/vendors/amdocl64.icd                                                                                                                          
      libamdocl64.so
      drm_kms_helper        155648  1 amdgpu
      drm                   364544  5 drm_kms_helper,amdgpu,amdkcl,amdttm
      PS /home/mnagy> gci /etc/OpenCL/vendors/                                                                                                                                     
      
          Directory: /etc/OpenCL/vendors
      
      Mode                LastWriteTime         Length Name                                                                                                                       
      ----                -------------         ------ ----                                                                                                                       
      --r---    2017. 05. 26.     22:18             15 amdocl32.icd                                                                                                               
      --r---    2017. 05. 26.     22:18             15 amdocl64.icd                                                                                                               
      
      PS /home/mnagy> gc /etc/OpenCL/vendors/amdocl64.icd                                                                                                                          
      libamdocl64.so
      PS /home/mnagy> gci /opt/amdgpu-pro/lib/                                                                                                                                     
      i386-linux-gnu    x86_64-linux-gnu  xorg                                                                                                                                     
      PS /home/mnagy> gci /opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdocl64.so                                                                                                      
      
          Directory: /opt/amdgpu-pro/lib/x86_64-linux-gnu
      
      Mode                LastWriteTime         Length Name                                                                                                                       
      ----                -------------         ------ ----                                                                                                                       
      --r---    2017. 06. 20.     13:38       62667960 libamdocl64.so
      
      PS /home/mnagy> which clinfo                                                                                                                                                 
      /usr/bin/clinfo
      PS /home/mnagy> clinfo                                                                                                                                                       
      Number of platforms                               0
      

       

      Is there something I'm missing?