https://bugs.documentfoundation.org/show_bug.cgi?id=167979
Bug ID: 167979
Summary: LO attempts to launch an OpenCL kernel with an invalid
workgroup size
Product: LibreOffice
Version: 26.2.0.0 alpha0+ master
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: minor
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
Blocks: 140879
When I start LibreOffice start center from the console, I get the following
warning:
warn:opencl:1628:1628:opencl/opencltest/main.cxx:159: OpenCL driver check
failed: -54(line 159)
First of all, let me say I think it's wasted perf to bring up an entire process
just in order to run some OpenCL checks. Do it in our main process! But maybe I
should open a separate bug about that.
Anyway, OpenCL error -54 is CL_INVALID_WORK_GROUP_SIZE. And the code in
main.cxx looks like this:
const size_t globalWorkSize[] = { dataSize };
const size_t localSize[1] = { 64 };
state = clEnqueueNDRangeKernel(queue, kernel, 1, nullptr, globalWorkSize,
localSize, 0, nullptr,nullptr);
This was fishy to me. So, I tried building the OpenCL test executable on my
own, doing the following:
1. Cloning clew master branch from GitHub
2. Building and installing clew to /opt/clew
3. Dropping the dependency on SAL for logging (just do logging by streaming to
std::cerr)
4. Building with:
g++ -o main main.cxx -I/opt/clew/include -L/opt/clew/lib
-I${libreoffice_src_dir}/opencl/inc -lclew
it built, and ran, and gave the same error. My platform was "NVIDIA CUDA" and
my device was "NVIDIA GeForce GTX 1050 Ti". If I had time I would try to take a
closer look at the code to try to understand what's going on.
The version of main.cxx I'm looking at is from commit
10ad9560fba562f494fa44fc8a7bd2388d9e8c5c on Oct 5th 2021.
Referenced Bugs:
https://bugs.documentfoundation.org/show_bug.cgi?id=140879
[Bug 140879] [META] Console noise
--
You are receiving this mail because:
You are the assignee for the bug.