Skip to content

Commit

Permalink
Change OCL_ICD_LAYERS to OPENCL_LAYERS to conform to specification.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerilk committed Mar 30, 2021
1 parent bf22ecd commit c60f528
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/libOpenCL.7.txt.in
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion ocl_icd_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, ':');
Expand Down

0 comments on commit c60f528

Please sign in to comment.