Bug 1458513

Summary: fatal error: cannot open file '/usr/lib64/clc//tonga-amdgcn-mesa-mesa3d.bc': No such file or directory
Product: [Fedora] Fedora Reporter: Vedran Miletić <vedran>
Component: libclcAssignee: Fabian Deutsch <fabian.deutsch>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 26CC: fabian.deutsch, ignatenko, johannes.wagner
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libclc-0.2.0-7.git1cb3fbf.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-26 18:22:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vedran Miletić 2017-06-03 18:23:06 UTC
Problem:

$ clinfo 
Number of platforms                               1
  Platform Name                                   Clover
  Platform Vendor                                 Mesa
  Platform Version                                OpenCL 1.1 Mesa 17.1.1
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd
  Platform Extensions function suffix             MESA

  Platform Name                                   Clover
Number of devices                                 1
  Device Name                                     AMD TONGA (DRM 3.10.0 / 4.11.3-300.fc26.x86_64, LLVM 4.0.0)
  Device Vendor                                   AMD
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 1.1 Mesa 17.1.1
  Driver Version                                  17.1.1
  Device OpenCL C Version                         OpenCL C 1.1 
  Device Type                                     GPU
  Device Available                                Yes
  Device Profile                                  FULL_PROFILE
  Max compute units                               32
  Max clock frequency                             1030MHz
  Max work item dimensions                        3
  Max work item sizes                             256x256x256
  Max work group size                             256
  Compiler Available                              Yes
=== CL_PROGRAM_BUILD_LOG ===
fatal error: cannot open file '/usr/lib64/clc//tonga-amdgcn-mesa-mesa3d.bc': No such file or directory
  Preferred work group size multiple              <getWGsizes:500: build program : error -11>

Proposed soution:

./configure.py should also enable amdgcn-mesa-mesa3d and perhaps amdgcn--amdhsa as well

Comment 1 johannes.wagner 2017-07-14 18:04:33 UTC
gromacs from the fedora26 default repo crashes when used with OpenCl with following error:



-------------------------------------------------------
Program:     gmx mdrun, version 2016.3
Source file: src/gromacs/gpu_utils/ocl_compiler.cpp (line 273)
Function:    size_t gmx::ocl::getWarpSize(cl_context, cl_device_id)

Internal error (bug):
Failed to compile NBNXN kernels for GPU #AMD TONGA (DRM 3.10.0 /
4.11.9-300.fc26.x86_64, LLVM 4.0.0)
  Could not build OpenCL program to determine warp size, error was
  CL_BUILD_PROGRAM_FAILURE

For more information and tips for troubleshooting, please check the GROMACS
website at http://www.gromacs.org/Documentation/Errors

and same problem in clinfo:

Number of devices                                 1
  Device Name                                     AMD TONGA (DRM 3.10.0 / 4.11.9-300.fc26.x86_64, LLVM 4.0.0)
  Device Vendor                                   AMD
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 1.1 Mesa 17.1.4
  Driver Version                                  17.1.4
  Device OpenCL C Version                         OpenCL C 1.1
  Device Type                                     GPU
  Device Available                                Yes
  Device Profile                                  FULL_PROFILE
  Max compute units                               28
  Max clock frequency                             1010MHz
  Max work item dimensions                        3
  Max work item sizes                             256x256x256
  Max work group size                             256
  Compiler Available                              Yes
=== CL_PROGRAM_BUILD_LOG ===
fatal error: cannot open file '/usr/lib64/clc//tonga-amdgcn-mesa-mesa3d.bc': No such file or directory
  Preferred work group size multiple              <getWGsizes:500: build program : error -11>
  Preferred / native vector sizes

Comment 2 Fedora Update System 2017-07-25 06:52:03 UTC
libclc-0.2.0-7.git1cb3fbf.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-db4f11cb08

Comment 3 Fedora Update System 2017-07-26 01:19:20 UTC
libclc-0.2.0-7.git1cb3fbf.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-db4f11cb08

Comment 4 Fedora Update System 2017-07-26 18:22:12 UTC
libclc-0.2.0-7.git1cb3fbf.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.