Skip to content

Commit 79dd590

Browse files
authored
[SYCLomatic #2289] Update the test cases according to updated create_image(). (#780)
Signed-off-by: Chen, Sheng S <[email protected]>
1 parent c7b1bcd commit 79dd590

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

help_function/image_array/image_array.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ int main() {
7373
}
7474
{
7575
sycl::buffer<sycl::float4, 1> buf(d, sycl::range<1>(32));
76+
tex43.create_image();
77+
static_cast<dpct::image_wrapper<sycl::float4, 2, true> *>(tex42)->create_image();
7678
dpct::get_default_queue().submit([&](sycl::handler &cgh) {
7779
auto acc42 = tex43.get_access(cgh);
7880
auto acc21 = static_cast<dpct::image_wrapper<sycl::float4, 2, true> *>(tex42)->get_access(cgh);

help_function/src/image_image_wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ int main() {
5353

5454
// test_feature:attach(image_matrix *, image_channel)
5555
tex43.attach(array3, chn1);
56-
56+
tex43.create_image();
5757
dpct::get_default_queue().submit([&](sycl::handler &cgh) {
5858
// test_feature:get_access
5959
tex43.get_access(cgh);

help_function/src/image_wrapper.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ int main() {
9999
}
100100
{
101101
sycl::buffer<sycl::float4, 1> buf(d, sycl::range<1>(32));
102+
tex42.create_image();
103+
tex43.create_image();
104+
static_cast<dpct::image_wrapper<sycl::int4, 1> *>(tex41)->create_image();
102105
dpct::get_default_queue().submit([&](sycl::handler &cgh) {
103106
auto acc42 = tex42.get_access(cgh);
104107
auto acc13 = tex43.get_access(cgh);

help_function/src/image_wrapper_usm.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ int main() {
9191
}
9292
{
9393
sycl::buffer<sycl::float4, 1> buf(d, sycl::range<1>(32));
94+
tex42.create_image();
95+
tex43.create_image();
96+
static_cast<dpct::image_wrapper<sycl::float4, 1> *>(tex41)->create_image();
9497
dpct::get_default_queue().submit([&](sycl::handler &cgh) {
9598
auto acc42 = tex42.get_access(cgh);
9699
auto acc13 = tex43.get_access(cgh);

0 commit comments

Comments
 (0)