From b91c607ee497895c6aa8b074fa3b169aff2e4c8b Mon Sep 17 00:00:00 2001 From: foreman Date: Wed, 17 Aug 2016 12:48:18 -0400 Subject: [PATCH] P4 to Git Change 1303964 by lmoriche@lmoriche_opencl_dev on 2016/08/17 12:40:52 SWDEV-94610 - Add a diagnostic message if clang is not found in the LLVM_BIN path. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#8 edit [ROCm/clr commit: c695b44a5c10f9dd9ac6d476992673d90c4bed7d] --- projects/clr/rocclr/runtime/device/rocm/rocdevice.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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);