Skip to content

Commit 33309bf

Browse files
authored
Add warning about using pocl_jll on top of script (#295)
[ci skip]
1 parent d154022 commit 33309bf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ Available platforms: 3
5555
· Intel(R) Arc(TM) A770 Graphics (fp16, il)
5656
```
5757

58+
> [!WARNING]
59+
> OpenCL is only computing the list of platforms [once](https://github.com/KhronosGroup/OpenCL-ICD-Loader/blob/d547426c32f9af274ec1369acd1adcfd8fe0ee40/loader/linux/icd_linux.c#L234-L238).
60+
> Therefore if `using pocl_jll` is executed after `OpenCL.versioninfo()` or other calls to the OpenCL API
61+
> then it won't affect the list of platforms available and you will need to restart the Julia session
62+
> and run `using pocl_jll` before `OpenCL` is used.
5863
5964
## Basic example: vector add
6065

0 commit comments

Comments
 (0)