Skip to content

Commit 8ec8a4f

Browse files
committed
Define exp extension
1 parent 2d97965 commit 8ec8a4f

File tree

2 files changed

+98
-0
lines changed

2 files changed

+98
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<%
2+
OneApi=tags['$OneApi']
3+
x=tags['$x']
4+
X=x.upper()
5+
%>
6+
7+
.. _experimental-2D-block-array-capabilities:
8+
9+
================================================================================
10+
2D Block Array Capabilities
11+
================================================================================
12+
13+
.. warning::
14+
15+
Experimental features:
16+
17+
* May be replaced, updated, or removed at any time.
18+
* Do not require maintaining API/ABI stability of their own additions over
19+
time.
20+
* Do not require conformance testing of their own additions.
21+
22+
23+
Motivation
24+
--------------------------------------------------------------------------------
25+
Some Intel GPU devices support 2D block array operations which may be used to optimize applications on Intel GPUs.
26+
This extension provides a device descriptor which allows to query the 2D block array capabilities of a device.
27+
28+
API
29+
--------------------------------------------------------------------------------
30+
31+
Enums
32+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33+
34+
* ${x}_device_info_t
35+
* ${X}_DEVICE_INFO_2D_BLOCK_ARRAY_CAPABILITIES_EXP
36+
37+
* ${x}_exp_device_2d_block_array_capability_flags_t
38+
* ${X}_EXP_DEVICE_2D_BLOCK_ARRAY_CAPABILITY_FLAG_LOAD
39+
* ${X}_EXP_DEVICE_2D_BLOCK_ARRAY_CAPABILITY_FLAG_STORE
40+
41+
Changelog
42+
--------------------------------------------------------------------------------
43+
44+
+-----------+------------------------+
45+
| Revision | Changes |
46+
+===========+========================+
47+
| 1.0 | Initial Draft |
48+
+-----------+------------------------+
49+
50+
51+
Support
52+
--------------------------------------------------------------------------------
53+
54+
Adapters which support this experimental feature *must* return ${X}_RESULT_SUCCESS from
55+
the ${x}DeviceGetInfo call with the new ${X}_DEVICE_INFO_2D_BLOCK_ARRAY_CAPABILITIES_EXP
56+
device descriptor.
57+
58+
59+
Contributors
60+
--------------------------------------------------------------------------------
61+
62+
* Artur Gainullin `artur.gainullin@intel.com <artur.gainullin@intel.com>`_
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#
2+
# Copyright (C) 2024 Intel Corporation
3+
#
4+
# Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions.
5+
# See LICENSE.TXT
6+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7+
#
8+
# See YaML.md for syntax definition
9+
#
10+
--- #--------------------------------------------------------------------------
11+
type: header
12+
desc: "Intel $OneApi Unified Runtime Experimental device descriptor for querying Intel device 2D block array capabilities"
13+
ordinal: "99"
14+
--- #--------------------------------------------------------------------------
15+
type: enum
16+
extend: true
17+
typed_etors: true
18+
desc: "Extension enum to $x_device_info_t to query Intel device 2D block array capabilities."
19+
name: $x_device_info_t
20+
etors:
21+
- name: 2D_BLOCK_ARRAY_CAPABILITIES_EXP
22+
value: "0x2022"
23+
desc: "[$x_exp_device_2d_block_array_capability_flags_t] return a bit-field of Intel GPU 2D block array capabilities"
24+
--- #--------------------------------------------------------------------------
25+
type: enum
26+
desc: "Intel GPU 2D block array capabilities"
27+
class: $xDevice
28+
name: $x_exp_device_2d_block_array_capability_flags_t
29+
etors:
30+
- name: LOAD
31+
desc: "Load instructions are supported"
32+
value: "$X_BIT(0)"
33+
- name: STORE
34+
desc: "Store instructions are supported"
35+
value: "$X_BIT(1)"
36+

0 commit comments

Comments
 (0)