Skip to content

Commit e53d504

Browse files
authored
add an extension to return the device IP version (#23)
Signed-off-by: Ben Ashbaugh <ben.ashbaugh@intel.com>
1 parent a70e386 commit e53d504

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<%
2+
import re
3+
from templates import helper as th
4+
%><%
5+
OneApi=tags['$OneApi']
6+
x=tags['$x']
7+
X=x.upper()
8+
%>
9+
:orphan:
10+
11+
.. _ZE_extension_device_ip_version:
12+
13+
======================================
14+
Device IP Version Extension
15+
======================================
16+
17+
API
18+
----
19+
20+
* Structures
21+
22+
* ${x}_device_ip_version_ext_t

scripts/core/common.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,9 @@ etors:
407407
- name: DEVICE_MEMORY_EXT_PROPERTIES
408408
desc: $x_device_memory_ext_properties_t
409409
version: "1.4"
410+
- name: DEVICE_IP_VERSION_EXT
411+
desc: $x_device_ip_version_ext_t
412+
version: "1.5"
410413
- name: RELAXED_ALLOCATION_LIMITS_EXP_DESC
411414
desc: $x_relaxed_allocation_limits_exp_desc_t
412415
value: "0x00020001"

scripts/core/deviceipversion.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#
2+
# Copyright (C) 2022 Intel Corporation
3+
#
4+
# SPDX-License-Identifier: MIT
5+
#
6+
# See YaML.md for syntax definition
7+
#
8+
--- #--------------------------------------------------------------------------
9+
type: header
10+
desc: "Intel $OneApi Level-Zero Extension APIs for Device IP Version"
11+
version: "1.5"
12+
--- #--------------------------------------------------------------------------
13+
type: macro
14+
desc: "Device IP Version Extension Name"
15+
version: "1.5"
16+
name: $X_DEVICE_IP_VERSION_EXT_NAME
17+
value: '"$X_extension_device_ip_version"'
18+
--- #--------------------------------------------------------------------------
19+
type: enum
20+
desc: "Device IP Version Extension Version(s)"
21+
version: "1.5"
22+
name: $x_device_ip_version_version_t
23+
etors:
24+
- name: "1_0"
25+
value: "$X_MAKE_VERSION( 1, 0 )"
26+
desc: "version 1.0"
27+
--- #--------------------------------------------------------------------------
28+
type: struct
29+
desc: "Device IP version queried using $xDeviceGetProperties"
30+
version: "1.5"
31+
class: $xDevice
32+
name: $x_device_ip_version_ext_t
33+
base: $x_base_desc_t
34+
members:
35+
- type: uint32_t
36+
name: ipVersion
37+
desc: |
38+
[out] Device IP version. The meaning of the device IP version is
39+
implementation-defined, but newer devices should have a higher
40+
version than older devices.
41+
42+
details:
43+
- "This structure may be returned from $xDeviceGetProperties via `pNext` member of $x_device_properties_t"
44+

0 commit comments

Comments
 (0)