Skip to content

Commit 0a2938b

Browse files
[SYCL][NFC] Silence deprecated API warnings in tests (#11928)
Some tests check APIs which are deprecated and it is by design, because those APIs should still work. However, they produce a lot of noise by deprecation warnings. Added corresponding macro to some of E2E tests to silence those warnings.
1 parent 317c6fd commit 0a2938b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %{build} -o %t.out
1+
// RUN: %{build} -DSYCL2020_DISABLE_DEPRECATION_WARNINGS -o %t.out
22
// RUN: %{run} %t.out
33

44
//==----------------accessor.cpp - SYCL accessor basic test ----------------==//

sycl/test-e2e/Basic/multi_ptr_legacy.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// RUN: %{build} -fsycl-dead-args-optimization -o %t.out
1+
// RUN: %{build} -fsycl-dead-args-optimization -DSYCL2020_DISABLE_DEPRECATION_WARNINGS -o %t.out
22
// RUN: %{run} %t.out
3-
// RUN: %{build} -DRESTRICT_WRITE_ACCESS_TO_CONSTANT_PTR -fsycl-dead-args-optimization -o %t1.out
3+
// RUN: %{build} -DRESTRICT_WRITE_ACCESS_TO_CONSTANT_PTR -fsycl-dead-args-optimization -DSYCL2020_DISABLE_DEPRECATION_WARNINGS -o %t1.out
44
// RUN: %{run} %t1.out
55

66
//==-------- multi_ptr_legacy.cpp - SYCL multi_ptr legacy test -------------==//

sycl/test-e2e/Basic/parallel_for_offset_integral_t.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// RUN: %{build} -DLAMBDA_KERNEL=1 -o %t1.out
1+
// RUN: %{build} -DLAMBDA_KERNEL=1 -DSYCL2020_DISABLE_DEPRECATION_WARNINGS -o %t1.out
22
// RUN: %{run} %t1.out
3-
// RUN: %{build} -DLAMBDA_KERNEL=0 -o %t2.out
3+
// RUN: %{build} -DLAMBDA_KERNEL=0 -DSYCL2020_DISABLE_DEPRECATION_WARNINGS -o %t2.out
44
// RUN: %{run} %t2.out
55

66
#include <sycl/sycl.hpp>

sycl/test-e2e/Basic/vector_operators.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out
1+
// RUN: %{build} -fsycl-device-code-split=per_kernel -DSYCL2020_DISABLE_DEPRECATION_WARNINGS -o %t.out
22
// RUN: %{run} %t.out
33

44
//==---------- vector_operators.cpp - SYCL vec<> operators test ------------==//

0 commit comments

Comments
 (0)