Skip to content

Commit 541ff05

Browse files
committed
opencl-icd-loader: add caveats from ocl-icd
1 parent 38980a8 commit 541ff05

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Formula/opencl-icd-loader.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,20 @@ def install
2020
(pkgshare/"loader_test").install "test/inc/platform", "test/log/icd_test_log.c"
2121
end
2222

23+
def caveats
24+
s = "The default vendors directory is #{etc}/OpenCL/vendors\n"
25+
on_linux do
26+
s += <<~EOS
27+
No OpenCL implementation is pre-installed, so all dependents will require either
28+
installing a compatible formula or creating an ".icd" file mapping to an externally
29+
installed implementation. Any ".icd" files copied or symlinked into
30+
`#{etc}/OpenCL/vendors` will automatically be detected by `opencl-icd-loader`.
31+
A portable OpenCL implementation is available via the `pocl` formula.
32+
EOS
33+
end
34+
s
35+
end
36+
2337
test do
2438
cp_r (pkgshare/"loader_test").children, testpath
2539
system ENV.cc, *testpath.glob("*.c"), "-o", "icd_loader_test",

0 commit comments

Comments
 (0)