mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-01 04:23:00 +08:00
fix: correct naming of zer functions
zerDriverGetDefaultContext -> zerGetDefaultContext zerDriverGetLastErrorDescription -> zerGetLastErrorDesription zerDeviceTranslateToIdentifier -> zerTranslateDeviceHandleToIdentifier zerIdentifierTranslateToDeviceHandle -> zerTranslateIdentifierToDeviceHandle Related-To: NEO-14560 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b7a73653a2
commit
ee5cd678ea
@@ -159,7 +159,7 @@ ze_result_t zeDeviceGetVectorWidthPropertiesExt(
|
||||
return L0::Device::fromHandle(hDevice)->getVectorWidthPropertiesExt(pCount, pVectorWidthProperties);
|
||||
}
|
||||
|
||||
uint32_t zerDeviceTranslateToIdentifier(ze_device_handle_t device) {
|
||||
uint32_t zerTranslateDeviceHandleToIdentifier(ze_device_handle_t device) {
|
||||
if (!device) {
|
||||
auto driverHandle = static_cast<L0::DriverHandleImp *>(L0::globalDriverHandles->front());
|
||||
driverHandle->setErrorDescription("Invalid device handle");
|
||||
@@ -168,7 +168,7 @@ uint32_t zerDeviceTranslateToIdentifier(ze_device_handle_t device) {
|
||||
return L0::Device::fromHandle(device)->getIdentifier();
|
||||
}
|
||||
|
||||
ze_device_handle_t zerIdentifierTranslateToDeviceHandle(uint32_t identifier) {
|
||||
ze_device_handle_t zerTranslateIdentifierToDeviceHandle(uint32_t identifier) {
|
||||
auto driverHandle = static_cast<L0::DriverHandleImp *>(L0::globalDriverHandles->front());
|
||||
if (identifier >= driverHandle->devicesToExpose.size()) {
|
||||
driverHandle->setErrorDescription("Invalid device identifier");
|
||||
@@ -364,12 +364,12 @@ ZE_APIEXPORT ze_result_t ZE_APICALL zeDeviceGetVectorWidthPropertiesExt(
|
||||
return L0::zeDeviceGetVectorWidthPropertiesExt(hDevice, pCount, pVectorWidthProperties);
|
||||
}
|
||||
|
||||
uint32_t ZE_APICALL zerDeviceTranslateToIdentifier(ze_device_handle_t device) {
|
||||
return L0::zerDeviceTranslateToIdentifier(device);
|
||||
uint32_t ZE_APICALL zerTranslateDeviceHandleToIdentifier(ze_device_handle_t device) {
|
||||
return L0::zerTranslateDeviceHandleToIdentifier(device);
|
||||
}
|
||||
|
||||
ze_device_handle_t ZE_APICALL zerIdentifierTranslateToDeviceHandle(uint32_t identifier) {
|
||||
return L0::zerIdentifierTranslateToDeviceHandle(identifier);
|
||||
ze_device_handle_t ZE_APICALL zerTranslateIdentifierToDeviceHandle(uint32_t identifier) {
|
||||
return L0::zerTranslateIdentifierToDeviceHandle(identifier);
|
||||
}
|
||||
|
||||
ze_result_t ZE_APICALL zeDeviceSynchronize(ze_device_handle_t hDevice) {
|
||||
|
||||
@@ -71,11 +71,11 @@ ze_context_handle_t zeDriverGetDefaultContext(
|
||||
return L0::DriverHandle::fromHandle(hDriver)->getDefaultContext();
|
||||
}
|
||||
|
||||
ze_context_handle_t zerDriverGetDefaultContext() {
|
||||
ze_context_handle_t zerGetDefaultContext() {
|
||||
return L0::DriverHandle::fromHandle(L0::globalDriverHandles->front())->getDefaultContext();
|
||||
}
|
||||
|
||||
ze_result_t zerDriverGetLastErrorDescription(const char **ppString) {
|
||||
ze_result_t zerGetLastErrorDescription(const char **ppString) {
|
||||
return L0::DriverHandle::fromHandle(L0::globalDriverHandles->front())->getErrorDescription(ppString);
|
||||
}
|
||||
} // namespace L0
|
||||
@@ -158,10 +158,10 @@ ze_context_handle_t ZE_APICALL zeDriverGetDefaultContext(
|
||||
return L0::zeDriverGetDefaultContext(hDriver);
|
||||
}
|
||||
|
||||
ze_context_handle_t ZE_APICALL zerDriverGetDefaultContext() {
|
||||
return L0::zerDriverGetDefaultContext();
|
||||
ze_context_handle_t ZE_APICALL zerGetDefaultContext() {
|
||||
return L0::zerGetDefaultContext();
|
||||
}
|
||||
ze_result_t ZE_APICALL zerDriverGetLastErrorDescription(const char **ppString) {
|
||||
return L0::zerDriverGetLastErrorDescription(ppString);
|
||||
ze_result_t ZE_APICALL zerGetLastErrorDescription(const char **ppString) {
|
||||
return L0::zerGetLastErrorDescription(ppString);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user