Skip to content

Commit

Permalink
[SYCL][HIP] Fix shuffles and reductions (#759)
Browse files Browse the repository at this point in the history
These tests are fixed by #5359
  • Loading branch information
npmiller committed Jan 26, 2022
1 parent 9e3efa0 commit b238ad2
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 41 deletions.
6 changes: 3 additions & 3 deletions SYCL/Reduction/reduction_big_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
//
// Missing __spirv_GroupFMax on AMD, error message `Group algorithms are not
// supported on host device` on Nvidia.
// XFAIL: hip_amd || hip_nvidia
// `Group algorithms are not supported on host device` on Nvidia.
// XFAIL: hip_nvidia
//
// UNSUPPORTED: ze_debug-1,ze_debug4

// RUNx: %HOST_RUN_PLACEHOLDER %t.out
Expand Down
5 changes: 2 additions & 3 deletions SYCL/Reduction/reduction_nd_s0_dw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
//
// Missing __spirv_GroupIAdd, __spirv_GroupSMin, __spirv_GroupSMax on AMD, error
// message `Group algorithms are not supported on host device.` on HIP Nvidia.
// XFAIL: hip_amd || hip_nvidia
// `Group algorithms are not supported on host device.` on HIP Nvidia.
// XFAIL: hip_nvidia

// TODO: test disabled due to sporadic fails in level_zero:gpu RT.
// UNSUPPORTED: linux && level_zero
Expand Down
5 changes: 2 additions & 3 deletions SYCL/Reduction/reduction_nd_s0_rw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
//
// Missing __spirv_GroupIAdd, __spirv_GroupSMin, __spirv_GroupSMax on AMD, error
// message `Group algorithms are not supported on host device.` on Nvidia.
// XFAIL: hip_amd || hip_nvidia
// `Group algorithms are not supported on host device.` on Nvidia.
// XFAIL: hip_nvidia

// TODO: test disabled due to sporadic fails in level_zero:gpu RT.
// UNSUPPORTED: linux && level_zero
Expand Down
5 changes: 2 additions & 3 deletions SYCL/Reduction/reduction_nd_s1_dw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
//
// Missing __spirv_GroupIAdd, __spirv_GroupSMin, __spirv_GroupSMax on AMD, error
// message `Group algorithms are not supported on host device.` on Nvidia.
// XFAIL: hip_amd || hip_nvidia
// `Group algorithms are not supported on host device.` on Nvidia.
// XFAIL: hip_nvidia

// TODO: test disabled due to sporadic fails in level_zero:gpu RT.
// UNSUPPORTED: linux && level_zero
Expand Down
5 changes: 2 additions & 3 deletions SYCL/Reduction/reduction_nd_s1_rw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
//
// Missing __spirv_GroupIAdd, __spirv_GroupSMin, __spirv_GroupSMax on AMD, error
// message `Group algorithms are not supported on host device.` on Nvidia.
// XFAIL: hip_amd || hip_nvidia
// `Group algorithms are not supported on host device.` on Nvidia.
// XFAIL: hip_nvidia

// TODO: test disabled due to sporadic fails in level_zero:gpu RT.
// UNSUPPORTED: linux && level_zero
Expand Down
6 changes: 3 additions & 3 deletions SYCL/Reduction/reduction_placeholder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
//
// Missing __spirv_GroupIAdd, __spirv_GroupFMin on AMD, error message `Group
// algorithms are not supported on host device.` on Nvidia.
// XFAIL: hip_amd || hip_nvidia
// `Group algorithms are not supported on host device.` on Nvidia.
// XFAIL: hip_nvidia
//
// UNSUPPORTED: ze_debug-1,ze_debug4

// RUNx: %HOST_RUN_PLACEHOLDER %t.out
Expand Down
5 changes: 2 additions & 3 deletions SYCL/Reduction/reduction_queue_parallel_for.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
//
// Missing __spirv_GroupIAdd on AMD, error message `Group algorithms are not
// supported on host device.` on Nvidia.
// XFAIL: hip_amd || hip_nvidia
// `Group algorithms are not supported on host device.` on Nvidia.
// XFAIL: hip_nvidia

// TODO: test disabled due to sporadic fails in level_zero:gpu RT.
// UNSUPPORTED: linux && level_zero
Expand Down
5 changes: 2 additions & 3 deletions SYCL/Reduction/reduction_usm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
//
// Missing __spirv_GroupIAdd, __spirv_GroupFMin, __spirv_GroupFMax on AMD, error
// message `Group algorithms are not supported on host device.` on Nvidia.
// XFAIL: hip_amd || hip_nvidia
// `Group algorithms are not supported on host device.` on Nvidia.
// XFAIL: hip_nvidia

// TODO: test disabled due to sporadic fails in level_zero:gpu RT.
// UNSUPPORTED: linux && level_zero
Expand Down
5 changes: 2 additions & 3 deletions SYCL/Reduction/reduction_usm_dw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
// TODO: test disabled due to sporadic fails in level_zero:gpu RT.
// UNSUPPORTED: linux && level_zero
//
// Missing __spirv_GroupIAdd, __spirv_GroupFMin, __spirv_GroupFMax on AMD, error
// message `Group algorithms are not supported on host device` on Nvidia.
// XFAIL: hip_amd || hip_nvidia
// `Group algorithms are not supported on host device` on Nvidia.
// XFAIL: hip_nvidia

// This test performs basic checks of parallel_for(nd_range, reduction, func)
// with reductions initialized with USM var. It tests only SYCL-2020 reduction
Expand Down
2 changes: 0 additions & 2 deletions SYCL/SubGroup/broadcast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// XFAIL: hip_amd

//==--------- broadcast.cpp - SYCL sub_group broadcast test ----*- C++ -*---==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Expand Down
2 changes: 0 additions & 2 deletions SYCL/SubGroup/broadcast_fp16.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

// XFAIL: hip_amd

//==---- broadcast_fp16.cpp - SYCL sub_group broadcast test ----*- C++ -*---==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Expand Down
2 changes: 0 additions & 2 deletions SYCL/SubGroup/broadcast_fp64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// XFAIL: hip_amd

//==----- broadcast_fp64.cpp - SYCL sub_group broadcast test ----*- C++ -*--==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Expand Down
4 changes: 0 additions & 4 deletions SYCL/SubGroup/generic-shuffle.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
// UNSUPPORTED: hip_amd
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
//
// Missing __spirv_SubgroupShuffleINTEL, __spirv_SubgroupShuffleUpINTEL,
// __spirv_SubgroupShuffleDownINTEL, __spirv_SubgroupShuffleXorINTEL on AMD
//
//==-- generic_shuffle.cpp - SYCL sub_group generic shuffle test *- C++ -*--==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Expand Down
4 changes: 0 additions & 4 deletions SYCL/SubGroup/shuffle_fp64.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
// UNSUPPORTED: hip_amd
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
//
// Missing __spirv_SubgroupShuffleINTEL, __spirv_SubgroupShuffleUpINTEL,
// __spirv_SubgroupShuffleDownINTEL, __spirv_SubgroupShuffleXorINTEL on AMD
//
//==------- shuffle_fp64.cpp - SYCL sub_group shuffle test -----*- C++ -*---==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Expand Down

0 comments on commit b238ad2

Please sign in to comment.