Skip to content

Commit

Permalink
[SYCL][CUDA] Add fsycl-targets to LIT (#2009)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
bjoernknafla authored Jun 30, 2020
1 parent 0c9c9c0 commit 7c15695
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions sycl/test/basic_tests/vec_op.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// RUN: %clangxx -fsycl %s -o %t.out
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// XFAIL: cuda
//==------------ vec_op.cpp - SYCL vec operations basic test ---------------==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Expand Down
5 changes: 3 additions & 2 deletions sycl/test/built-ins/nan.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// RUN: %clangxx -fsycl %s -o %t.out
// RUN: %clangxx -fsycl -D HALF_IS_SUPPORTED %s -o %t_gpu.out
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -D HALF_IS_SUPPORTED %s -o %t_gpu.out
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t_gpu.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// XFAIL: cuda
// CUDA fails with: ptxas fatal : Unresolved extern function '_Z15__spirv_ocl_nanj'
#include <CL/sycl.hpp>

#include <cassert>
Expand Down

0 comments on commit 7c15695

Please sign in to comment.