Skip to content

Commit 5aa6e41

Browse files
committed
Split library loading test into three for different backends
1 parent 27d315c commit 5aa6e41

File tree

5 files changed

+32
-16
lines changed

5 files changed

+32
-16
lines changed

sycl/test/basic_tests/library_loading.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// REQUIRES: linux
2+
// UNSUPPORTED: cuda
3+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4+
// RUN: env SYCL_PI_TRACE=-1 %t.out 2>&1 | FileCheck %s
5+
6+
// Checks pi traces when libpi_cuda is not present
7+
#include "library_loading_impl.h"
8+
// CHECK: SYCL_PI_TRACE[-1]: dlopen(libpi_cuda.so) failed with <libpi_cuda.so: cannot open shared object file: No such file or directory>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// REQUIRES: linux
2+
// UNSUPPORTED: esimd_emulator_be
3+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4+
// RUN: env SYCL_PI_TRACE=-1 %t.out 2>&1 | FileCheck %s
5+
6+
// Checks pi traces when libpi_esimd_emulator is not present
7+
#include "library_loading_impl.h"
8+
// CHECK: SYCL_PI_TRACE[-1]: dlopen(libpi_esimd_emulator.so) failed with <libpi_esimd_emulator.so: cannot open shared object file: No such file or directory>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// REQUIRES: linux
2+
// UNSUPPORTED: hip_be
3+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4+
// RUN: env SYCL_PI_TRACE=-1 %t.out 2>&1 | FileCheck %s
5+
6+
// Checks pi traces when libpi_hip is not present
7+
#include "library_loading_impl.h"
8+
// CHECK: SYCL_PI_TRACE[-1]: dlopen(libpi_hip.so) failed with <libpi_hip.so: cannot open shared object file: No such file or directory>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#include <CL/sycl.hpp>
2+
3+
using namespace cl::sycl;
4+
5+
int main() {
6+
queue q;
7+
q.submit([&](handler &cgh) {});
8+
}

0 commit comments

Comments
 (0)