|
1 | 1 | /* |
2 | 2 | * |
3 | | - * Copyright (C) 2025 Intel Corporation |
| 3 | + * Copyright (C) 2025-2026 Intel Corporation |
4 | 4 | * |
5 | 5 | * Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT. |
6 | 6 | * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
@@ -37,8 +37,17 @@ ZE_APIEXPORT ze_result_t ZE_APICALL zeInit(ze_init_flags_t flags) { |
37 | 37 | ZE_APIEXPORT ze_result_t ZE_APICALL zeDriverGet(uint32_t *pCount, |
38 | 38 | ze_driver_handle_t *phDrivers) { |
39 | 39 | (void)phDrivers; |
40 | | - (void)pCount; |
41 | | - FAIL_NOT_IMPLEMENTED |
| 40 | + *pCount = 0; |
| 41 | + return ZE_RESULT_SUCCESS; |
| 42 | +} |
| 43 | + |
| 44 | +ZE_APIEXPORT ze_result_t ZE_APICALL zeDriverGetExtensionProperties( |
| 45 | + ze_driver_handle_t hDriver, uint32_t *pCount, |
| 46 | + ze_driver_extension_properties_t *pExtensionProperties) { |
| 47 | + (void)hDriver; |
| 48 | + (void)pExtensionProperties; |
| 49 | + *pCount = 0; |
| 50 | + return ZE_RESULT_SUCCESS; |
42 | 51 | } |
43 | 52 |
|
44 | 53 | ZE_APIEXPORT ze_result_t ZE_APICALL zeDeviceGet(ze_driver_handle_t hDriver, |
@@ -189,6 +198,15 @@ zeDeviceGetMemoryProperties(ze_device_handle_t hDevice, uint32_t *pCount, |
189 | 198 | FAIL_NOT_IMPLEMENTED |
190 | 199 | } |
191 | 200 |
|
| 201 | +ZE_APIEXPORT ze_result_t ZE_APICALL |
| 202 | +zeDeviceGetCacheProperties(ze_device_handle_t hDevice, uint32_t *pCount, |
| 203 | + ze_device_cache_properties_t *pCacheProperties) { |
| 204 | + (void)hDevice; |
| 205 | + (void)pCount; |
| 206 | + (void)pCacheProperties; |
| 207 | + return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 208 | +} |
| 209 | + |
192 | 210 | // |
193 | 211 | // ze_ops_t operations from src/provider/provider_level_zero.c |
194 | 212 | // |
|
0 commit comments