Files
compute-runtime/opencl/source/program/process_intermediate_binary.cpp
Warchulski, Jaroslaw 0eac749fcc Cleanup includes 19
Cleaned up files:
opencl/source/api/cl_types.h
shared/source/compiler_interface/external_functions.h
shared/source/compiler_interface/linker.h
shared/source/device_binary_format/elf/elf.h
shared/source/helpers/preamble.h
shared/source/memory_manager/definitions/storage_info.h
shared/source/memory_manager/memory_manager.h
shared/source/memory_manager/os_agnostic_memory_manager.h
shared/source/program/program_info.h

Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2023-01-03 11:02:05 +01:00

33 lines
741 B
C++

/*
* Copyright (C) 2020-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/compiler_interface/compiler_cache.h"
#include "shared/source/compiler_interface/external_functions.h"
#include "shared/source/helpers/string.h"
#include "program.h"
namespace NEO {
cl_int Program::processSpirBinary(
const void *pBinary,
size_t binarySize,
bool isSpirV) {
for (const auto &device : clDevices) {
deviceBuildInfos[device].programBinaryType = CL_PROGRAM_BINARY_TYPE_INTERMEDIATE;
}
this->irBinary = makeCopy(pBinary, binarySize);
this->irBinarySize = binarySize;
setBuildStatus(CL_BUILD_NONE);
this->isSpirV = isSpirV;
return CL_SUCCESS;
}
} // namespace NEO