Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sycl/include/CL/sycl/ONEAPI/intel_matrix/matrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

#pragma once

#include <CL/sycl/feature_test.hpp>

#if (SYCL_EXT_ONEAPI_MATRIX == 1)
#if defined(__AMXTILE__) && defined(__AMXINT8__) && defined(__AMXBF16__)
#include <CL/sycl/ONEAPI/intel_matrix/matrix-amx.hpp>
#endif
#endif
2 changes: 2 additions & 0 deletions sycl/include/CL/sycl/feature_test.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ namespace sycl {

// Feature test macro definitions

// TODO: Move these feature-test macros to compiler driver.
#define SYCL_EXT_INTEL_DEVICE_INFO 1
#define SYCL_EXT_ONEAPI_MATRIX 1

} // namespace sycl
} // __SYCL_INLINE_NAMESPACE(cl)
2 changes: 2 additions & 0 deletions sycl/test/on-device/extensions/matrix-amx-bf16-test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// RUN: %clangxx -march=sapphirerapids -fsycl -O2 %s -o %t.out
#include <CL/sycl.hpp>
#if (SYCL_EXT_ONEAPI_MATRIX == 1)
#include <iostream>

using namespace cl::sycl;
Expand Down Expand Up @@ -182,3 +183,4 @@ int main() {
std::cout << "\n";
}
}
#endif
2 changes: 2 additions & 0 deletions sycl/test/on-device/extensions/matrix-amx-int8-test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// RUN: %clangxx -march=sapphirerapids -fsycl -O2 %s -o %t.out
#include <CL/sycl.hpp>
#if (SYCL_EXT_ONEAPI_MATRIX == 1)
#include <iostream>

using namespace cl::sycl;
Expand Down Expand Up @@ -167,3 +168,4 @@ int main() {
std::cout << "\n";
}
}
#endif