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
12 changes: 11 additions & 1 deletion tests/unit_tests/blas/sycl-graph/gemm_batch_usm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,18 @@ int test(device*, oneapi::math::layout, int64_t, size_t) {
struct GraphGemmBatchUsmTests
: public ::testing::TestWithParam<std::tuple<sycl::device*, oneapi::math::layout>> {
virtual void SetUp() override {
auto device = std::get<0>(GetParam());
if (device->get_backend() == sycl::backend::opencl) {
GTEST_SKIP() << "Test not yet supported on OpenCL";
}
#if SYCL_EXT_ONEAPI_BACKEND_HIP
if (device->get_backend() == sycl::backend::ext_oneapi_hip) {
GTEST_SKIP() << "Test not yet supported on HIP";
}
#endif

// Skip test if graph recording variant and device doesn't support sycl_ext_oneapi_graph
CHECK_GRAPH_ON_DEVICE(std::get<0>(GetParam()));
CHECK_GRAPH_ON_DEVICE(device);
}
};

Expand Down
12 changes: 11 additions & 1 deletion tests/unit_tests/blas/sycl-graph/gemm_usm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,18 @@ int test(device*, oneapi::math::layout, int, int, int, int, int, int, Tc, Tc) {
struct GraphGemmUsmTests
: public ::testing::TestWithParam<std::tuple<sycl::device*, oneapi::math::layout>> {
virtual void SetUp() override {
auto device = std::get<0>(GetParam());
if (device->get_backend() == sycl::backend::opencl) {
GTEST_SKIP() << "Test not yet supported on OpenCL";
}
#if SYCL_EXT_ONEAPI_BACKEND_HIP
if (device->get_backend() == sycl::backend::ext_oneapi_hip) {
GTEST_SKIP() << "Test not yet supported on HIP";
}
#endif

// Skip test if graph recording variant and device doesn't support sycl_ext_oneapi_graph
CHECK_GRAPH_ON_DEVICE(std::get<0>(GetParam()));
CHECK_GRAPH_ON_DEVICE(device);
}
};

Expand Down
Loading