No OpenCL library found, Mint Linux on AMD CPU/GPU.

KarmannGaz
KarmannGaz
Joined: 25 Mar 09
Posts: 10
Credit: 17845424
RAC: 1669

That's true. Ok, I've

That's true. Ok, I've removed my copy of libOpenCL.so and created a symlink with the same name instead, pointing to libOpenCL.so.1 as you suggested... and yes, of course, it still works fine!

I feel like I'm almost beginning to understand how it all works ;-)

Thanks,
Gary.

Skip Da Shu
Skip Da Shu
Joined: 18 Jan 05
Posts: 152
Credit: 1044709182
RAC: 698811

In way over my head but I'd

In way over my head but I'd still like to get this RX580 working on E@H...

I now have the GPU recognized by BOINC but the WUs fail with:

</p>

<pre>
LATeah4021L05_756.0_0_0.0_14969682_1_0.out
output files: 'LATeah4021L05_756.0_0_0.0_14969682_1_0.out' '../../projects/einstein.phys.uwm.edu/LATeah4021L05_756.0_0_0.0_14969682_1_0' 'LATeah4021L05_756.0_0_0.0_14969682_1_0.out.cohfu' '../../projects/einstein.phys.uwm.edu/LATeah4021L05_756.0_0_0.0_14969682_1_1'
13:27:14 (16207): [debug]: Flags: X64 SSE SSE2 GNUC X86 GNUX86
13:27:14 (16207): [debug]: glibc version/release: 2.31/stable
13:27:14 (16207): [debug]: Set up communication with graphics process.
boinc_get_opencl_ids returned [0x3077e18 , 0x7fc369978ae0] 
Using OpenCL platform provided by: Mesa
Using OpenCL device "Radeon RX 580 Series (POLARIS10, DRM 3.35.0, 5.4.0-144-generic, LLVM 12.0.0)" by: AMD
Max allocation limit: 3435973836
Global mem size: 4294967296
OpenCL compiling FAILED! : -11 . Error message: fatal error: cannot open file '/usr/local//usr/lib/clc/polaris10-amdgcn-mesa-mesa3d.bc': No such file or directory

OpenCL device has no FP64 support
OpenCL compiling FAILED! : -11 . Error message: fatal error: cannot open file '/usr/local//usr/lib/clc/polaris10-amdgcn-mesa-mesa3d.bc': No such file or directory
</pre>

<p>

clinfo shows:

</p>

<p>0:~$ clinfo<br />
Number of platforms                               1<br />
  Platform Name                                   Clover<br />
  Platform Vendor                                 Mesa<br />
  Platform Version                                OpenCL 1.1 Mesa 21.2.6<br />
  Platform Profile                                FULL_PROFILE<br />
  Platform Extensions                             cl_khr_icd<br />
  Platform Extensions function suffix             MESA</p>

<p>  Platform Name                                   Clover<br />
Number of devices                                 1<br />
  Device Name                                     Radeon RX 580 Series (POLARIS10, DRM 3.35.0, 5.4.0-144-generic, LLVM 12.0.0)<br />
  Device Vendor                                   AMD<br />
  Device Vendor ID                                0x1002<br />
  Device Version                                  OpenCL 1.1 Mesa 21.2.6<br />
  Driver Version                                  21.2.6<br />
  Device OpenCL C Version                         OpenCL C 1.1<br />
  Device Type                                     GPU<br />
  Device Profile                                  FULL_PROFILE<br />
  Device Available                                Yes<br />
  Compiler Available                              Yes<br />
  Max compute units                               36<br />
  Max clock frequency                             1366MHz<br />
  Max work item dimensions                        3<br />
  Max work item sizes                             256x256x256<br />
  Max work group size                             256<br />
