Skip to content

Correct soname for libOpenCL.so? #8569

@mcourteaux

Description

@mcourteaux

I wasn't having a functioning OpenCL backend, on my Fedora 40/41 with NVIDIA driver setup. Turns out there is no libOpenCL.so, but instead the soname versioning starts with libOpenCL.so.1, which symlinks to libOpenCL.so.1.0.0.

I'm not super familiar with these so versioning strategies, but I can confirm Halide works fine when adding libOpenCL.so.1 to the list of attempted library names in the opencl runtime module. What would be the most correct / portable soname for libOpenCL?

No guarantees, but ChatGPT says you should use libOpenCL.so.1 (and I didn't bias it).

Metadata

Metadata

Assignees

Labels

buildIssues related to building Halide and with CI

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions