Skip to content

Commit ca0008f

Browse files
cperkinsintelbb-sycl
authored andcommitted
[SYCL] Tests for win_proxy_loader (intel#1465)
Tests to verify win_proxy_loader keeps plugin DLLs from unloading until after piTearDown is complete.
1 parent be47ae7 commit ca0008f

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

SYCL/Basic/buffer/buffer_release.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// UNSUPPORTED: windows
2+
// DeferredMemory Destruction not presently supported on Windows.
3+
14
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
25
// RUN: %CPU_RUN_PLACEHOLDER %t.out
36

SYCL/Plugin/dll-detach-order.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// REQUIRES: windows
2+
// RUN: env SYCL_PI_TRACE=2 sycl-ls | FileCheck %s
3+
4+
// ensure that the plugins are detached AFTER piTearDown is done executing
5+
6+
// CHECK: ---> DLL_PROCESS_DETACH syclx.dll
7+
// CHECK: ---> piTearDown(
8+
9+
// whatever plugin THIS is
10+
// CHECK: ---> DLL_PROCESS_DETACH
11+
12+
// CHECK: ---> DLL_PROCESS_DETACH win_proxy_loader.dll

SYCL/Plugin/pi-teardown.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// ensure that piTearDown is called
2+
3+
// RUN: env SYCL_PI_TRACE=2 sycl-ls | FileCheck %s
4+
// CHECK: ---> piTearDown

0 commit comments

Comments
 (0)