diff --git a/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp b/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp index b061ae9df2..bd5f285c2c 100644 --- a/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp +++ b/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp @@ -183,6 +183,7 @@ NullDevice::create(CALtarget target) if (NULL == compiler_) { #if !defined(ATI_OS_LINUX) char CompilerLibrary[220] = ""; + strcpy_s(CompilerLibrary, calAttr.driverStore); strcat_s(CompilerLibrary, "amdocl12cl" LP64_SWITCH("", "64") ".dll"); #endif const char *library = getenv("COMPILER_LIBRARY"); @@ -977,6 +978,7 @@ Device::create(CALuint ordinal, CALuint numOfDevices) if (NULL == compiler_) { #if !defined(ATI_OS_LINUX) char CompilerLibrary[220] = ""; + strcpy_s(CompilerLibrary, getAttribs().driverStore); strcat_s(CompilerLibrary, "amdocl12cl" LP64_SWITCH("", "64") ".dll"); #endif