Skip to content

Commit 9a97ca9

Browse files
authored
[SYCL] Remove uses of unimplemented SYCL_PREFER_UR env var. (#16213)
Also remove the documentation for same. Since the PI port this env var no longer does anything.
1 parent d258210 commit 9a97ca9

15 files changed

+32
-33
lines changed

sycl/doc/EnvironmentVariables.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ variables in production code.</span>
196196

197197
| Environment variable | Values | Description |
198198
| -------------------- | ------ | ----------- |
199-
| `SYCL_PREFER_UR` | Integer | If non-0 then run through Unified Runtime if desired backend is supported there. Default is 0. |
200199
| `SYCL_UR_TRACE` | Integer | Described [below](#sycl_ur_trace-options) | Enable specified level of tracing for UR. |
201200
| `SYCL_QUEUE_THREAD_POOL_SIZE` | Positive integer | Number of threads in thread pool of queue. |
202201
| `SYCL_DEVICELIB_NO_FALLBACK` | Any(\*) | Disable loading and linking of device library images |

sycl/test-e2e/AddressSanitizer/invalid-argument/bad-context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// REQUIRES: linux, cpu && (gpu && level_zero)
22
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O2 -g -o %t
3-
// RUN: env SYCL_PREFER_UR=1 UR_LAYER_ASAN_OPTIONS="detect_kernel_arguments:1" %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
3+
// RUN: env UR_LAYER_ASAN_OPTIONS="detect_kernel_arguments:1" %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
44

55
#include <sycl/detail/core.hpp>
66

sycl/test-e2e/AddressSanitizer/invalid-argument/host-pointer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// REQUIRES: linux, cpu || (gpu && level_zero)
22
// RUN: %{build} %device_asan_flags -O2 -g -o %t
3-
// RUN: env SYCL_PREFER_UR=1 UR_LAYER_ASAN_OPTIONS="detect_kernel_arguments:1" %{run} %if gpu %{ not %} %t 2>&1 | FileCheck --check-prefixes %if cpu %{ CHECK-CPU %} %if gpu %{ CHECK-GPU %} %s
3+
// RUN: env UR_LAYER_ASAN_OPTIONS="detect_kernel_arguments:1" %{run} %if gpu %{ not %} %t 2>&1 | FileCheck --check-prefixes %if cpu %{ CHECK-CPU %} %if gpu %{ CHECK-GPU %} %s
44

55
#include <sycl/detail/core.hpp>
66
#include <sycl/usm.hpp>

sycl/test-e2e/AddressSanitizer/invalid-argument/out-of-bounds.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// REQUIRES: linux, cpu || (gpu && level_zero)
22
// RUN: %{build} %device_asan_flags -O2 -g -o %t
3-
// RUN: env SYCL_PREFER_UR=1 UR_LAYER_ASAN_OPTIONS="detect_kernel_arguments:1" %{run} not %t 2>&1 | FileCheck %s
3+
// RUN: env UR_LAYER_ASAN_OPTIONS="detect_kernel_arguments:1" %{run} not %t 2>&1 | FileCheck %s
44

55
#include <sycl/detail/core.hpp>
66

sycl/test-e2e/AddressSanitizer/invalid-argument/released-pointer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// REQUIRES: linux, cpu || (gpu && level_zero)
22
// RUN: %{build} %device_asan_flags -O2 -g -o %t
3-
// RUN: env SYCL_PREFER_UR=1 UR_LAYER_ASAN_OPTIONS="quarantine_size_mb:1;detect_kernel_arguments:1" %{run} not %t 2>&1 | FileCheck %s
3+
// RUN: env UR_LAYER_ASAN_OPTIONS="quarantine_size_mb:1;detect_kernel_arguments:1" %{run} not %t 2>&1 | FileCheck %s
44

55
#include <sycl/detail/core.hpp>
66

sycl/test-e2e/AddressSanitizer/misaligned/misalign-int.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// REQUIRES: linux, cpu || (gpu && level_zero)
22
// RUN: %{build} %device_asan_flags -O0 -g -o %t1.out
3-
// RUN: env SYCL_PREFER_UR=1 %{run} not %t1.out 2>&1 | FileCheck %s
3+
// RUN: %{run} not %t1.out 2>&1 | FileCheck %s
44
// RUN: %{build} %device_asan_flags -O1 -g -o %t2.out
5-
// RUN: env SYCL_PREFER_UR=1 %{run} not %t2.out 2>&1 | FileCheck %s
5+
// RUN: %{run} not %t2.out 2>&1 | FileCheck %s
66
// RUN: %{build} %device_asan_flags -O2 -g -o %t3.out
7-
// RUN: env SYCL_PREFER_UR=1 %{run} not %t3.out 2>&1 | FileCheck %s
7+
// RUN: %{run} not %t3.out 2>&1 | FileCheck %s
88
#include <sycl/detail/core.hpp>
99
#include <sycl/usm.hpp>
1010

sycl/test-e2e/AddressSanitizer/misaligned/misalign-long.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// REQUIRES: linux, cpu || (gpu && level_zero)
22
// RUN: %{build} %device_asan_flags -O0 -g -o %t1.out
3-
// RUN: env SYCL_PREFER_UR=1 %{run} not %t1.out 2>&1 | FileCheck %s
3+
// RUN: %{run} not %t1.out 2>&1 | FileCheck %s
44
// RUN: %{build} %device_asan_flags -O1 -g -o %t2.out
5-
// RUN: env SYCL_PREFER_UR=1 %{run} not %t2.out 2>&1 | FileCheck %s
5+
// RUN: %{run} not %t2.out 2>&1 | FileCheck %s
66
// RUN: %{build} %device_asan_flags -O2 -g -o %t3.out
7-
// RUN: env SYCL_PREFER_UR=1 %{run} not %t3.out 2>&1 | FileCheck %s
7+
// RUN: %{run} not %t3.out 2>&1 | FileCheck %s
88
#include <sycl/detail/core.hpp>
99
#include <sycl/usm.hpp>
1010

sycl/test-e2e/AddressSanitizer/misaligned/misalign-short.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// REQUIRES: linux, cpu || (gpu && level_zero)
22
// RUN: %{build} %device_asan_flags -O0 -g -o %t1.out
3-
// RUN: env SYCL_PREFER_UR=1 %{run} not %t1.out 2>&1 | FileCheck %s
3+
// RUN: %{run} not %t1.out 2>&1 | FileCheck %s
44
// RUN: %{build} %device_asan_flags -O1 -g -o %t2.out
5-
// RUN: env SYCL_PREFER_UR=1 %{run} not %t2.out 2>&1 | FileCheck %s
5+
// RUN: %{run} not %t2.out 2>&1 | FileCheck %s
66
// RUN: %{build} %device_asan_flags -O2 -g -o %t3.out
7-
// RUN: env SYCL_PREFER_UR=1 %{run} not %t3.out 2>&1 | FileCheck %s
7+
// RUN: %{run} not %t3.out 2>&1 | FileCheck %s
88
#include <sycl/detail/core.hpp>
99
#include <sycl/usm.hpp>
1010

sycl/test-e2e/AddressSanitizer/multiple-reports/multiple_kernels.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// REQUIRES: linux, cpu || (gpu && level_zero)
22
// RUN: %{build} %device_asan_flags -Xarch_device -fsanitize-recover=address -O2 -g -o %t
3-
// RUN: env SYCL_PREFER_UR=1 %{run} %t 2>&1 | FileCheck %s
3+
// RUN: %{run} %t 2>&1 | FileCheck %s
44

55
#include <sycl/detail/core.hpp>
66
#include <sycl/usm.hpp>

sycl/test-e2e/AddressSanitizer/multiple-reports/one_kernel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// REQUIRES: linux, cpu || (gpu && level_zero)
22
// RUN: %{build} %device_asan_flags -Xarch_device -fsanitize-recover=address -O2 -g -o %t
3-
// RUN: env SYCL_PREFER_UR=1 %{run} %t 2>&1 | FileCheck %s
3+
// RUN: %{run} %t 2>&1 | FileCheck %s
44

55
#include <sycl/detail/core.hpp>
66
#include <sycl/usm.hpp>

0 commit comments

Comments
 (0)