Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,6 @@ ZeroInferRequest::ZeroInferRequest(const std::shared_ptr<ZeroInitStructsHolder>&
_levelZeroOutputTensors(_metadata.outputs.size(), nullptr) {
_logger.debug("ZeroInferRequest::ZeroInferRequest - SyncInferRequest");

ze_device_external_memory_properties_t desc = {};
desc.stype = ZE_STRUCTURE_TYPE_DEVICE_EXTERNAL_MEMORY_PROPERTIES;
auto res = zeDeviceGetExternalMemoryProperties(_initStructs->getDevice(), &desc);
if (res == ZE_RESULT_SUCCESS) {
if (desc.memoryAllocationImportTypes & ZE_EXTERNAL_MEMORY_TYPE_FLAG_STANDARD_ALLOCATION) {
_externalMemoryStandardAllocationSupported = true;
}
}

_outputAllocator = std::make_shared<const zeroMemory::HostMemAllocator>(_initStructs);
_inputAllocator =
std::make_shared<const zeroMemory::HostMemAllocator>(_initStructs, ZE_HOST_MEM_ALLOC_FLAG_BIAS_WRITE_COMBINED);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,13 +404,14 @@ GraphDescriptor ZeGraphExtWrappers::getGraphDescriptor(void* blobData, size_t bl
flags = ZE_GRAPH_FLAG_INPUT_GRAPH_PERSISTENT;
}

ze_graph_desc_2_t desc = {ZE_STRUCTURE_TYPE_GRAPH_DESC_PROPERTIES,
nullptr,
ZE_GRAPH_FORMAT_NATIVE,
blobSize,
reinterpret_cast<const uint8_t*>(blobData),
nullptr,
flags};
ze_graph_desc_2_t desc = {
ZE_STRUCTURE_TYPE_GRAPH_DESC_PROPERTIES,
nullptr,
ZE_GRAPH_FORMAT_NATIVE,
blobSize,
npuMemory ? reinterpret_cast<const uint8_t*>(npuMemory) : reinterpret_cast<const uint8_t*>(blobData),
nullptr,
flags};

_logger.debug("getGraphDescriptor - perform pfnCreate2");

Expand Down
Loading