Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Correct bfloat16 namespace in ESIMD and matrix tests #1422

Merged
merged 1 commit into from
Nov 29, 2022
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
2 changes: 1 addition & 1 deletion SYCL/ESIMD/dpas/dpas_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ template <dpas_argument_type T> struct DpasNaturalOperandType {
std::conditional_t<
is_fp16, sycl::half,
std::conditional_t<
is_bf16, sycl::ext::oneapi::experimental::bfloat16,
is_bf16, sycl::ext::oneapi::bfloat16,
std::conditional_t<
is_tf32, sycl::ext::intel::experimental::esimd::tfloat32,
void>>>>>;
Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/lsc/lsc_surf_load_u8_u16.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ int main(void) {

passed &= tests<0, uint8_t>();
passed &= tests<3, uint16_t>();
passed &= tests<6, sycl::ext::oneapi::experimental::bfloat16>();
passed &= tests<6, sycl::ext::oneapi::bfloat16>();
passed &= tests<9, half>();

std::cout << (passed ? "Passed\n" : "FAILED\n");
Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/lsc/lsc_usm_load_u8_u16.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ int main(void) {

passed &= tests<0, uint8_t>();
passed &= tests<3, uint16_t>();
passed &= tests<6, sycl::ext::oneapi::experimental::bfloat16>();
passed &= tests<6, sycl::ext::oneapi::bfloat16>();
passed &= tests<9, half>();

std::cout << (passed ? "Passed\n" : "FAILED\n");
Expand Down
2 changes: 1 addition & 1 deletion SYCL/Matrix/XMX8/joint_matrix_bfloat16.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

using namespace sycl;
using namespace sycl::ext::oneapi::experimental::matrix;
using bfloat16 = sycl::ext::oneapi::experimental::bfloat16;
using bfloat16 = sycl::ext::oneapi::bfloat16;

#define SG_SZ 8

Expand Down
2 changes: 1 addition & 1 deletion SYCL/Matrix/XMX8/joint_matrix_bfloat16_use.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <sycl/sycl.hpp>

using namespace sycl::ext::oneapi::experimental::matrix;
using bfloat16 = sycl::ext::oneapi::experimental::bfloat16;
using bfloat16 = sycl::ext::oneapi::bfloat16;

#define SG_SZ 8

Expand Down