Change OCL_ICD_LAYERS to OPENCL_LAYERS to conform to the specification. (#145)
authorBrice Videau <bvideau@anl.gov>
Tue, 30 Mar 2021 15:48:07 +0000 (10:48 -0500)
committerGitHub <noreply@github.com>
Tue, 30 Mar 2021 15:48:07 +0000 (08:48 -0700)
README.md
loader/icd.c

index e0a5d26f45d5795ed105aa6915e56eb11a0816d2..1c37d0509a4bdfb89bbd5f35ae774f4bcfc86506 100644 (file)
--- a/README.md
+++ b/README.md
@@ -119,7 +119,7 @@ configuration by using the `ENABLE_OPENCL_LAYERS` (`ON` by default) cmake variab
 cmake -DENABLE_OPENCL_LAYERS=OFF
 ```
 
-For now, runtime configuration of layers is done using the `OCL_ICD_LAYERS` environment
+For now, runtime configuration of layers is done using the `OPENCL_LAYERS` environment
 variable. A colon (Linux) or semicolon (Windows) list of layers to use can be provided
 through this environment variable.
 
@@ -142,4 +142,4 @@ The following debug environment variables are available for use with the OpenCL
 |:---------------------------------:|---------------------|----------------------|
 | OCL_ICD_FILENAMES                 | Specifies a list of additional ICDs to load.  The ICDs will be enumerated first, before any ICDs discovered via default mechanisms. | `export OCL_ICD_FILENAMES=libVendorA.so:libVendorB.so`<br/><br/>`set OCL_ICD_FILENAMES=vendor_a.dll;vendor_b.dll` |
 | OCL_ICD_VENDORS                   | On Linux and Android, specifies a directory to scan for ICDs to enumerate in place of the default `/etc/OpenCL/vendors'. |  `export OCL_ICD_VENDORS=/my/local/icd/search/path` |
-| OCL_ICD_LAYERS                    | Specifies a list of layers to load. |  `export OCL_ICD_LAYERS=libLayerA.so:libLayerB.so`<br/><br/>`set OCL_ICD_LAYERS=libLayerA.dll;libLayerB.dll` |
+| OPENCL_LAYERS                    | Specifies a list of layers to load. |  `export OPENCL_LAYERS=libLayerA.so:libLayerB.so`<br/><br/>`set OPENCL_LAYERS=libLayerA.dll;libLayerB.dll` |
index 7e7b3b5ed7e8eb55c487835165d310c67d243d89..aa677b064bb422c1df90eb2e2dd5fbd6fa504f63 100644 (file)
@@ -361,12 +361,12 @@ void khrIcdVendorsEnumerateEnv(void)
 #if defined(CL_ENABLE_LAYERS)
 void khrIcdLayersEnumerateEnv(void)
 {
-    char* layerFilenames = khrIcd_secure_getenv("OCL_ICD_LAYERS");
+    char* layerFilenames = khrIcd_secure_getenv("OPENCL_LAYERS");
     char* cur_file = NULL;
     char* next_file = NULL;
     if (layerFilenames)
     {
-        KHR_ICD_TRACE("Found OCL_ICD_LAYERS environment variable.\n");
+        KHR_ICD_TRACE("Found OPENCL_LAYERS environment variable.\n");
 
         next_file = layerFilenames;
         while (NULL != next_file && *next_file != '\0') {