From b32bc266650fb0f10ddd4a055d9d0ab8065f7cfe Mon Sep 17 00:00:00 2001 From: ldrumm Date: Thu, 8 Feb 2024 20:23:51 +0000 Subject: [PATCH] =?UTF-8?q?Revert=20"[ESIMD][E2E]=20Enable=20few=20cases?= =?UTF-8?q?=20in=20atomic=5Fupdate=20after=20gpu=20driver=20updat=E2=80=A6?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 5f1d98a6e9da8065e8c211479113385ff16cd71b. --- .../Inputs/atomic_update.hpp | 16 ++++++++++---- .../Inputs/atomic_update_slm.hpp | 22 ++++++++++++++++--- 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/sycl/test-e2e/ESIMD/unified_memory_api/Inputs/atomic_update.hpp b/sycl/test-e2e/ESIMD/unified_memory_api/Inputs/atomic_update.hpp index ef8646ae4892a..3da82ee8e15d1 100644 --- a/sycl/test-e2e/ESIMD/unified_memory_api/Inputs/atomic_update.hpp +++ b/sycl/test-e2e/ESIMD/unified_memory_api/Inputs/atomic_update.hpp @@ -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; @@ -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; } diff --git a/sycl/test-e2e/ESIMD/unified_memory_api/Inputs/atomic_update_slm.hpp b/sycl/test-e2e/ESIMD/unified_memory_api/Inputs/atomic_update_slm.hpp index 6b69d99158cb6..92f000711e137 100644 --- a/sycl/test-e2e/ESIMD/unified_memory_api/Inputs/atomic_update_slm.hpp +++ b/sycl/test-e2e/ESIMD/unified_memory_api/Inputs/atomic_update_slm.hpp @@ -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(q); + // TODO: fmin/fmax/fcmpxchg for double requires a newer GPU driver. + if constexpr (!std::is_same_v, ImplLSCFmax> && + !std::is_same_v, ImplLSCFmin> && + !std::is_same_v, ImplLSCFcmpwr>) { + if (q.get_device().has(sycl::aspect::atomic64) && + q.get_device().has(sycl::aspect::fp64)) { + passed &= run_test(q); + } } } return passed; @@ -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)) { @@ -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; @@ -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; }