Skip to content

Commit

Permalink
[SYCL][ESIMD][E2E] Enable tests on DG2 (#12847)
Browse files Browse the repository at this point in the history
  • Loading branch information
fineg74 authored Mar 1, 2024
1 parent 5d515df commit 8e987fe
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
7 changes: 5 additions & 2 deletions sycl/test-e2e/ESIMD/lsc/lsc_surf_store_u64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// REQUIRES: gpu-intel-pvc
// REQUIRES: gpu-intel-pvc || gpu-intel-dg2
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down Expand Up @@ -36,9 +36,12 @@ template <int TestCastNum, typename T> bool tests() {
int main(void) {
srand(seed);
bool passed = true;
auto Q = queue{gpu_selector_v};

passed &= tests<0, uint64_t>();
passed &= tests<11, double>();
if (Q.get_device().has(sycl::aspect::fp64)) {
passed &= tests<11, double>();
}

std::cout << (passed ? "Passed\n" : "FAILED\n");
return passed ? 0 : 1;
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/ESIMD/lsc/lsc_surf_store_u64_stateless.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// REQUIRES: gpu-intel-pvc
// REQUIRES: gpu-intel-pvc || gpu-intel-dg2
// RUN: %{build} -fsycl-esimd-force-stateless-mem -o %t.out
// RUN: %{run} %t.out

Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/ESIMD/lsc/lsc_usm_atomic_cachehint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// REQUIRES: gpu-intel-pvc
// REQUIRES: gpu-intel-pvc || gpu-intel-dg2
// TODO : Test uses 'kernel_bundle' that is not supported in ESIMD_EMULATOR
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/ESIMD/lsc/lsc_usm_atomic_cachehint_64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// REQUIRES: gpu-intel-pvc
// REQUIRES: gpu-intel-pvc || gpu-intel-dg2
// TODO : Test uses 'kernel_bundle' that is not supported in ESIMD_EMULATOR
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out
Expand Down
8 changes: 5 additions & 3 deletions sycl/test-e2e/ESIMD/lsc/lsc_usm_gather_u64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,22 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// REQUIRES: gpu-intel-pvc
// REQUIRES: gpu-intel-pvc || gpu-intel-dg2
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

#include "Inputs/lsc_usm_gather_prefetch.hpp"

int main(void) {
constexpr uint32_t Seed = 185;
auto Q = queue{gpu_selector_v};
srand(Seed);

bool Passed = true;
Passed &= test_lsc_gather<uint64_t>();
Passed &= test_lsc_gather<double>();

if (Q.get_device().has(sycl::aspect::fp64)) {
Passed &= test_lsc_gather<double>();
}
std::cout << (Passed ? "Passed\n" : "FAILED\n");
return Passed ? 0 : 1;
}
2 changes: 1 addition & 1 deletion sycl/test-e2e/ESIMD/lsc/lsc_usm_gather_u64_64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// REQUIRES: gpu-intel-pvc
// REQUIRES: gpu-intel-pvc || gpu-intel-dg2
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down

0 comments on commit 8e987fe

Please sign in to comment.