Skip to content

Commit 0087296

Browse files
authored
[SYCL][E2E] Update test case to turn off unwanted DeviceAddressSanitizer invalid argument detection. (#16275)
Also, fix a leak caught by Device Address Sanitizer.
1 parent a1355e8 commit 0087296

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sycl/test-e2e/Adapters/interop-l0-direct.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
// REQUIRES: level_zero, level_zero_dev_kit
22
// UNSUPPORTED: ze_debug
3+
4+
// DeviceSanitizer will report error for cross context USM usage, turn it off
5+
// RUN: export UR_LAYER_ASAN_OPTIONS="detect_kernel_arguments:0"
6+
37
// RUN: %{build} %level_zero_options -o %t.out
48
// RUN: env SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=0 %{run} %t.out
59
// RUN: env SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1 %{run} %t.out
@@ -219,6 +223,9 @@ int main() {
219223
std::cout << "GPU Result from Immediate Q = {" << hostOut[0] << ", "
220224
<< hostOut[1] << ", " << hostOut[2] << "}" << std::endl;
221225
}
226+
227+
free(deviceData, InteropContext);
228+
222229
// Check results
223230
buffer<int, 1> bufDataResult{data, 3};
224231
host_accessor hostResult{bufDataResult, read_only};

0 commit comments

Comments
 (0)