File tree Expand file tree Collapse file tree 4 files changed +10
-0
lines changed
test/on-device/extensions Expand file tree Collapse file tree 4 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1414
1515#pragma once
1616
17+ #include < CL/sycl/feature_test.hpp>
18+
19+ #if (SYCL_EXT_ONEAPI_MATRIX == 1)
1720#if defined(__AMXTILE__) && defined(__AMXINT8__) && defined(__AMXBF16__)
1821#include < CL/sycl/ONEAPI/intel_matrix/matrix-amx.hpp>
1922#endif
23+ #endif
Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ namespace sycl {
1212
1313// Feature test macro definitions
1414
15+ // TODO: Move these feature-test macros to compiler driver.
1516#define SYCL_EXT_INTEL_DEVICE_INFO 1
17+ #define SYCL_EXT_ONEAPI_MATRIX 1
1618
1719} // namespace sycl
1820} // __SYCL_INLINE_NAMESPACE(cl)
Original file line number Diff line number Diff line change 11// RUN: %clangxx -march=sapphirerapids -fsycl -O2 %s -o %t.out
22#include < CL/sycl.hpp>
3+ #if (SYCL_EXT_ONEAPI_MATRIX == 1)
34#include < iostream>
45
56using namespace cl ::sycl;
@@ -182,3 +183,4 @@ int main() {
182183 std::cout << " \n " ;
183184 }
184185}
186+ #endif
Original file line number Diff line number Diff line change 11// RUN: %clangxx -march=sapphirerapids -fsycl -O2 %s -o %t.out
22#include < CL/sycl.hpp>
3+ #if (SYCL_EXT_ONEAPI_MATRIX == 1)
34#include < iostream>
45
56using namespace cl ::sycl;
@@ -167,3 +168,4 @@ int main() {
167168 std::cout << " \n " ;
168169 }
169170}
171+ #endif
You can’t perform that action at this time.
0 commit comments