Skip to content

Commit 7c15695

Browse files
authored
[SYCL][CUDA] Add fsycl-targets to LIT (#2009)
Add missing `-fsycl-targets=%sycl_triple` to more LIT tests. This fixes one test for CUDA and prepares another to be looked into. Signed-off-by: Bjoern Knafla <[email protected]>
1 parent 0c9c9c0 commit 7c15695

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sycl/test/basic_tests/vec_op.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
// RUN: %clangxx -fsycl %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
22
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55
// RUN: %ACC_RUN_PLACEHOLDER %t.out
6-
// XFAIL: cuda
76
//==------------ vec_op.cpp - SYCL vec operations basic test ---------------==//
87
//
98
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/built-ins/nan.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
// RUN: %clangxx -fsycl %s -o %t.out
2-
// RUN: %clangxx -fsycl -D HALF_IS_SUPPORTED %s -o %t_gpu.out
1+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -D HALF_IS_SUPPORTED %s -o %t_gpu.out
33
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
44
// RUN: %CPU_RUN_PLACEHOLDER %t.out
55
// RUN: %GPU_RUN_PLACEHOLDER %t_gpu.out
66
// RUN: %ACC_RUN_PLACEHOLDER %t.out
77
// XFAIL: cuda
8+
// CUDA fails with: ptxas fatal : Unresolved extern function '_Z15__spirv_ocl_nanj'
89
#include <CL/sycl.hpp>
910

1011
#include <cassert>

0 commit comments

Comments
 (0)