Public bug reported:

Executing any of the clblas.gemm functions in libclBLAS.so.2.12.0
(libclblas2 2.12-1build1 on bionic) aborts the calling program with this
error message:

OpenCL error -11 [...] clblas-2.12/src/library/blas/xgemm.cc:244: void
makeGemmKernel(_cl_kernel**, cl_command_queue, const char*, const char*,
const unsigned char**, size_t*, const char*): Assertion `false' failed.

The error occurs when the backend is an OpenCL 1.1 device.  This
includes all GPUs supported by libclc through mesa-opencl-icd (Clover),
that is effectively all AMD GPUs.

The error can be easily reproduced by running the example from the
upstream README.md[1] on a machine with an AMD GPU, with environment
entry OCL_ICD_VENDORS=mesa.icd.

This bug also affects all BLAS functionality in libarrayfire-opencl3, as
can be seen by running e.g.  examples/benchmarks/blas or any of the
lin_algebra examples from the libarrayfire-doc package.

The good news is, there is a fix :-)  I have submitted this PR[2]
upstream, and am attaching a dquilt-ready patch as upstream releases
(and even pulls to master) are very infrequent.

[1] https://github.com/clMathLibraries/clBLAS#example
[2] https://github.com/clMathLibraries/clBLAS/pull/342

** Affects: clblas (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "Patch removes the -cl-std kernel build option"
   
https://bugs.launchpad.net/bugs/1816887/+attachment/5240444/+files/remove-cl-std-build-option

** Description changed:

  Executing any of the clblas.gemm functions in libclBLAS.so.2.12.0
  (libclblas2 2.12-1build1 on bionic) aborts the calling program with this
  error message:
  
  OpenCL error -11 [...] clblas-2.12/src/library/blas/xgemm.cc:244: void
  makeGemmKernel(_cl_kernel**, cl_command_queue, const char*, const char*,
  const unsigned char**, size_t*, const char*): Assertion `false' failed.
  
  The error occurs when the backend is an OpenCL 1.1 device.  This
  includes all GPUs supported by libclc through mesa-opencl-icd (Clover),
  that is effectively all AMD GPUs.
  
  The error can be easily reproduced by running the example from the
  upstream README.md[1] on a machine with an AMD GPU, with environment
- entry OCL_ICD_VENDORS set to mesa.icd.
+ entry OCL_ICD_VENDORS=mesa.icd.
  
  This bug also affects all BLAS functionality in libarrayfire-opencl3, as
  can be seen by running e.g.  examples/benchmarks/blas or any of the
  lin_algebra examples from the libarrayfire-doc package.
  
- The good news is, the fix is simple.  I have submitted this PR[2]
+ The good news is, there is a fix :-)  I have submitted this PR[2]
  upstream, and am attaching a dquilt-ready patch as upstream releases
  (and even pulls to master) are very infrequent.
  
  [1] https://github.com/clMathLibraries/clBLAS#example
  [2] https://github.com/clMathLibraries/clBLAS/pull/342

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1816887

Title:
  clBLAS aborts with OpenCL Error -11 in makeGemmKernel

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clblas/+bug/1816887/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to