mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
fix: export Context residency functions with external C linkage
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
550c6905bc
commit
c933840708
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2022 Intel Corporation
|
||||
* Copyright (C) 2020-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -181,4 +181,34 @@ ZE_APIEXPORT ze_result_t ZE_APICALL zeContextGetStatus(
|
||||
return L0::zeContextGetStatus(
|
||||
hContext);
|
||||
}
|
||||
|
||||
ZE_APIEXPORT ze_result_t ZE_APICALL zeContextMakeMemoryResident(
|
||||
ze_context_handle_t hContext,
|
||||
ze_device_handle_t hDevice,
|
||||
void *ptr,
|
||||
size_t size) {
|
||||
return L0::zeContextMakeMemoryResident(hContext, hDevice, ptr, size);
|
||||
}
|
||||
|
||||
ZE_APIEXPORT ze_result_t ZE_APICALL zeContextEvictMemory(
|
||||
ze_context_handle_t hContext,
|
||||
ze_device_handle_t hDevice,
|
||||
void *ptr,
|
||||
size_t size) {
|
||||
return L0::zeContextEvictMemory(hContext, hDevice, ptr, size);
|
||||
}
|
||||
|
||||
ZE_APIEXPORT ze_result_t ZE_APICALL zeContextMakeImageResident(
|
||||
ze_context_handle_t hContext,
|
||||
ze_device_handle_t hDevice,
|
||||
ze_image_handle_t hImage) {
|
||||
return L0::zeContextMakeImageResident(hContext, hDevice, hImage);
|
||||
}
|
||||
|
||||
ZE_APIEXPORT ze_result_t ZE_APICALL zeContextEvictImage(
|
||||
ze_context_handle_t hContext,
|
||||
ze_device_handle_t hDevice,
|
||||
ze_image_handle_t hImage) {
|
||||
return L0::zeContextEvictImage(hContext, hDevice, hImage);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user