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: c695b44a5c]
This commit is contained in:
@@ -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)
|
#endif // defined(ATI_OS_LINUX)
|
||||||
compilerHandle_ = amd::opencl_driver::CompilerFactory()
|
compilerHandle_ = amd::opencl_driver::CompilerFactory()
|
||||||
.CreateAMDGPUCompiler(llvmbin);
|
.CreateAMDGPUCompiler(llvmbin);
|
||||||
|
|||||||
Reference in New Issue
Block a user