Skip to content

Commit 4d1b175

Browse files
authored
[SYCL] Disable tests that use images on PVC platform (intel#1497)
* Disable tests that use images on PVC platform * Split one of tests into buffer and image versions
1 parent e3a7db8 commit 4d1b175

23 files changed

+89
-48
lines changed

SYCL/Basic/image/image.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// UNSUPPORTED: hip
1+
// UNSUPPORTED: hip || gpu-intel-pvc
22
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out

SYCL/Basic/image/image_accessor_range.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// FIXME: Investigate OS-agnostic failures
22
// REQUIRES: TEMPORARY_DISABLED
33

4-
// UNSUPPORTED: cuda || hip
4+
// UNSUPPORTED: cuda || hip || gpu-intel-pvc
55
// CUDA does not support SYCL 1.2.1 images.
66
//
77
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out

SYCL/Basic/image/image_accessor_readsampler.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// UNSUPPORTED: cuda || hip || (windows && level_zero)
1+
// UNSUPPORTED: cuda || hip || (windows && level_zero) || gpu-intel-pvc
22
// unsupported on windows (level-zero) due to fail of Jenkins/pre-ci-windows
33
// CUDA cannot support SYCL 1.2.1 images.
44
//
@@ -67,10 +67,10 @@ void checkReadSampler(char *host_ptr, s::sampler Sampler, s::cl_float4 Coord,
6767
s::accessor<s::cl_float4, 1, s::access::mode::write> ReadDataBufAcc(
6868
ReadDataBuf, cgh);
6969

70-
cgh.single_task<class kernel_class<i>>([=](){
71-
s::cl_float4 RetColor = ReadAcc.read(Coord, Sampler);
72-
ReadDataBufAcc[0] = RetColor;
73-
});
70+
cgh.single_task<class kernel_class<i>>([=]() {
71+
s::cl_float4 RetColor = ReadAcc.read(Coord, Sampler);
72+
ReadDataBufAcc[0] = RetColor;
73+
});
7474
});
7575
}
7676
validateReadData(ReadData, ExpectedColor, precision);

SYCL/Basic/image/image_accessor_readwrite.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// UNSUPPORTED: cuda || hip
1+
// UNSUPPORTED: cuda || hip || gpu-intel-pvc
22
// CUDA cannot support SYCL 1.2.1 images.
33
//
44
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
@@ -106,9 +106,9 @@ void write_type_order(char *HostPtr, const s::image_channel_order ImgOrder,
106106
s::queue Queue;
107107
Queue.submit([&](s::handler &cgh) {
108108
auto WriteAcc = Img.get_access<WriteDataT, s::access::mode::write>(cgh);
109-
cgh.single_task<class kernel_class<WriteDataT, static_cast<int>(ImgType), 0>>([=](){
110-
WriteAcc.write(Coord, Color);
111-
});
109+
cgh.single_task<
110+
class kernel_class<WriteDataT, static_cast<int>(ImgType), 0>>(
111+
[=]() { WriteAcc.write(Coord, Color); });
112112
});
113113
}
114114
}
@@ -129,10 +129,11 @@ void check_read_type_order(char *HostPtr, const s::image_channel_order ImgOrder,
129129
s::accessor<ReadDataT, 1, s::access::mode::write> ReadDataBufAcc(
130130
ReadDataBuf, cgh);
131131

132-
cgh.single_task<class kernel_class<ReadDataT, static_cast<int>(ImgType), 1>>([=](){
133-
ReadDataT RetColor = ReadAcc.read(Coord);
134-
ReadDataBufAcc[0] = RetColor;
135-
});
132+
cgh.single_task<
133+
class kernel_class<ReadDataT, static_cast<int>(ImgType), 1>>([=]() {
134+
ReadDataT RetColor = ReadAcc.read(Coord);
135+
ReadDataBufAcc[0] = RetColor;
136+
});
136137
});
137138
}
138139
check_read_data(ReadData, ExpectedColor);

SYCL/Basic/image/image_accessor_readwrite_half.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// UNSUPPORTED: cuda || hip
1+
// UNSUPPORTED: cuda || hip || gpu-intel-pvc
22
// CUDA cannot support SYCL 1.2.1 images.
33
//
44
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
@@ -73,9 +73,9 @@ void write_type_order(char *HostPtr, const s::image_channel_order ImgOrder,
7373
s::queue Queue;
7474
Queue.submit([&](s::handler &cgh) {
7575
auto WriteAcc = Img.get_access<WriteDataT, s::access::mode::write>(cgh);
76-
cgh.single_task<class kernel_class<WriteDataT, static_cast<int>(ImgType), 0>>([=](){
77-
WriteAcc.write(Coord, Color);
78-
});
76+
cgh.single_task<
77+
class kernel_class<WriteDataT, static_cast<int>(ImgType), 0>>(
78+
[=]() { WriteAcc.write(Coord, Color); });
7979
});
8080
}
8181
}
@@ -96,10 +96,11 @@ void check_read_type_order(char *HostPtr, const s::image_channel_order ImgOrder,
9696
s::accessor<ReadDataT, 1, s::access::mode::write> ReadDataBufAcc(
9797
ReadDataBuf, cgh);
9898

99-
cgh.single_task<class kernel_class<ReadDataT, static_cast<int>(ImgType), 1>>([=](){
100-
ReadDataT RetColor = ReadAcc.read(Coord);
101-
ReadDataBufAcc[0] = RetColor;
102-
});
99+
cgh.single_task<
100+
class kernel_class<ReadDataT, static_cast<int>(ImgType), 1>>([=]() {
101+
ReadDataT RetColor = ReadAcc.read(Coord);
102+
ReadDataBufAcc[0] = RetColor;
103+
});
103104
});
104105
}
105106
check_read_data(ReadData, ExpectedColor);

SYCL/Basic/image/image_max_size.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %CPU_RUN_PLACEHOLDER %t.out
33
// RUN: %GPU_RUN_PLACEHOLDER %t.out
44

5-
// UNSUPPORTED: cuda || hip || (windows && opencl && gpu)
5+
// UNSUPPORTED: cuda || hip || (windows && opencl && gpu) || gpu-intel-pvc
66
// CUDA does not support info::device::image3d_max_width query.
77
// TODO: Irregular runtime fails on Windows/opencl:gpu require analysis.
88

SYCL/Basic/image/image_read.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// UNSUPPORTED: hip
1+
// UNSUPPORTED: hip || gpu-intel-pvc
22
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out

SYCL/Basic/image/image_read_fp16.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// UNSUPPORTED: hip
1+
// UNSUPPORTED: hip || gpu-intel-pvc
22
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out

SYCL/Basic/image/image_sample.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %CPU_RUN_PLACEHOLDER %t.out
33
// RUN: %GPU_RUN_PLACEHOLDER %t.out
44
// Temporarily disable test on Windows due to regressions in GPU driver.
5-
// UNSUPPORTED: hip, windows
5+
// UNSUPPORTED: hip, windows, gpu-intel-pvc
66

77
#include <sycl/sycl.hpp>
88

SYCL/Basic/image/image_write.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %CPU_RUN_PLACEHOLDER %t.out
33
// RUN: %GPU_RUN_PLACEHOLDER %t.out
44

5-
// UNSUPPORTED: cuda || hip
5+
// UNSUPPORTED: cuda || hip || gpu-intel-pvc
66
// TODO: re-enable on cuda device.
77
// See https://github.com/intel/llvm/issues/1542#issuecomment-707877817 for more
88
// details.

0 commit comments

Comments
 (0)