Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 5bbca4b

Browse files
author
Sergey Kanaev
committed
Address review comments
Signed-off-by: Sergey Kanaev <[email protected]>
1 parent 075373c commit 5bbca4b

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

SYCL/AOT/multiple-devices.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// REQUIRES: opencl-aot, ocloc, aoc, cpu, gpu, accelerator
9+
// REQUIRES: opencl-aot, ocloc, aoc, cpu, gpu, accelerator, llvm-link, llvm-spirv
1010
// UNSUPPORTED: cuda
1111
// CUDA is not compatible with SPIR.
1212

@@ -18,7 +18,7 @@
1818
// RUN: %GPU_RUN_PLACEHOLDER %t_all.out
1919
// RUN: %ACC_RUN_PLACEHOLDER %t_all.out
2020

21-
// FIXME: Change the behaviour when proper automaton for assert support is
21+
// FIXME: Change the behavior when proper automaton for assert support is
2222
// introduced
2323
// Produce object file, spirv, device images to combine these differently
2424
// at link-time, thus testing various AOT-compiled images configurations
@@ -27,10 +27,10 @@
2727
// AOT-compile device binary images
2828
// Neither of AOT tools can compile several files, hence, here is this
2929
// workaround
30-
// RUN: %LLVM_SPIRV -r %sycl_libs_dir/libsycl-fallback-cassert.spv -o=%T/fallback-cassert.bc
31-
// RUN: %LLVM_SPIRV -r %t.spv -o=%t.bc
32-
// RUN: %LLVM_LINK %t.bc %T/fallback-cassert.bc -o=%t2.bc
33-
// RUN: %LLVM_SPIRV %t2.bc -o=%t.spv
30+
// RUN: %llvm_spirv -r %sycl_libs_dir/libsycl-fallback-cassert.spv -o=%T/fallback-cassert.bc
31+
// RUN: %llvm_spirv -r %t.spv -o=%t.bc
32+
// RUN: %llvm_link %t.bc %T/fallback-cassert.bc -o=%t2.bc
33+
// RUN: %llvm_spirv %t2.bc -o=%t.spv
3434
// RUN: opencl-aot %t.spv -o=%t_cpu.ir --device=cpu
3535
// RUN: ocloc -file %t.spv -spirv_input -output %t_gen.out -output_no_suffix -device cfl
3636
// RUN: aoc %t.spv -o %t_fpga.aocx -sycl -dep-files=%t.d

SYCL/lit.cfg.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,16 @@
284284
llvm_spirv_path = find_executable("llvm-spirv")
285285
if llvm_spirv_path:
286286
lit_config.note("Found llvm-spirv")
287-
config.substitutions.append( ('%LLVM_SPIRV', os.path.realpath(llvm_spirv_path)) )
287+
config.available_features.add('llvm-spirv')
288+
config.substitutions.append( ('%llvm_spirv', os.path.realpath(llvm_spirv_path)) )
288289
else:
289290
lit_config.warning("Can't find llvm-spirv")
290291

291292
llvm_link_path = find_executable("llvm-link")
292293
if llvm_link_path:
293294
lit_config.note("Found llvm-link")
294-
config.substitutions.append( ('%LLVM_LINK', os.path.realpath(llvm_link_path)) )
295+
config.available_features.add('llvm-link')
296+
config.substitutions.append( ('%llvm_link', os.path.realpath(llvm_link_path)) )
295297
else:
296298
lit_config.warning("Can't find llvm-link")
297299

0 commit comments

Comments
 (0)