mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 19:32:25 +08:00
OCL Encoder retVal fix
Change-Id: I679ca3b12b5472b58358d89ead53c0889ed01234
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "binary_encoder.h"
|
#include "binary_encoder.h"
|
||||||
|
#include "CL/cl.h"
|
||||||
#include "elf/writer.h"
|
#include "elf/writer.h"
|
||||||
#include "helper.h"
|
#include "helper.h"
|
||||||
#include "runtime/helpers/file_io.h"
|
#include "runtime/helpers/file_io.h"
|
||||||
@@ -137,10 +138,11 @@ int BinaryEncoder::encode() {
|
|||||||
printf("Error! Couldn't create device_binary.bin.\n");
|
printf("Error! Couldn't create device_binary.bin.\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (!processBinary(ptmFile, deviceBinary)) {
|
int retVal = processBinary(ptmFile, deviceBinary);
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
deviceBinary.close();
|
deviceBinary.close();
|
||||||
|
if (retVal != CL_SUCCESS) {
|
||||||
|
return retVal;
|
||||||
|
}
|
||||||
|
|
||||||
return createElf();
|
return createElf();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user