=== CL_PROGRAM_BUILD_LOG ===<br />
fatal error: cannot open file '/usr/local//usr/lib/clc/polaris10-amdgcn-mesa-mesa3d.bc': No such file or directory<br />
  Preferred work group size multiple              <getWGsizes:1200: create kernel : error -46><br />
  Preferred / native vector sizes                 <br />
    char                                                16 / 16      <br />
    short                                                8 / 8       <br />
    int                                                  4 / 4       <br />
    long                                                 2 / 2       <br />
    half                                                 0 / 0        (n/a)<br />
    float                                                4 / 4       <br />
    double                                               2 / 2        (cl_khr_fp64)<br />
  Half-precision Floating-point support           (n/a)<br />
  Single-precision Floating-point support         (core)<br />
    Denormals                                     No<br />
    Infinity and NANs                             Yes<br />
    Round to nearest                              Yes<br />
    Round to zero                                 No<br />
    Round to infinity                             No<br />
    IEEE754-2008 fused multiply-add               No<br />
    Support is emulated in software               No<br />
    Correctly-rounded divide and sqrt operations  No<br />
  Double-precision Floating-point support         (cl_khr_fp64)<br />
    Denormals                                     Yes<br />
    Infinity and NANs                             Yes<br />
    Round to nearest                              Yes<br />
    Round to zero                                 Yes<br />
    Round to infinity                             Yes<br />
    IEEE754-2008 fused multiply-add               Yes<br />
    Support is emulated in software               No<br />
  Address bits                                    64, Little-Endian<br />
  Global memory size                              4294967296 (4GiB)<br />
  Error Correction support                        No<br />
  Max memory allocation                           3435973836 (3.2GiB)<br />
  Unified memory for Host and Device              No<br />
  Minimum alignment for any data type             128 bytes<br />
  Alignment of base address                       32768 bits (4096 bytes)<br />
  Global Memory cache type                        None<br />
  Image support                                   No<br />
  Local memory type                               Local<br />
  Local memory size                               32768 (32KiB)<br />
  Max number of constant args                     16<br />
  Max constant buffer size                        67108864 (64MiB)<br />
  Max size of kernel argument                     1024<br />
  Queue properties                                <br />
    Out-of-order execution                        No<br />
    Profiling                                     Yes<br />
  Profiling timer resolution                      0ns<br />
  Execution capabilities                          <br />
    Run OpenCL kernels                            Yes<br />
    Run native kernels                            No<br />
  Device Extensions                               cl_khr_byte_addressable_store cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp64 cl_khr_extended_versioning</p>

<p>NULL platform behavior<br />
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  Clover<br />
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [MESA]<br />
  clCreateContext(NULL, ...) [default]            Success [MESA]<br />
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)<br />
    Platform Name                                 Clover<br />
    Device Name                                   Radeon RX 580 Series (POLARIS10, DRM 3.35.0, 5.4.0-144-generic, LLVM 12.0.0)<br />
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform<br />
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)<br />
    Platform Name                                 Clover<br />
    Device Name                                   Radeon RX 580 Series (POLARIS10, DRM 3.35.0, 5.4.0-144-generic, LLVM 12.0.0)<br />
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform<br />
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform<br />
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (1)<br />
    Platform Name                                 Clover<br />
    Device Name                                   Radeon RX 580 Series (POLARIS10, DRM 3.35.0, 5.4.0-144-generic, LLVM 12.0.0)</p>

<p>ICD loader properties<br />
  ICD loader Name                                 OpenCL ICD Loader<br />
  ICD loader Vendor                               OCL Icd free software<br />
  ICD loader Version                              2.2.11<br />
  ICD loader Profile                              OpenCL 2.1</p>

<p>

of which this line with the "...local//usr/lib..." is what I'd guess needs fixin' but no idea how...

</p>

<p>=== CL_PROGRAM_BUILD_LOG ===<br />
fatal error: cannot open file '/usr/local//usr/lib/clc/polaris10-amdgcn-mesa-mesa3d.bc': No such file or directory</p>

<p>

in /usr/lib/clc I have something named "plaris10-amdgcn-.bc"

Any suggestions on how to move forward?

Thanx, Skip

Ian&Steve C.
Ian&Steve C.
Joined: 19 Jan 20
Posts: 3962
Credit: 47079702642
RAC: 65332619

Mesa is a crapshoot and not

Mesa is a crapshoot and not well supported for BOINC. 
 

install either the AMDGPU Pro drivers or the ROCm drivers. That should get you working. 

_________________________________________________________________________

