From eddf69dcf10a5dfe7345b2b9bcb45eddc4edfb1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Fri, 28 Mar 2025 09:01:27 +0100 Subject: [PATCH] Add warning about using pocl_jll on top of script --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index ac43ffea..78e0b829 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,11 @@ Available platforms: 3 ยท Intel(R) Arc(TM) A770 Graphics (fp16, il) ``` +> [!WARNING] +> 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). +> Therefore if `using pocl_jll` is executed after `OpenCL.versioninfo()` or other calls to the OpenCL API +> then it won't affect the list of platforms available and you will need to restart the Julia session +> and run `using pocl_jll` before `OpenCL` is used. ## Basic example: vector add