1 /* 2 * Copyright © 2020-2021 Inria. All rights reserved. 3 * See COPYING in top-level directory. 4 */ 5 6 #ifndef HWLOC_PORT_L0_ZE_API_H 7 #define HWLOC_PORT_L0_ZE_API_H 8 9 typedef int ze_result_t; 10 #define ZE_RESULT_SUCCESS 0 11 12 typedef void * ze_driver_handle_t; 13 typedef void * ze_device_handle_t; 14 15 extern ze_result_t zeInit(int); 16 extern ze_result_t zeDriverGet(uint32_t *, ze_driver_handle_t *); 17 extern ze_result_t zeDeviceGet(ze_driver_handle_t, uint32_t *, ze_device_handle_t *); 18 19 typedef struct ze_command_queue_group_properties { 20 unsigned long flags; 21 unsigned numQueues; 22 } ze_command_queue_group_properties_t; 23 24 extern ze_result_t zeDeviceGetCommandQueueGroupProperties(ze_driver_handle_t, uint32_t *, ze_command_queue_group_properties_t *); 25 26 27 #endif /* HWLOC_PORT_L0_ZE_API_H */ 28