preda / gpuowl

GPU Mersenne primality test.
GNU General Public License v3.0
163 stars 39 forks source link

Does gpuowl support integrated AMD gpu? #240

Closed cmpute closed 2 years ago

cmpute commented 2 years ago

I'm trying to run gpuowl on my Ryzen 5700G, which has Radeon iGPU. I managed to install the ROCm driver and clinfo can detect the device:

Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.2 AMD-APP (3361.0)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback 
  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, ...)  AMD Accelerated Parallel Processing
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   
  clCreateContext(NULL, ...) [default]            No devices found in 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

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.2.11
  ICD loader Profile                              OpenCL 2.1
        NOTE:   your OpenCL library only supports OpenCL 2.1,
                but some installed platforms support OpenCL 2.2.
                Programs using 2.2 features may crash
                or behave unexpectedly

However it seems that gpuowl doesn't support this GPU?

20211117 16:01:00 GpuOwl VERSION v7.2-86-gddf3314
20211117 16:01:00 GpuOwl VERSION v7.2-86-gddf3314
20211117 16:01:00 Note: not found 'config.txt'
20211117 16:01:00 device 0, unique id ''
20211117 16:01:00 Exception gpu_error: DEVICE_NOT_FOUND clGetDeviceIDs(platforms[i], kind, 64, devices, &n) at clwrap.cpp:76 getDeviceIDs
20211117 16:01:00 Bye

Some info GPU: Ryzen 5700G System: KDE neon 5.23 ROCm: 4.5.1

preda commented 2 years ago

ROCm does not detect the GPU, and that's why gpuowl can't use it:

Number of devices                                 0

A possibility is that ROCm does not support that integrated GPU. An alternative would be to try amdgpu-pro as OpenCL driver.

cmpute commented 2 years ago

Thanks! I indeed installed the pro driver, maybe it's just because this GPU is not supported