Skip to content

Commit eadd7a7

Browse files
committed
Rework library loading test
1 parent 5aa6e41 commit eadd7a7

File tree

5 files changed

+16
-32
lines changed

5 files changed

+16
-32
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// REQUIRES: linux
2+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
3+
// RUN: env SYCL_PI_TRACE=-1 %t.out 2>&1 | FileCheck %s
4+
5+
// Checks pi traces on library loading
6+
#include <CL/sycl.hpp>
7+
8+
using namespace cl::sycl;
9+
10+
int main() {
11+
// CHECK: {{(SYCL_PI_TRACE\[-1\]: dlopen\(libpi_cuda.so\) failed with)|(SYCL_PI_TRACE\[basic\]: Plugin found and successfully loaded: libpi_cuda.so)}}
12+
// CHECK: {{(SYCL_PI_TRACE\[-1\]: dlopen\(libpi_hip.so\) failed with)|(SYCL_PI_TRACE\[basic\]: Plugin found and successfully loaded: libpi_hip.so)}}
13+
// CHECK: {{(SYCL_PI_TRACE\[-1\]: dlopen\(libpi_esimd_emulator.so\) failed with)|(SYCL_PI_TRACE\[basic\]: Plugin found and successfully loaded: libpi_esimd_emulator.so)}}
14+
queue q;
15+
q.submit([&](handler &cgh) {});
16+
}

sycl/test/basic_tests/library_loading/library_loading_cuda.cpp

Lines changed: 0 additions & 8 deletions
This file was deleted.

sycl/test/basic_tests/library_loading/library_loading_esimd.cpp

Lines changed: 0 additions & 8 deletions
This file was deleted.

sycl/test/basic_tests/library_loading/library_loading_hip.cpp

Lines changed: 0 additions & 8 deletions
This file was deleted.

sycl/test/basic_tests/library_loading/library_loading_impl.h

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)