mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
ocloc fatbinary - check if OfflineCompiler was created successfully
Change-Id: Ie24403ca25ea81eba38061edbeeed60dabd17f57
This commit is contained in:
@@ -250,6 +250,10 @@ int buildFatbinary(int argc, const char *argv[], OclocArgHelper *helper) {
|
|||||||
int retVal = 0;
|
int retVal = 0;
|
||||||
argsCopy[deviceArgIndex] = targetPlatform.str();
|
argsCopy[deviceArgIndex] = targetPlatform.str();
|
||||||
std::unique_ptr<OfflineCompiler> pCompiler{OfflineCompiler::create(argc, argsCopy, false, retVal, helper)};
|
std::unique_ptr<OfflineCompiler> pCompiler{OfflineCompiler::create(argc, argsCopy, false, retVal, helper)};
|
||||||
|
if (ErrorCode::SUCCESS != retVal) {
|
||||||
|
printf("Error! Couldn't create OfflineCompiler. Exiting.\n");
|
||||||
|
return retVal;
|
||||||
|
}
|
||||||
auto stepping = pCompiler->getHardwareInfo().platform.usRevId;
|
auto stepping = pCompiler->getHardwareInfo().platform.usRevId;
|
||||||
if (retVal == 0) {
|
if (retVal == 0) {
|
||||||
retVal = buildWithSafetyGuard(pCompiler.get());
|
retVal = buildWithSafetyGuard(pCompiler.get());
|
||||||
|
|||||||
Reference in New Issue
Block a user