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