Public bug reported:
# What was seen
$ sudo apt install -y rocm-opencl-icd libamd-comgr3 clblast-tests
$ /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 'AMD Radeon 760M 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)':
Signal 0x7fd3d37ff780 time stamps may be invalid.
Signal 0x7fd3d37ff700 time stamps may be invalid.
Signal 0x7fd3d37ff680 time stamps may be invalid.
Signal 0x7fd3d37ff600 time stamps may be invalid.
Signal 0x7fd3d37ff580 time stamps may be invalid.
Signal 0x7fd3d37ff500 time stamps may be invalid.
Signal 0x7fd3d37ff480 time stamps may be invalid.
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-aaffc8/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
# What was expected
The clBuildProgram call should succeed. The missing file can be supplied
by installing libclang-common-21-dev --- although there may also be
other options. The opencl-c-base.h header should either be bundled into
a pch, like was done for opencl1.2-c.pch, or libclang-common-21-dev
should be added as a Recommends or Depends of libamd-comgr3.
$ sudo apt install 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 'AMD Radeon 760M 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)':
Signal 0x7ff61e7fec00 time stamps may be invalid.
<...>
:
Pass rate 46.9%: 60 passed / 68 skipped / 0 failed
* Testing 'regular behaviour' for '101 (row-major) 112 (transposed) 112
(transposed)':
# System Information
# lsb_release -rd
Description: Ubuntu Resolute Raccoon (development branch)
Release: 26.04
# apt-cache policy libamd-comgr3
libamd-comgr3:
Installed: 7.1.0+dfsg-0ubuntu5
Candidate: 7.1.0+dfsg-0ubuntu5
Version table:
*** 7.1.0+dfsg-0ubuntu5 500
500 http://archive.ubuntu.com/ubuntu resolute/universe amd64 Packages
100 /var/lib/dpkg/status
** Affects: rocm-llvm (Ubuntu)
Importance: Undecided
Status: New
--
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