-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
ocl-icd 2.3.1 (new formula) #104619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ocl-icd 2.3.1 (new formula) #104619
Conversation
I finally had a chance to test all 9 of the OpenCL formulae using this + During the testing things did not work quite as well. |
Not sure. I was able to use It was even possible to build $ clinfo
Number of platforms 1
Platform Name Portable Computing Language
Platform Vendor The pocl project
Platform Version OpenCL 3.0 PoCL 3.0-rc2 Linux, Release, RELOC, LLVM 14.0.6, SLEEF, DISTRO, POCL_DEBUG
...
ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.3.1
ICD loader Profile OpenCL 3.0
$ brew unlink ocl-icd
Unlinking /home/linuxbrew/.linuxbrew/Cellar/ocl-icd/2.3.1... 10 symlinks removed.
$ clinfo
clinfo: error while loading shared libraries: libOpenCL.so.1: cannot open shared object file: No such file or directory |
Okay that's very helpful to know. I'll double check this and see if I can get |
I was able to get |
Formula/ocl-icd.rb
Outdated
s += <<~EOS | ||
No OpenCL implementation is pre-installed, so all dependents will require either | ||
installing a compatible formula or creating an ".icd" file mapping to a manually | ||
installed option. A portable implementation is available via the `pocl` formula. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rephrase this to:
No OpenCL implementation is pre-installed, so all dependents will require either
installing a compatible formula or creating an ".icd" file mapping to an externally
installed implementation. Any ".icd" files copied or symlinked into
`#{etc}/OpenCL/vendors` will automatically be detected by `ocl-icd`. A portable
OpenCL implementation is available via the `pocl` formula.
Please fix anything that may be incorrect there!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is ready to publish now.
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?Split off from #103141
See other PR for why this we need to use this instead of
opencl-icd-loader
.Also, this is the option most major Linux distros have picked (https://repology.org/project/ocl-icd/versions) like Debian/Ubuntu, Fedora, Arch, Gentoo, ...