Skip to content

Commit b0f9bed

Browse files
authored
[SYCL][HIP] Disable legacy images on HIP (#17296)
Legacy image support for HIP was initially hidden behind an environment variable as it's not really supported, bindless images should be used instead. But after looking a bit closer at the existing support, it's pretty much entirely broken, almost none of our existing legacy images tests even compile for AMD. So this patch fully disables the legacy images for HIP and cleans up all the related `UNSUPPORTED`, in a lot of cases `target-amd` had to be kept since the `build-only` mode doesn't know about the device aspects. It also cleans up existing `UNSUPPORTED` tags for `cuda` in the same tests.
1 parent b2f9dab commit b0f9bed

40 files changed

+68
-126
lines changed

sycl/test-e2e/Adapters/enqueue-arg-order-image.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
22
// UNSUPPORTED: target-amd
3+
// UNSUPPORTED-INTENDED: Legacy images aren't supported on AMD, but also fail
4+
// to compile. Bindless images should be used instead.
35

46
// spir-v gen for legacy images at O0 not working
57
// UNSUPPORTED: O0

sycl/test-e2e/Basic/image/image.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
2-
// UNSUPPORTED: target-amd
32
// RUN: %{build} -o %t.out
43
// RUN: %{run} %t.out
54

sycl/test-e2e/Basic/image/image_accessor_range.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
// FIXME: Investigate OS-agnostic failures
33
// UNSUPPORTED: true
44

5-
// UNSUPPORTED: cuda || hip
6-
// CUDA does not support SYCL 1.2.1 images.
5+
// UNSUPPORTED: cuda
6+
// UNSUPPORTED-INTENDED: CUDA doesn't fully support SYCL 1.2.1 images. Bindless
7+
// images should be used instead.
78
//
89
// RUN: %{build} -o %t.out
910
// RUN: %{run} %t.out

sycl/test-e2e/Basic/image/image_accessor_readsampler.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
2-
// UNSUPPORTED: cuda || target-amd
3-
// CUDA cannot support SYCL 1.2.1 images.
2+
// UNSUPPORTED: cuda
3+
// UNSUPPORTED-INTENDED: CUDA doesn't fully support SYCL 1.2.1 images. Bindless
4+
// images should be used instead.
45
//
56
// RUN: %{build} -o %t.out
67
// RUN: %{run} %t.out

sycl/test-e2e/Basic/image/image_accessor_readwrite.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
2-
// UNSUPPORTED: cuda || target-amd
3-
// CUDA cannot support SYCL 1.2.1 images.
2+
// UNSUPPORTED: cuda
3+
// UNSUPPORTED-INTENDED: CUDA doesn't fully support SYCL 1.2.1 images. Bindless
4+
// images should be used instead.
45
//
56
// RUN: %{build} -o %t.out
67
// RUN: %{run} %t.out

sycl/test-e2e/Basic/image/image_accessor_readwrite_half.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// REQUIRES: aspect-fp16, aspect-ext_intel_legacy_image
22

3-
// UNSUPPORTED: cuda, target-amd
4-
// CUDA cannot support SYCL 1.2.1 images.
3+
// UNSUPPORTED: cuda
4+
// UNSUPPORTED-INTENDED: CUDA doesn't fully support SYCL 1.2.1 images. Bindless
5+
// images should be used instead.
56

67
// RUN: %{build} -o %t.out
78
// RUN: %{run} %t.out

sycl/test-e2e/Basic/image/image_array.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
2-
// UNSUPPORTED: target-amd
32
//
43
// RUN: %{build} -o %t.out
54
// RUN: %{run} %t.out

sycl/test-e2e/Basic/image/image_max_size.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
// RUN: %{build} -o %t.out
33
// RUN: %{run} %t.out
44

5-
// UNSUPPORTED: cuda || target-amd
6-
// CUDA does not support info::device::image3d_max_width query.
5+
// UNSUPPORTED: cuda
6+
// UNSUPPORTED-INTENDED: CUDA does not support info::device::image3d_max_width
7+
// query. Bindless images should be used instead.
78

89
// The test checks that 'image' with max allowed sizes is handled correctly.
910

sycl/test-e2e/Basic/image/image_read.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
2-
// UNSUPPORTED: target-amd
32
// Temporarily add explicit '-O2' to avoid GPU hang issue with O0 optimization.
43
// RUN: %{build} -O2 -o %t.out
54
// RUN: %{run} %t.out

sycl/test-e2e/Basic/image/image_read_fp16.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// REQUIRES: aspect-fp16, aspect-ext_intel_legacy_image
22

3-
// UNSUPPORTED: target-amd
4-
53
// Temporarily add explicit '-O2' to avoid GPU hang issue with O0 optimization.
64
// RUN: %{build} -O2 -o %t.out
75
// RUN: %{run} %t.out

0 commit comments

Comments
 (0)