diff --git a/projects/clr/rocclr/runtime/device/rocm/rocdevice.cpp b/projects/clr/rocclr/runtime/device/rocm/rocdevice.cpp index 2bde6e794d..4a7d07e01d 100644 --- a/projects/clr/rocclr/runtime/device/rocm/rocdevice.cpp +++ b/projects/clr/rocclr/runtime/device/rocm/rocdevice.cpp @@ -250,6 +250,16 @@ bool NullDevice::initCompiler(bool isOffline) { } } } +#if defined(DEBUG) + std::string clangbin(llvmbin); + clangbin.append("/clang"); + struct stat buf; + if (stat(clangbin.c_str(), &buf)) { + std::string msg("Could not find the Clang binary in "); + msg.append(llvmbin); + LogWarning(msg.c_str()); + } +#endif // defined(DEBUG) #endif // defined(ATI_OS_LINUX) compilerHandle_ = amd::opencl_driver::CompilerFactory() .CreateAMDGPUCompiler(llvmbin);