Skip Da Shu
Skip Da Shu
Joined: 18 Jan 05
Posts: 152
Credit: 1044709182
RAC: 698811

Ian&Steve C. wrote: Mesa is

Ian&Steve C. wrote:

Mesa is a crapshoot and not well supported for BOINC. 
 

install either the AMDGPU Pro drivers or the ROCm drivers. That should get you working. 

Where can I look to get started on that?  Should I uninstall all the Mesa packages first?

Thanx, Skip

Keith Myers
Keith Myers
Joined: 11 Feb 11
Posts: 4965
Credit: 18756504151
RAC: 7159499

Yes, I'd uninstall the Mesa

Yes, I'd uninstall the Mesa drivers first.  Then get the AMD drivers here:

Linux® Drivers for AMD Radeon™ Graphics

 

Skip Da Shu
Skip Da Shu
Joined: 18 Jan 05
Posts: 152
Credit: 1044709182
RAC: 698811

Keith Myers wrote: Yes, I'd

Keith Myers wrote:

Yes, I'd uninstall the Mesa drivers first.  Then get the AMD drivers here:

Linux® Drivers for AMD Radeon™ Graphics

Downloaded amdgpu-install_5.4.50403-1_all and reading installation directions.  Already a decision point that I'd like your recommendation on...

1) All-Open

2) Workstation (Proprietary)

Thank ya'll very much, Skip

GWGeorge007
GWGeorge007
Joined: 8 Jan 18
Posts: 3068
Credit: 4972227686
RAC: 1428216

Skip Da Shu wrote: Keith

Skip Da Shu wrote:

Keith Myers wrote:

Yes, I'd uninstall the Mesa drivers first.  Then get the AMD drivers here:

Linux® Drivers for AMD Radeon™ Graphics

Downloaded amdgpu-install_5.4.50403-1_all and reading installation directions.  Already a decision point that I'd like your recommendation on...

1) All-Open

2) Workstation (Proprietary)

Thank ya'll very much, Skip

Definitely the Proprietary !!

George

Proud member of the Old Farts Association

Skip Da Shu
Skip Da Shu
Joined: 18 Jan 05
Posts: 152
Credit: 1044709182
RAC: 698811

GWGeorge007 wrote:Skip Da

GWGeorge007 wrote:

Skip Da Shu wrote:

Keith Myers wrote:

Yes, I'd uninstall the Mesa drivers first.  Then get the AMD drivers here:

Linux® Drivers for AMD Radeon™ Graphics

Downloaded amdgpu-install_5.4.50403-1_all and reading installation directions.  Already a decision point that I'd like your recommendation on...

1) All-Open

2) Workstation (Proprietary)

Thank ya'll very much, Skip

Definitely the Proprietary !!

 

ROCR or Legacy or both?  Since this is a POLARIS card I'm thinking ROCR doesn't buy me anything.

Keith Myers
Keith Myers
Joined: 11 Feb 11
Posts: 4965
Credit: 18756504151
RAC: 7159499

Skip Da Shu

Skip Da Shu wrote:

GWGeorge007 wrote:

Skip Da Shu wrote:

Keith Myers wrote:

Yes, I'd uninstall the Mesa drivers first.  Then get the AMD drivers here:

Linux® Drivers for AMD Radeon™ Graphics

Downloaded amdgpu-install_5.4.50403-1_all and reading installation directions.  Already a decision point that I'd like your recommendation on...

1) All-Open

2) Workstation (Proprietary)

Thank ya'll very much, Skip

Definitely the Proprietary !!

 

ROCR or Legacy or both?  Since this is a POLARIS card I'm thinking ROCR doesn't buy me anything.

Correct.  You have a legacy card.

 

Skip Da Shu
Skip Da Shu
Joined: 18 Jan 05
Posts: 152
Credit: 1044709182
RAC: 698811

