diff --git a/rocclr/compiler/lib/include/v0_8/aclStructs.h b/rocclr/compiler/lib/include/v0_8/aclStructs.h index 8dab9ac448..8603fb6731 100644 --- a/rocclr/compiler/lib/include/v0_8/aclStructs.h +++ b/rocclr/compiler/lib/include/v0_8/aclStructs.h @@ -270,7 +270,7 @@ typedef struct _acl_compiler_opts_rec_0_8_1 { const char *linkLib; const char *cgLib; const char *beLib; - const char *scLib; + const char *scLib; // Name or path to the shader compiler shared library AllocFunc alloc; FreeFunc dealloc; } aclCompilerOptions_0_8_1; diff --git a/rocclr/runtime/device/gpu/gpudevice.cpp b/rocclr/runtime/device/gpu/gpudevice.cpp index 02c046b5ad..62236747a6 100644 --- a/rocclr/runtime/device/gpu/gpudevice.cpp +++ b/rocclr/runtime/device/gpu/gpudevice.cpp @@ -897,7 +897,7 @@ Device::create(CALuint ordinal, CALuint numOfDevices) NULL, NULL, NULL, - NULL, + AMD_OCL_SC_LIB, &::malloc, &::free }; @@ -1203,7 +1203,7 @@ Device::init() NULL, NULL, NULL, - NULL, + AMD_OCL_SC_LIB, &::malloc, &::free }; diff --git a/rocclr/runtime/utils/flags.hpp b/rocclr/runtime/utils/flags.hpp index 93676d48a2..136872f37a 100644 --- a/rocclr/runtime/utils/flags.hpp +++ b/rocclr/runtime/utils/flags.hpp @@ -84,6 +84,8 @@ release(cstring, AMD_OCL_LINK_OPTIONS, 0, \ "Set clLinkProgram()'s options (override)") \ release(cstring, AMD_OCL_LINK_OPTIONS_APPEND, 0, \ "Append clLinkProgram()'s options") \ +release(cstring, AMD_OCL_SC_LIB, 0, \ + "Set shader compiler shared library name or path") \ debug(bool, AMD_OCL_SUPPRESS_MESSAGE_BOX, false, \ "Suppress the error dialog on Windows") \ debug(bool, OCL_STRESS_BINARY_IMAGE, false, \