Initial investigation, bug still applies for Ubuntu 26.04 LTS (libamd-
comgr3 7.1.1+dfsg-0ubuntu1):
Running test on a fresh install:
```
$ sudo apt install -y rocm-opencl-icd libamd-comgr3 clblast-tests
$ /usr/bin/clblast_test_xgemmbatched
CLBlast: OpenCL error: clBuildProgram: -11
* Options given/available:
-platform 0 [=default]
-device 0 [=default]
-full_test [false]
-verbose [false]
-cblas 1 [=default]
* Running on OpenCL device 'Radeon 8060S Graphics'.
* Starting tests for the 'SGEMMBATCHED' routine. Legend:
: -> Test produced correct results
. -> Test returned the correct error code
X -> Test produced incorrect results
/ -> Test returned an incorrect error code
\ -> Test not executed: OpenCL-kernel compilation error
o -> Test not executed: Unsupported precision
- -> Test not completed: Reference CBLAS doesn't output error codes
* Testing with error margins of 0.5% (relative) and 0.001 (absolute)
* Testing 'regular behaviour' for '101 (row-major) 111 (regular) 111 (regular)':
OpenCL compiler error/warning:
fatal error: malformed or corrupted precompiled file: 'could not find file
'/usr/lib/llvm-21/lib/clang/21/include/opencl-c-base.h' referenced by AST file
'/tmp/comgr-328ddf/include/opencl1.2-c.pch''
1 error generated.
Error: Failed to compile source (from CL or HIP source to LLVM IR).
/CLBlast: OpenCL error: clBuildProgram: -11
OpenCL compiler error/warning:
fatal error: malformed or corrupted precompiled file: 'could not find file
'/usr/lib/llvm-21/lib/clang/21/include/opencl-c-base.h' referenced by AST file
'/tmp/comgr-1bb08b/include/opencl1.2-c.pch''
1 error generated.
Error: Failed to compile source (from CL or HIP source to LLVM IR).
...
* Completed all test-cases for this routine. Results:
0 test(s) passed
432 test(s) skipped
592 test(s) failed
```
After installing libclang-common-21-dev:
```
$ /usr/bin/clblast_test_xgemmbatched
* Options given/available:
-platform 0 [=default]
-device 0 [=default]
-full_test [false]
-verbose [false]
-cblas 1 [=default]
* Running on OpenCL device 'Radeon 8060S Graphics'.
* Starting tests for the 'SGEMMBATCHED' routine. Legend:
: -> Test produced correct results
. -> Test returned the correct error code
X -> Test produced incorrect results
/ -> Test returned an incorrect error code
\ -> Test not executed: OpenCL-kernel compilation error
o -> Test not executed: Unsupported precision
- -> Test not completed: Reference CBLAS doesn't output error codes
* Testing with error margins of 0.5% (relative) and 0.001 (absolute)
* Testing 'regular behaviour' for '101 (row-major) 111 (regular) 111 (regular)':
::::::::::::::::--------::::::::------::------::--------------::
::::::::::::::::--------::::::::------::------::--------------::
Pass rate 46.9%: 60 passed / 68 skipped / 0 failed
...
* Completed all test-cases for this routine. Results:
56 test(s) passed
556 test(s) skipped
412 test(s) failed
```
```
$ lsb_release -rd
Description: Ubuntu 26.04 LTS
Release: 26.04
```
```
$ apt-cache policy libamd-comgr3
libamd-comgr3:
Installed: 7.1.1+dfsg-0ubuntu1
Candidate: 7.1.1+dfsg-0ubuntu1
Version table:
*** 7.1.1+dfsg-0ubuntu1 500
500 http://archive.ubuntu.com/ubuntu resolute/universe amd64 Packages
100 /var/lib/dpkg/status
```
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2143596
Title:
libamd_comgr3 requires opencl-c-base.h for opencl
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rocm-llvm/+bug/2143596/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs