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

[SYCL] Fix result check in joint matrix tests #1432

Merged
merged 1 commit into from
Dec 2, 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
6 changes: 2 additions & 4 deletions SYCL/Matrix/element_wise_ops_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ int main() {
res = false;
}
}
if (res)
std::cout << "passed\n";
else
std::cout << "failed\n";
std::cout << (res ? "passed" : "failed") << std::endl;
return !res;
}
6 changes: 2 additions & 4 deletions SYCL/Matrix/elemwise_irreg_size_ops_bf16.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,6 @@ int main() {
res = false;
}
}
if (res)
std::cout << "passed\n";
else
std::cout << "failed\n";
std::cout << (res ? "passed" : "failed") << std::endl;
return !res;
}
6 changes: 2 additions & 4 deletions SYCL/Matrix/joint_matrix_bf16_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ int main() {
res = false;
}
}
if (res)
std::cout << "passed\n";
else
std::cout << "failed\n";
std::cout << (res ? "passed" : "failed") << std::endl;
return !res;
}
6 changes: 2 additions & 4 deletions SYCL/Matrix/joint_matrix_bfloat16_32x64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ int main() {
res = false;
}
}
if (res)
std::cout << "passed\n";
else
std::cout << "failed\n";
std::cout << (res ? "passed" : "failed") << std::endl;
return !res;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
// RUN: %clangxx -fsycl %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// CHECK: passed

// This tests support of col major layout for matrix B which does transpose and
// then VNNI transform. This is currently only available on AMX
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ int main() {
res = false;
}
}
if (res)
std::cout << "passed\n";
else
std::cout << "failed\n";
std::cout << (res ? "passed" : "failed") << std::endl;
return !res;
}
6 changes: 2 additions & 4 deletions SYCL/Matrix/joint_matrix_bfloat16_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ int main() {
res = false;
}
}
if (res)
std::cout << "passed\n";
else
std::cout << "failed\n";
std::cout << (res ? "passed" : "failed") << std::endl;
return !res;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
// RUN: %clangxx -fsycl %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// CHECK: passed

// This tests support of row major layout for matrix B which does automatic VNNI
// transform. This is currently only available on AMX
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ int main() {
res = false;
}
}
if (res)
std::cout << "passed\n";
else
std::cout << "failed\n";
std::cout << (res ? "passed" : "failed") << std::endl;
return !res;
}
6 changes: 2 additions & 4 deletions SYCL/Matrix/joint_matrix_bfloat16_use_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ int main() {
res = false;
}
}
if (res)
std::cout << "passed\n";
else
std::cout << "failed\n";
std::cout << (res ? "passed" : "failed") << std::endl;
return !res;
}
6 changes: 2 additions & 4 deletions SYCL/Matrix/joint_matrix_half_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ int main() {
res = false;
}
}
if (res)
std::cout << "passed\n";
else
std::cout << "failed\n";
std::cout << (res ? "passed" : "failed") << std::endl;
return !res;
}
1 change: 0 additions & 1 deletion SYCL/Matrix/joint_matrix_int8_colmajorA_colmajorB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
// RUN: %clangxx -fsycl %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// CHECK: passed

// This tests support of col major layout for matrix B which does transpose and
// then VNNI transform. This is currently only available on AMX
Expand Down
6 changes: 2 additions & 4 deletions SYCL/Matrix/joint_matrix_int8_colmajorA_colmajorB_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ int main() {
res = false;
}
}
if (res)
std::cout << "passed\n";
else
std::cout << "failed\n";
std::cout << (res ? "passed" : "failed") << std::endl;
return !res;
}
6 changes: 2 additions & 4 deletions SYCL/Matrix/joint_matrix_int8_vnni_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ int main() {
res = false;
}
}
if (res)
std::cout << "passed\n";
else
std::cout << "failed\n";
std::cout << (res ? "passed" : "failed") << std::endl;
return !res;
}
6 changes: 2 additions & 4 deletions SYCL/Matrix/joint_matrix_query_default.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,6 @@ int main() {
res = false;
}
}
if (res)
std::cout << "passed\n";
else
std::cout << "failed\n";
std::cout << (res ? "passed" : "failed") << std::endl;
return !res;
}
10 changes: 2 additions & 8 deletions SYCL/Matrix/joint_matrix_query_use_default.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
// RUN: %clangxx -fsycl %s -o %t.out -DSYCL_EXT_ONEAPI_MATRIX_VERSION=2
// RUN: %CPU_RUN_PLACEHOLDER %t.out

// CHECK: passed

// CHECK: passed

#include <iostream>
#include <sycl/sycl.hpp>

Expand Down Expand Up @@ -166,8 +162,6 @@ int main() {
res = false;
}
}
if (res)
std::cout << "passed\n";
else
std::cout << "failed\n";
std::cout << (res ? "passed" : "failed") << std::endl;
return !res;
}
6 changes: 2 additions & 4 deletions SYCL/Matrix/joint_matrix_ss_int8_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ int main() {
res = false;
}
}
if (res)
std::cout << "passed\n";
else
std::cout << "failed\n";
std::cout << (res ? "passed" : "failed") << std::endl;
return !res;
}
6 changes: 2 additions & 4 deletions SYCL/Matrix/joint_matrix_ss_int8_use_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ int main() {
res = false;
}
}
if (res)
std::cout << "passed\n";
else
std::cout << "failed\n";
std::cout << (res ? "passed" : "failed") << std::endl;
return !res;
}
6 changes: 2 additions & 4 deletions SYCL/Matrix/joint_matrix_su_int8_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ int main() {
res = false;
}
}
if (res)
std::cout << "passed\n";
else
std::cout << "failed\n";
std::cout << (res ? "passed" : "failed") << std::endl;
return !res;
}
6 changes: 2 additions & 4 deletions SYCL/Matrix/joint_matrix_us_int8_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ int main() {
res = false;
}
}
if (res)
std::cout << "passed\n";
else
std::cout << "failed\n";
std::cout << (res ? "passed" : "failed") << std::endl;
return !res;
}
6 changes: 2 additions & 4 deletions SYCL/Matrix/joint_matrix_uu_int8_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ int main() {
res = false;
}
}
if (res)
std::cout << "passed\n";
else
std::cout << "failed\n";
std::cout << (res ? "passed" : "failed") << std::endl;
return !res;
}