krrishnarraj / clpeak

A tool which profiles OpenCL devices to find their peak capacities
Apache License 2.0
386 stars 109 forks source link

AMD 6700s/Linux no platforms found #94

Closed jmcelroy01 closed 1 year ago

jmcelroy01 commented 1 year ago

Hello,

I have all the core ROCm 5.3.0 libraries installed on OpenSUSE Tumbleweed on the Asus laptop with the 6700s (Navi 23), such that I can get the desired output from running ./clinfo from the /opt/rocm-5.3.0/opencl/bin directory:

Number of platforms:                             1
  Platform Profile:                              FULL_PROFILE
  Platform Version:                              OpenCL 2.1 AMD-APP (3486.0)
  Platform Name:                                 AMD Accelerated Parallel Processing
  Platform Vendor:                               Advanced Micro Devices, Inc.
  Platform Extensions:                           cl_khr_icd cl_amd_event_callback

.... 

etc.

I installed clpeak 1.1.1 from here. I've tried running clpeak several ways, including as root and with HSA_OVERRIDE_GFX_VERSION=10.3.0, but they all give:

clGetPlatformIDs (-1001)
no platforms found

I have DRI_PRIME=1 set as a system-wide environmental variable, and know that I can use ROCm with this GPU on this Linux distro at least to some degree, and have done so with Pytorch and Tensorflow using the HSA_OVERRIDE_GFX_VERSION=10.3.0 method.

Is it possible that I need MIOpen installed? I have miopen-hip installed, and the link says miopen-hip and miopen-opencl cannot both be installed currently.

rocminfo gives

Agent 2                  
*******                  
  Name:                    gfx1032                            
  Uuid:                    GPU-XX                             
  Marketing Name:          AMD Radeon RX 6700S                
  Vendor Name:             AMD                                
  Feature:                 KERNEL_DISPATCH                    
  Profile:                 BASE_PROFILE                       
....                                                        
  Device Type:             GPU
....

among other things. Has anyone else tried using clpeak with this GPU on Linux? It might be as simple as creating a symbolic link or aliasing a command, but I'm not sure. Running cpu-x gives a similar message:

There is no platform with OpenCL support (CL_PLATFORM_NOT_FOUND_KHR)

jmcelroy01 commented 1 year ago

I was able to correct the issue and now clpeak works normally, see here.