Skip to content

Commit d5494f9

Browse files
[SYCL][Test E2E] Use %{build}/%{run} in Sampler tests (#9323)
1 parent 4430313 commit d5494f9

18 files changed

+36
-54
lines changed

sycl/test-e2e/Sampler/basic-rw-float.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
22
// UNSUPPORTED: hip
3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
65

76
#include "common.hpp"
87
#include <sycl/sycl.hpp>

sycl/test-e2e/Sampler/basic-rw.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
22
// UNSUPPORTED: hip
3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
65

76
/*
87
This file sets up an image, initializes it with data, and verifies that the

sycl/test-e2e/Sampler/normalized-clamp-linear-float.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
22
// UNSUPPORTED: hip, cuda
3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
65

76
// CUDA works with image_channel_type::fp32, but not with any 8-bit per channel
87
// type (such as unorm_int8)

sycl/test-e2e/Sampler/normalized-clamp-nearest.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
22
// UNSUPPORTED: hip
3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
65

76
/*
87
This file sets up an image, initializes it with data,

sycl/test-e2e/Sampler/normalized-clampedge-linear-float.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
22
// UNSUPPORTED: cuda
3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
65
// XFAIL: hip
76

87
// CUDA works with image_channel_type::fp32, but not with any 8-bit per channel

sycl/test-e2e/Sampler/normalized-clampedge-nearest.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
2-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
3-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
2+
// RUN: %{build} -o %t.out
3+
// RUN: %{run} %t.out
54
//
65
// Missing __spirv_ImageWrite, __spirv_SampledImage,
76
// __spirv_ImageSampleExplicitLod on AMD

sycl/test-e2e/Sampler/normalized-mirror-linear-float.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
22
// UNSUPPORTED: hip, cuda
3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
65

76
// CUDA works with image_channel_type::fp32, but not with any 8-bit per channel
87
// type (such as unorm_int8)

sycl/test-e2e/Sampler/normalized-mirror-nearest.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
22
// UNSUPPORTED: hip, cuda
3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
65

76
// CUDA is not handling repeat or mirror correctly with normalized coordinates.
87
// Waiting on a fix.

sycl/test-e2e/Sampler/normalized-none-linear-float.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
22
// UNSUPPORTED: hip, cuda
3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
65

76
// CUDA works with image_channel_type::fp32, but not with any 8-bit per channel
87
// type (such as unorm_int8)

sycl/test-e2e/Sampler/normalized-none-nearest.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
22
// UNSUPPORTED: hip
3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
65

76
/*
87
This file sets up an image, initializes it with data,

sycl/test-e2e/Sampler/normalized-repeat-linear-float.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
22
// UNSUPPORTED: hip, cuda
3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
65

76
// CUDA works with image_channel_type::fp32, but not with any 8-bit per channel
87
// type (such as unorm_int8)

sycl/test-e2e/Sampler/normalized-repeat-nearest.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
22
// UNSUPPORTED: hip, cuda
3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
65

76
// CUDA is not handling repeat or mirror correctly with normalized coordinates.
87
// Waiting on a fix.

sycl/test-e2e/Sampler/unnormalized-clamp-linear-float.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
22
// UNSUPPORTED: hip, cuda
3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
65

76
// CUDA works with image_channel_type::fp32, but not with any 8-bit per channel
87
// type (such as unorm_int8)

sycl/test-e2e/Sampler/unnormalized-clamp-nearest.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
22
// UNSUPPORTED: hip
3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
65

76
/*
87
This file sets up an image, initializes it with data,

sycl/test-e2e/Sampler/unnormalized-clampedge-linear-float.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
22
// UNSUPPORTED: hip, cuda
3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
65

76
// CUDA works with image_channel_type::fp32, but not with any 8-bit per channel
87
// type (such as unorm_int8)

sycl/test-e2e/Sampler/unnormalized-clampedge-nearest.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
22
// UNSUPPORTED: hip
3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
65

76
/*
87
This file sets up an image, initializes it with data,

sycl/test-e2e/Sampler/unnormalized-none-linear-float.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
22
// UNSUPPORTED: hip, cuda
3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
65

76
// CUDA works with image_channel_type::fp32, but not with any 8-bit per channel
87
// type (such as unorm_int8)

sycl/test-e2e/Sampler/unnormalized-none-nearest.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
22
// UNSUPPORTED: hip
3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
65

76
/*
87
This file sets up an image, initializes it with data,

0 commit comments

Comments
 (0)