It done broke :-(   Any

It done broke :-(   Any suggestions to resolving?

Again, Thanx much,

</p>

<p>$amdgpu-install --usecase=workstation -y --opencl=legacy</p>

<p>[sudo] password for skip:       <br />
Hit:1 http://mirror.us-tx.kamatera.com/ubuntu focal InRelease<br />
Hit:2 http://mirror.us-tx.kamatera.com/ubuntu focal-updates InRelease          <br />
Hit:3 http://mirror.us-tx.kamatera.com/ubuntu focal-backports InRelease        <br />
Hit:4 https://repo.radeon.com/amdgpu/5.4.3/ubuntu jammy InRelease              <br />
Ign:5 http://packages.linuxmint.com una InRelease                              <br />
Hit:6 https://repo.radeon.com/rocm/apt/5.4.3 jammy InRelease                   <br />
Hit:7 http://packages.linuxmint.com una Release                                <br />
Hit:8 http://ppa.launchpad.net/costamagnagianfranco/boinc/ubuntu focal InRelease<br />
Hit:9 http://archive.canonical.com/ubuntu focal InRelease           <br />
Get:10 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]<br />
Get:11 https://repo.radeon.com/amdgpu/5.4.3/ubuntu jammy/proprietary amd64 Packages [3,651 B]<br />
Get:12 https://repo.radeon.com/amdgpu/5.4.3/ubuntu jammy/proprietary i386 Packages [2,729 B]<br />
Ign:14 http://cvmrepo.s3.cern.ch/cvmrepo/apt focal-prod InRelease       <br />
Hit:15 http://cvmrepo.s3.cern.ch/cvmrepo/apt focal-prod Release<br />
Fetched 120 kB in 2s (49.0 kB/s)<br />
Reading package lists... Done<br />
Hit:1 http://mirror.us-tx.kamatera.com/ubuntu focal InRelease<br />
Hit:2 http://mirror.us-tx.kamatera.com/ubuntu focal-updates InRelease<br />
Hit:3 http://mirror.us-tx.kamatera.com/ubuntu focal-backports InRelease        <br />
Ign:4 http://packages.linuxmint.com una InRelease                              <br />
Hit:5 https://repo.radeon.com/amdgpu/5.4.3/ubuntu jammy InRelease              <br />
Hit:6 https://repo.radeon.com/rocm/apt/5.4.3 jammy InRelease                   <br />
Hit:7 http://ppa.launchpad.net/costamagnagianfranco/boinc/ubuntu focal InRelease<br />
Hit:8 http://archive.canonical.com/ubuntu focal InRelease                      <br />
Get:9 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]      <br />
Hit:10 http://packages.linuxmint.com una Release                               <br />
Ign:11 http://cvmrepo.s3.cern.ch/cvmrepo/apt focal-prod InRelease              <br />
Hit:12 http://cvmrepo.s3.cern.ch/cvmrepo/apt focal-prod Release<br />
Fetched 114 kB in 2s (47.7 kB/s)   <br />
Reading package lists... Done<br />
Reading package lists... Done<br />
Building dependency tree       <br />
Reading state information... Done<br />
linux-headers-5.4.0-144-generic is already the newest version (5.4.0-144.161).<br />
Some packages could not be installed. This may mean that you have<br />
requested an impossible situation or if you are using the unstable<br />
distribution that some required packages have not yet been created<br />
or been moved out of Incoming.<br />
The following information may help to resolve the situation:</p>

<p>The following packages have unmet dependencies:<br />
 amdgpu-pro : Depends: amdgpu but it is not going to be installed<br />
              Depends: amdgpu-pro-oglp but it is not going to be installed<br />
 amdgpu-pro-lib32 : Depends: amdgpu but it is not going to be installed<br />
                    Depends: amdgpu-lib32 but it is not going to be installed<br />
                    Depends: amdgpu-pro-oglp:i386<br />
 clinfo-amdgpu-pro : Depends: libc6 (>= 2.34) but 2.31-0ubuntu9.9 is to be installed<br />
                     Depends: libstdc++6 (>= 11) but 10.3.0-1ubuntu1~20.04 is to be installed<br />
                     Depends: ocl-icd-libopencl1-amdgpu-pro but it is not going to be installed<br />
 opencl-legacy-amdgpu-pro-icd : Depends: libdrm-amdgpu-amdgpu1 but it is not going to be installed<br />
E: Unable to correct problems, you have held broken packages.</p>

<p>

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.