mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
Revert "fix: correct naming of zer functions"
This reverts commit 91a9ccaebe.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
1aa4816c18
commit
566b6551a5
@@ -159,7 +159,7 @@ ze_result_t zeDeviceGetVectorWidthPropertiesExt(
|
||||
return L0::Device::fromHandle(hDevice)->getVectorWidthPropertiesExt(pCount, pVectorWidthProperties);
|
||||
}
|
||||
|
||||
uint32_t zerTranslateDeviceHandleToIdentifier(ze_device_handle_t device) {
|
||||
uint32_t zerDeviceTranslateToIdentifier(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 zerTranslateDeviceHandleToIdentifier(ze_device_handle_t device) {
|
||||
return L0::Device::fromHandle(device)->getIdentifier();
|
||||
}
|
||||
|
||||
ze_device_handle_t zerTranslateIdentifierToDeviceHandle(uint32_t identifier) {
|
||||
ze_device_handle_t zerIdentifierTranslateToDeviceHandle(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 zerTranslateDeviceHandleToIdentifier(ze_device_handle_t device) {
|
||||
return L0::zerTranslateDeviceHandleToIdentifier(device);
|
||||
uint32_t ZE_APICALL zerDeviceTranslateToIdentifier(ze_device_handle_t device) {
|
||||
return L0::zerDeviceTranslateToIdentifier(device);
|
||||
}
|
||||
|
||||
ze_device_handle_t ZE_APICALL zerTranslateIdentifierToDeviceHandle(uint32_t identifier) {
|
||||
return L0::zerTranslateIdentifierToDeviceHandle(identifier);
|
||||
ze_device_handle_t ZE_APICALL zerIdentifierTranslateToDeviceHandle(uint32_t identifier) {
|
||||
return L0::zerIdentifierTranslateToDeviceHandle(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 zerGetDefaultContext() {
|
||||
ze_context_handle_t zerDriverGetDefaultContext() {
|
||||
return L0::DriverHandle::fromHandle(L0::globalDriverHandles->front())->getDefaultContext();
|
||||
}
|
||||
|
||||
ze_result_t zerGetLastErrorDescription(const char **ppString) {
|
||||
ze_result_t zerDriverGetLastErrorDescription(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 zerGetDefaultContext() {
|
||||
return L0::zerGetDefaultContext();
|
||||
ze_context_handle_t ZE_APICALL zerDriverGetDefaultContext() {
|
||||
return L0::zerDriverGetDefaultContext();
|
||||
}
|
||||
ze_result_t ZE_APICALL zerGetLastErrorDescription(const char **ppString) {
|
||||
return L0::zerGetLastErrorDescription(ppString);
|
||||
ze_result_t ZE_APICALL zerDriverGetLastErrorDescription(const char **ppString) {
|
||||
return L0::zerDriverGetLastErrorDescription(ppString);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user