From c60f528bb078e029d68c3e34dc0c88f5e527d74a Mon Sep 17 00:00:00 2001 From: Brice Videau Date: Tue, 30 Mar 2021 10:53:36 -0500 Subject: [PATCH] Change OCL_ICD_LAYERS to OPENCL_LAYERS to conform to specification. --- doc/libOpenCL.7.txt.in | 2 +- ocl_icd_loader.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/libOpenCL.7.txt.in b/doc/libOpenCL.7.txt.in index 2237947..5367862 100644 --- a/doc/libOpenCL.7.txt.in +++ b/doc/libOpenCL.7.txt.in @@ -67,7 +67,7 @@ b. else, if *$OCL_ICD_VENDORS* ends with '`.icd`', libOpenCL.so will only load c. else libOpenCL.so will try to load *$OCL_ICD_VENDORS* as the ICD shared library itself (i.e. to load it directly with **dlopen**(3)). -*OCL_ICD_LAYERS*:: +*OPENCL_LAYERS*:: This variable allows one to specify a colon separated list of layers to load, specifying their path. This support is experimental. diff --git a/ocl_icd_loader.c b/ocl_icd_loader.c index 5b7447d..28aa098 100644 --- a/ocl_icd_loader.c +++ b/ocl_icd_loader.c @@ -681,7 +681,7 @@ static void __initLayer(char * layer_path) { } static void __initLayers( void ) { - char* layers_path=getenv("OCL_ICD_LAYERS"); + char* layers_path=getenv("OPENCL_LAYERS"); if (layers_path) { char* layer_path = layers_path; char* next_layer_path = strchr(layers_path, ':');