|
27 | 27 |
|
28 | 28 | extern __DPCPP_SYCL_EXTERNAL float __spirv_RoundFToTF32INTEL(float a);
|
29 | 29 |
|
30 |
| -#ifndef __SPIRV_USE_COOPERATIVE_MATRIX |
31 |
| -template <typename T, typename Tp, std::size_t R, std::size_t C, |
32 |
| - __spv::MatrixUse U, |
33 |
| - __spv::MatrixLayout L = __spv::MatrixLayout::RowMajor, |
34 |
| - __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> |
35 |
| -extern __DPCPP_SYCL_EXTERNAL |
36 |
| - __spv::__spirv_JointMatrixINTEL<Tp, R, C, L, S, U> * |
37 |
| - __spirv_JointMatrixLoadINTEL(T *Ptr, std::size_t Stride, |
38 |
| - __spv::MatrixLayout Layout = L, |
39 |
| - __spv::Scope::Flag Sc = S, int MemOperand = 0); |
40 |
| - |
41 |
| -template <typename T, typename Tp, std::size_t R, std::size_t C, |
42 |
| - __spv::MatrixUse U, |
43 |
| - __spv::MatrixLayout L = __spv::MatrixLayout::RowMajor, |
44 |
| - __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> |
45 |
| -extern __DPCPP_SYCL_EXTERNAL void __spirv_JointMatrixStoreINTEL( |
46 |
| - T *Ptr, __spv::__spirv_JointMatrixINTEL<Tp, R, C, L, S, U> *Object, |
47 |
| - std::size_t Stride, __spv::MatrixLayout Layout = L, |
48 |
| - __spv::Scope::Flag Sc = S, int MemOperand = 0); |
49 |
| - |
50 |
| -template <typename T, typename Tp, std::size_t R, std::size_t C, |
51 |
| - __spv::MatrixUse U, |
52 |
| - __spv::MatrixLayout L = __spv::MatrixLayout::RowMajor, |
53 |
| - __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> |
54 |
| -extern __DPCPP_SYCL_EXTERNAL |
55 |
| - __spv::__spirv_JointMatrixINTEL<Tp, R, C, L, S, U> * |
56 |
| - __spirv_CooperativeMatrixConstructCheckedINTEL(int32_t CoordX, |
57 |
| - int32_t CoordY, |
58 |
| - uint32_t Height, |
59 |
| - uint32_t Width, |
60 |
| - const T Value); |
61 |
| - |
62 |
| -template <typename T, typename Tp, std::size_t R, std::size_t C, |
63 |
| - __spv::MatrixUse U, |
64 |
| - __spv::MatrixLayout L = __spv::MatrixLayout::RowMajor, |
65 |
| - __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> |
66 |
| -extern __DPCPP_SYCL_EXTERNAL |
67 |
| - __spv::__spirv_JointMatrixINTEL<Tp, R, C, L, S, U> * |
68 |
| - __spirv_CooperativeMatrixLoadCheckedINTEL( |
69 |
| - T *Ptr, int32_t CoordX, int32_t CoordY, __spv::MatrixLayout Layout = L, |
70 |
| - uint32_t Height = 0, uint32_t Width = 0, std::size_t Stride = 0, |
71 |
| - int MemOperand = 0); |
72 |
| - |
73 |
| -template <typename T, typename Tp, std::size_t R, std::size_t C, |
74 |
| - __spv::MatrixUse U, |
75 |
| - __spv::MatrixLayout L = __spv::MatrixLayout::RowMajor, |
76 |
| - __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> |
77 |
| -extern __DPCPP_SYCL_EXTERNAL void __spirv_CooperativeMatrixStoreCheckedINTEL( |
78 |
| - T *Ptr, int32_t CoordX, int32_t CoordY, |
79 |
| - __spv::__spirv_JointMatrixINTEL<Tp, R, C, L, S, U> *Object, |
80 |
| - __spv::MatrixLayout Layout = L, uint32_t Height = 0, uint32_t Width = 0, |
81 |
| - std::size_t Stride = 0, int MemOperand = 0); |
82 |
| - |
83 |
| -template <typename TA, typename TB, typename TC, std::size_t M, std::size_t K, |
84 |
| - std::size_t N, __spv::MatrixUse UA, __spv::MatrixUse UB, |
85 |
| - __spv::MatrixUse UC, |
86 |
| - __spv::MatrixLayout LA = __spv::MatrixLayout::RowMajor, |
87 |
| - __spv::MatrixLayout LB = __spv::MatrixLayout::RowMajor, |
88 |
| - __spv::MatrixLayout LC = __spv::MatrixLayout::RowMajor, |
89 |
| - __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> |
90 |
| -extern __DPCPP_SYCL_EXTERNAL |
91 |
| - __spv::__spirv_JointMatrixINTEL<TC, M, N, LC, S, UC> * |
92 |
| - __spirv_JointMatrixMadINTEL( |
93 |
| - __spv::__spirv_JointMatrixINTEL<TA, M, K, LA, S, UA> *A, |
94 |
| - __spv::__spirv_JointMatrixINTEL<TB, K, N, LB, S, UB> *B, |
95 |
| - __spv::__spirv_JointMatrixINTEL<TC, M, N, LC, S, UC> *C, |
96 |
| - __spv::Scope::Flag Sc = __spv::Scope::Flag::Subgroup); |
97 |
| - |
98 |
| -template <typename T1, typename T2, typename T3, std::size_t M, std::size_t K, |
99 |
| - std::size_t N, __spv::MatrixUse UA, __spv::MatrixUse UB, |
100 |
| - __spv::MatrixUse UC, |
101 |
| - __spv::MatrixLayout LA = __spv::MatrixLayout::RowMajor, |
102 |
| - __spv::MatrixLayout LB = __spv::MatrixLayout::RowMajor, |
103 |
| - __spv::MatrixLayout LC = __spv::MatrixLayout::RowMajor, |
104 |
| - __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> |
105 |
| -extern __DPCPP_SYCL_EXTERNAL |
106 |
| - __spv::__spirv_JointMatrixINTEL<T3, M, N, LC, S, UC> * |
107 |
| - __spirv_JointMatrixUUMadINTEL( |
108 |
| - __spv::__spirv_JointMatrixINTEL<T1, M, K, LA, S, UA> *A, |
109 |
| - __spv::__spirv_JointMatrixINTEL<T2, K, N, LB, S, UB> *B, |
110 |
| - __spv::__spirv_JointMatrixINTEL<T3, M, N, LC, S, UC> *C, |
111 |
| - __spv::Scope::Flag Sc = __spv::Scope::Flag::Subgroup); |
112 |
| - |
113 |
| -template <typename T1, typename T2, typename T3, std::size_t M, std::size_t K, |
114 |
| - std::size_t N, __spv::MatrixUse UA, __spv::MatrixUse UB, |
115 |
| - __spv::MatrixUse UC, |
116 |
| - __spv::MatrixLayout LA = __spv::MatrixLayout::RowMajor, |
117 |
| - __spv::MatrixLayout LB = __spv::MatrixLayout::RowMajor, |
118 |
| - __spv::MatrixLayout LC = __spv::MatrixLayout::RowMajor, |
119 |
| - __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> |
120 |
| -extern __DPCPP_SYCL_EXTERNAL |
121 |
| - __spv::__spirv_JointMatrixINTEL<T3, M, N, LC, S, UC> * |
122 |
| - __spirv_JointMatrixUSMadINTEL( |
123 |
| - __spv::__spirv_JointMatrixINTEL<T1, M, K, LA, S, UA> *A, |
124 |
| - __spv::__spirv_JointMatrixINTEL<T2, K, N, LB, S, UB> *B, |
125 |
| - __spv::__spirv_JointMatrixINTEL<T3, M, N, LC, S, UC> *C, |
126 |
| - __spv::Scope::Flag Sc = __spv::Scope::Flag::Subgroup); |
127 |
| - |
128 |
| -template <typename T1, typename T2, typename T3, std::size_t M, std::size_t K, |
129 |
| - std::size_t N, __spv::MatrixUse UA, __spv::MatrixUse UB, |
130 |
| - __spv::MatrixUse UC, |
131 |
| - __spv::MatrixLayout LA = __spv::MatrixLayout::RowMajor, |
132 |
| - __spv::MatrixLayout LB = __spv::MatrixLayout::RowMajor, |
133 |
| - __spv::MatrixLayout LC = __spv::MatrixLayout::RowMajor, |
134 |
| - __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> |
135 |
| -extern __DPCPP_SYCL_EXTERNAL |
136 |
| - __spv::__spirv_JointMatrixINTEL<T3, M, N, LC, S, UC> * |
137 |
| - __spirv_JointMatrixSUMadINTEL( |
138 |
| - __spv::__spirv_JointMatrixINTEL<T1, M, K, LA, S, UA> *A, |
139 |
| - __spv::__spirv_JointMatrixINTEL<T2, K, N, LB, S, UB> *B, |
140 |
| - __spv::__spirv_JointMatrixINTEL<T3, M, N, LC, S, UC> *C, |
141 |
| - __spv::Scope::Flag Sc = __spv::Scope::Flag::Subgroup); |
142 |
| - |
143 |
| -template <typename T, typename Tp, std::size_t R, std::size_t C, |
144 |
| - __spv::MatrixUse U, |
145 |
| - __spv::MatrixLayout L = __spv::MatrixLayout::RowMajor, |
146 |
| - __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> |
147 |
| -extern __DPCPP_SYCL_EXTERNAL |
148 |
| - __spv::__spirv_JointMatrixINTEL<Tp, R, C, L, S, U> * |
149 |
| - __spirv_CompositeConstruct(const T v); |
150 |
| - |
151 |
| -template <typename T, std::size_t R, std::size_t C, __spv::MatrixUse U, |
152 |
| - __spv::MatrixLayout L = __spv::MatrixLayout::RowMajor, |
153 |
| - __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> |
154 |
| -extern __DPCPP_SYCL_EXTERNAL __ocl_vec_t<uint32_t, 2> |
155 |
| -__spirv_JointMatrixGetElementCoordINTEL( |
156 |
| - __spv::__spirv_JointMatrixINTEL<T, R, C, L, S, U> *, size_t i); |
157 |
| - |
158 |
| -template <typename T, std::size_t R, std::size_t C, __spv::MatrixUse U, |
159 |
| - __spv::MatrixLayout L = __spv::MatrixLayout::RowMajor, |
160 |
| - __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> |
161 |
| -extern __DPCPP_SYCL_EXTERNAL size_t __spirv_JointMatrixWorkItemLengthINTEL( |
162 |
| - __spv::__spirv_JointMatrixINTEL<T, R, C, L, S, U> *); |
163 |
| - |
164 |
| -template <typename Ts, typename T, std::size_t R, std::size_t C, |
165 |
| - __spv::MatrixUse U, |
166 |
| - __spv::MatrixLayout L = __spv::MatrixLayout::RowMajor, |
167 |
| - __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> |
168 |
| -extern __DPCPP_SYCL_EXTERNAL Ts __spirv_VectorExtractDynamic( |
169 |
| - __spv::__spirv_JointMatrixINTEL<T, R, C, L, S, U> *, size_t i); |
170 |
| - |
171 |
| -template <typename Ts, typename T, std::size_t R, std::size_t C, |
172 |
| - __spv::MatrixUse U, |
173 |
| - __spv::MatrixLayout L = __spv::MatrixLayout::RowMajor, |
174 |
| - __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> |
175 |
| -extern __DPCPP_SYCL_EXTERNAL __spv::__spirv_JointMatrixINTEL<T, R, C, L, S, U> * |
176 |
| -__spirv_VectorInsertDynamic(__spv::__spirv_JointMatrixINTEL<T, R, C, L, S, U> *, |
177 |
| - Ts val, size_t i); |
178 |
| -#else // __SPIRV_USE_COOPERATIVE_MATRIX |
179 | 30 | template <typename T, typename Tp, std::size_t R, std::size_t C,
|
180 | 31 | __spv::MatrixUse U,
|
181 | 32 | __spv::MatrixLayout L = __spv::MatrixLayout::RowMajor,
|
@@ -304,7 +155,6 @@ extern __DPCPP_SYCL_EXTERNAL void __spirv_CooperativeMatrixStoreCheckedINTEL(
|
304 | 155 | __spv::__spirv_CooperativeMatrixKHR<Tp, S, R, C, U> *Object,
|
305 | 156 | __spv::MatrixLayout Layout = L, uint32_t Height = 0, uint32_t Width = 0,
|
306 | 157 | std::size_t Stride = 0, int MemOperand = 0);
|
307 |
| -#endif // __SPIRV_USE_COOPERATIVE_MATRIX |
308 | 158 |
|
309 | 159 | template <typename T>
|
310 | 160 | extern __DPCPP_SYCL_EXTERNAL void __spirv_CooperativeMatrixPrefetchINTEL(
|
|
0 commit comments