P4 to Git Change 2045916 by gandryey@gera-win10 on 2019/12/13 18:32:11

SWDEV-197836 - Drop the use of llvm header files in opencl runtime
	- Fix compilation error with configurations where COMGR is disabled.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#76 edit
This commit is contained in:
foreman
2019-12-13 18:41:05 -05:00
parent c23923ff47
commit 8483576cc7
+6 -1
View File
@@ -619,10 +619,12 @@ bool Program::compileAndLinkExecutable(const amd_comgr_data_set_t inputs,
return (status == AMD_COMGR_STATUS_SUCCESS);
}
#endif // defined(USE_COMGR_LIBRARY)
bool Program::compileImplLC(const std::string& sourceCode,
const std::vector<const std::string*>& headers,
const char** headerIncludeNames, amd::option::Options* options) {
#if defined(USE_COMGR_LIBRARY)
const char* xLang = options->oVariables->XLang;
if (xLang != nullptr) {
if (strcmp(xLang,"asm") == 0) {
@@ -749,8 +751,11 @@ bool Program::compileImplLC(const std::string& sourceCode,
amd::Comgr::destroy_data_set(inputs);
return ret;
#else // defined(USE_COMGR_LIBRARY)
return false;
#endif // defined(USE_COMGR_LIBRARY)
}
#endif // defined(USE_COMGR_LIBRARY)
// ================================================================================================
static void logFunction(const char* msg, size_t size) {