mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
ocloc returns error message for missing library
add error log in case libigdfcl is missing Change-Id: I578ac5f24b9fd67e57bb23fcd6771cc822b225b9 Signed-off-by: dongwonk <dongwon.kim@intel.com>
This commit is contained in:
@@ -324,7 +324,13 @@ int OfflineCompiler::initialize(size_t numArgs, const char *const *argv) {
|
|||||||
sourceCode = (pSource != nullptr) ? getStringWithinDelimiters((char *)pSourceFromFile) : (char *)pSourceFromFile;
|
sourceCode = (pSource != nullptr) ? getStringWithinDelimiters((char *)pSourceFromFile) : (char *)pSourceFromFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
this->fclLib.reset(OsLibrary::load(Os::frontEndDllName));
|
auto fclLibFile = OsLibrary::load(Os::frontEndDllName);
|
||||||
|
if (fclLibFile == nullptr) {
|
||||||
|
printf("Error: Failed to load %s\n", Os::frontEndDllName);
|
||||||
|
return CL_OUT_OF_HOST_MEMORY;
|
||||||
|
}
|
||||||
|
|
||||||
|
this->fclLib.reset(fclLibFile);
|
||||||
if (this->fclLib == nullptr) {
|
if (this->fclLib == nullptr) {
|
||||||
return CL_OUT_OF_HOST_MEMORY;
|
return CL_OUT_OF_HOST_MEMORY;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user