Skip to content

Commit

Permalink
Revert "[ESIMD][E2E] Enable few cases in atomic_update after gpu driv…
Browse files Browse the repository at this point in the history
…er updat…"

This reverts commit 5f1d98a.
  • Loading branch information
ldrumm committed Feb 8, 2024
1 parent 7ee7e90 commit b32bc26
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 7 deletions.
16 changes: 12 additions & 4 deletions sycl/test-e2e/ESIMD/unified_memory_api/Inputs/atomic_update.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -715,10 +715,13 @@ bool test_int_types_and_sizes(queue q, const Config &cfg) {
q, cfg);
passed &= test_int_types<64, Op, UseMask, UseLSCFeatures, UseAcc, SignMask>(
q, cfg);
passed &= test_int_types<12, Op, UseMask, UseLSCFeatures, UseAcc, SignMask>(
q, cfg);
passed &= test_int_types<33, Op, UseMask, UseLSCFeatures, UseAcc, SignMask>(
q, cfg);
// non power of two values are supported only in newer driver.
// TODO: Enable this when the new driver reaches test infrastructure
// (v27556).
#if 0
passed &= test_int_types<12, Op, UseMask, UseLSCFeatures, UseAcc, SignMask>(q, cfg);
passed &= test_int_types<33, Op, UseMask, UseLSCFeatures, UseAcc, SignMask>(q, cfg);
#endif
}

return passed;
Expand All @@ -739,8 +742,13 @@ bool test_fp_types_and_sizes(queue q, const Config &cfg) {
passed &= test_fp_types<32, Op, UseMask, UseLSCFeatures, UseAcc>(q, cfg);
passed &= test_fp_types<64, Op, UseMask, UseLSCFeatures, UseAcc>(q, cfg);

// non power of two values are supported only in newer driver.
// TODO: Enable this when the new driver reaches test infrastructure
// (v27556).
#if 0
passed &= test_fp_types<12, Op, UseMask, UseLSCFeatures, UseAcc>(q, cfg);
passed &= test_fp_types<35, Op, UseMask, UseLSCFeatures, UseAcc>(q, cfg);
#endif
}
return passed;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -612,9 +612,14 @@ bool test_fp_types(queue q) {

if constexpr (Features == TestFeatures::DG2 ||
Features == TestFeatures::PVC) {
if (q.get_device().has(sycl::aspect::atomic64) &&
q.get_device().has(sycl::aspect::fp64)) {
passed &= run_test<UseAcc, double, N, Op, UseMask>(q);
// TODO: fmin/fmax/fcmpxchg for double requires a newer GPU driver.
if constexpr (!std::is_same_v<Op<double, N>, ImplLSCFmax<double, N>> &&
!std::is_same_v<Op<double, N>, ImplLSCFmin<double, N>> &&
!std::is_same_v<Op<double, N>, ImplLSCFcmpwr<double, N>>) {
if (q.get_device().has(sycl::aspect::atomic64) &&
q.get_device().has(sycl::aspect::fp64)) {
passed &= run_test<UseAcc, double, N, Op, UseMask>(q);
}
}
}
return passed;
Expand All @@ -628,6 +633,7 @@ bool test_int_types_and_sizes(queue q) {
passed &= test_int_types<2, Op, UseMask, Features, UseAcc, SignMask>(q);
passed &= test_int_types<4, Op, UseMask, Features, UseAcc, SignMask>(q);
passed &= test_int_types<8, Op, UseMask, Features, UseAcc, SignMask>(q);
// TODO: N=16 and N=32 does not pass on Gen12 with mask due to older driver.
if (UseMask && Features == TestFeatures::Generic &&
esimd_test::isGPUDriverGE(q, esimd_test::GPUDriverOS::LinuxAndWindows,
"26918", "101.4953", false)) {
Expand All @@ -639,8 +645,13 @@ bool test_int_types_and_sizes(queue q) {
if constexpr (Features == TestFeatures::DG2 ||
Features == TestFeatures::PVC) {
passed &= test_int_types<64, Op, UseMask, Features, UseAcc, SignMask>(q);
// non power of two values are supported only in newer driver.
// TODO: Enable this when the new driver reaches test infrastructure
// (v27556).
#if 0
passed &= test_int_types<12, Op, UseMask, Features, UseAcc, SignMask>(q);
passed &= test_int_types<33, Op, UseMask, Features, UseAcc, SignMask>(q);
#endif
}

return passed;
Expand All @@ -661,8 +672,13 @@ bool test_fp_types_and_sizes(queue q) {
if constexpr (Features == TestFeatures::DG2 ||
Features == TestFeatures::PVC) {
passed &= test_fp_types<64, Op, UseMask, Features, UseAcc>(q);
// non power of two values are supported only in newer driver.
// TODO: Enable this when the new driver reaches test infrastructure
// (v27556).
#if 0
passed &= test_fp_types<33, Op, UseMask, Features, UseAcc>(q);
passed &= test_fp_types<65, Op, UseMask, Features, UseAcc>(q);
#endif
}
return passed;
}
Expand Down

0 comments on commit b32bc26

Please sign in to comment.