This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +18
-8
lines changed Expand file tree Collapse file tree 4 files changed +18
-8
lines changed Original file line number Diff line number Diff line change 19
19
// RUN: %ACC_RUN_PLACEHOLDER %t_all.out
20
20
21
21
// FIXME: Change the behavior when proper automation for assert support is
22
- // introduced
22
+ // introduced. For the time being, AOT flow can't detect if specific extension
23
+ // is available for this or that device. The automation to be introduced is to
24
+ // query native binary generator on specific features.
25
+ //
23
26
// Produce object file, spirv, device images to combine these differently
24
27
// at link-time, thus testing various AOT-compiled images configurations
25
28
// RUN: %clangxx -fsycl %S/Inputs/aot.cpp -c -o %t.o
Original file line number Diff line number Diff line change 2
2
// driver
3
3
// UNSUPPORTED: cuda
4
4
// CUDA does not support SPIR-V.
5
- // FIXME Disabled fallback assert as it'll require either online linking or
6
- // explicit offline linking step here
7
- // RUN: %clangxx -DSYCL_DISABLE_FALLBACK_ASSERT -fsycl-device-only -Xclang -fenable-sycl-dae -Xclang -fsycl-int-header=int_header.h %s -c -o device_code.bc -Wno-sycl-strict
8
- // RUN: %clangxx -DSYCL_DISABLE_FALLBACK_ASSERT %cxx_std_optionc++17 %include_option int_header.h %debug_option -c %s -o host_code.o %sycl_options -Wno-sycl-strict
9
- // RUN: llvm-link -o=linked_device_code.bc device_code.bc
5
+ // RUN: %clangxx -fsycl-device-only -Xclang -fenable-sycl-dae -Xclang -fsycl-int-header=int_header.h %s -c -o device_code.bc -Wno-sycl-strict
6
+ // RUN: %clangxx %cxx_std_optionc++17 %include_option int_header.h %debug_option -c %s -o host_code.o %sycl_options -Wno-sycl-strict
7
+ // FIXME Added explicit offline linking step here until online-linking support
8
+ // is fixed
9
+ // RUN: %llvm_spirv -r %sycl_libs_dir/libsycl-fallback-cassert.spv -o=%T/fallback-cassert.bc
10
+ // RUN: llvm-link -o=linked_device_code.bc device_code.bc %T/fallback-cassert.bc
10
11
// RUN: sycl-post-link -emit-param-info linked_device_code.bc
11
12
// RUN: llvm-spirv -o linked_device_code.spv linked_device_code.bc
12
13
// RUN: echo -e -n "[Code|Properties]\nlinked_device_code.spv|linked_device_code_0.prop" > table.txt
Original file line number Diff line number Diff line change 12
12
// Produce an archive with device (AOCX) image. To avoid appending objects to
13
13
// leftover archives, remove one if exists.
14
14
// FIXME Disabled use of devicelib by assert feature until the 2-step build gets
15
- // fixed.
15
+ // fixed. For the time being when 2-step build is employed and there's a call to
16
+ // devicelib function from kernel, the binary image gets corrupted. Due to
17
+ // fallback assert implementation adds a kernel with appropriate call, we have
18
+ // it disabled for this test.
16
19
// RUN: rm %t_image.a || true
17
20
// RUN: %clangxx -DSYCL_DISABLE_FALLBACK_ASSERT=1 -fsycl -fintelfpga -fsycl-link=image %S/Inputs/fpga_device.cpp -o %t_image.a
18
21
// Produce a host object
Original file line number Diff line number Diff line change 13
13
// Produce an archive with device (AOCX) image. To avoid appending objects to
14
14
// leftover archives, remove one if exists.
15
15
// FIXME Disabled use of devicelib by assert feature until the 2-step build gets
16
- // fixed.
16
+ // fixed. For the time being when 2-step build is employed and there's a call to
17
+ // devicelib function from kernel, the binary image gets corrupted. Due to
18
+ // fallback assert implementation adds a kernel with appropriate call, we have
19
+ // it disabled for this test.
17
20
// RUN: rm %t_image.a || true
18
21
// RUN: %clangxx -DSYCL_DISABLE_FALLBACK_ASSERT=1 -fsycl -fintelfpga -fsycl-link=image %S/Inputs/fpga_device.cpp -o %t_image.lib
19
22
// Produce a host object
You can’t perform that action at this time.
0 commit comments