From 20ffbca76c9b036ed1f85764ff68f5f037be1b5e Mon Sep 17 00:00:00 2001 From: Bjoern Knafla Date: Tue, 9 Jun 2020 17:06:14 +0100 Subject: [PATCH] [SYCL][CUDA] LIT SPIR-V test unsupported Mark a LIT test that checks for SPIR-V specific trace output as unsupported by CUDA as the CUDA plugin does not support SPIR-V. Signed-off-by: Bjoern Knafla --- sycl/test/scheduler/ReleaseResourcesTest.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sycl/test/scheduler/ReleaseResourcesTest.cpp b/sycl/test/scheduler/ReleaseResourcesTest.cpp index b7ced5c5e59b8..0d7cf3a721249 100644 --- a/sycl/test/scheduler/ReleaseResourcesTest.cpp +++ b/sycl/test/scheduler/ReleaseResourcesTest.cpp @@ -1,13 +1,14 @@ +// UNSUPPORTED: cuda +// CUDA does not support SPIR-V and the runtime therefore does not emit +// `---> piProgramCreate` but `--->piclProgramCreateWithBinary` which fails +// the otherwise passing test. +// // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -I %sycl_source_dir %s -o %t.out // RUN: env SYCL_DEVICE_TYPE=HOST %t.out // RUN: env SYCL_PI_TRACE=2 %CPU_RUN_PLACEHOLDER %t.out 2>&1 %CPU_CHECK_PLACEHOLDER // RUN: env SYCL_PI_TRACE=2 %GPU_RUN_PLACEHOLDER %t.out 2>&1 %GPU_CHECK_PLACEHOLDER // RUN: env SYCL_PI_TRACE=2 %ACC_RUN_PLACEHOLDER %t.out 2>&1 %ACC_CHECK_PLACEHOLDER -// TODO: error: expected string not found in input -// TODO: PI ---> pi::piProgramCreate(Context, Data, DataLen, &Program) -// XFAIL: cuda - //==------------------- ReleaseResourcesTests.cpp --------------------------==// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.