|
6 | 6 | // Remove any archives |
7 | 7 | // RUN: rm -f %t_*.a |
8 | 8 |
|
9 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
10 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
11 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 9 | +// Build main object. |
| 10 | +// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl -c %S/Inputs/fpga_main.cpp -o %t_main.o |
| 11 | + |
12 | 12 | // Build any early archive binaries. |
13 | 13 | // RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl -fsycl-link=early %S/Inputs/fpga_sub.cpp -o %t_early_sub.a |
14 | 14 | // RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl -fsycl-link=early %S/Inputs/fpga_add.cpp -o %t_early_add.a |
15 | 15 | // RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl -fsycl-link=early %S/Inputs/fpga_sub_x.cpp -o %t_early_sub_x.a |
16 | 16 | // RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl -fsycl-link=early %S/Inputs/fpga_add_x.cpp -o %t_early_add_x.a |
17 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
18 | | -// Use a variety of archive orders |
19 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
20 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %S/Inputs/fpga_main.cpp %t_early_add.a %t_early_sub.a %t_early_add_x.a %t_early_sub_x.a -o %t_early.out |
21 | | -// RUN: %{run} %t_early.out |
22 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %S/Inputs/fpga_main.cpp %t_early_sub_x.a %t_early_add.a %t_early_sub.a %t_early_add_x.a -o %t_early.out |
23 | | -// RUN: %{run} %t_early.out |
24 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %S/Inputs/fpga_main.cpp %t_early_add_x.a %t_early_sub_x.a %t_early_add.a %t_early_sub.a -o %t_early.out |
25 | | -// RUN: %{run} %t_early.out |
26 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %S/Inputs/fpga_main.cpp %t_early_sub.a %t_early_add_x.a %t_early_sub_x.a %t_early_add.a -o %t_early.out |
| 17 | + |
| 18 | +// Test baseline of all early archives and main. |
| 19 | +// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %t_main.o %t_early_add.a %t_early_sub.a %t_early_add_x.a %t_early_sub_x.a -o %t_early.out |
27 | 20 | // RUN: %{run} %t_early.out |
28 | 21 |
|
29 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
30 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
31 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
32 | 22 | // Build any image archive binaries. |
33 | 23 | // RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl -fsycl-link=image %S/Inputs/fpga_sub.cpp -o %t_image_sub.a |
34 | 24 | // RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl -fsycl-link=image %S/Inputs/fpga_add.cpp -o %t_image_add.a |
35 | 25 | // RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl -fsycl-link=image %S/Inputs/fpga_sub_x.cpp -o %t_image_sub_x.a |
36 | 26 | // RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl -fsycl-link=image %S/Inputs/fpga_add_x.cpp -o %t_image_add_x.a |
37 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
38 | | -// Use a variety of archive orders |
39 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
40 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %S/Inputs/fpga_main.cpp %t_image_add.a %t_image_sub.a %t_image_add_x.a %t_image_sub_x.a -o %t_image.out |
| 27 | + |
| 28 | +// Test baseline of all image archives and main. |
| 29 | +// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %t_main.o %t_image_add.a %t_image_sub.a %t_image_add_x.a %t_image_sub_x.a -o %t_image.out |
41 | 30 | // RUN: %{run} %t_image.out |
42 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %S/Inputs/fpga_main.cpp %t_image_sub_x.a %t_image_add.a %t_image_sub.a %t_image_add_x.a -o %t_early.out |
43 | | -// RUN: %{run} %t_early.out |
44 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %S/Inputs/fpga_main.cpp %t_image_add_x.a %t_image_sub_x.a %t_image_add.a %t_image_sub.a -o %t_early.out |
45 | | -// RUN: %{run} %t_early.out |
46 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %S/Inputs/fpga_main.cpp %t_image_sub.a %t_image_add_x.a %t_image_sub_x.a %t_image_add.a -o %t_early.out |
47 | | -// RUN: %{run} %t_early.out |
48 | 31 |
|
49 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
50 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
51 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
52 | 32 | // Build any image archive binaries from early archives. |
53 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl -fsycl-link=image %t_early_sub.a -o %t_early_image_sub.a |
54 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl -fsycl-link=image %t_early_add.a -o %t_early_image_add.a |
55 | 33 | // RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl -fsycl-link=image %t_early_sub_x.a -o %t_early_image_sub_x.a |
56 | 34 | // RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl -fsycl-link=image %t_early_add_x.a -o %t_early_image_add_x.a |
57 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
58 | | -// Use a variety of archive orders |
59 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
60 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %S/Inputs/fpga_main.cpp %t_early_image_add.a %t_early_image_sub.a %t_early_image_add_x.a %t_early_image_sub_x.a -o %t_early_image.out |
61 | | -// RUN: %{run} %t_early_image.out |
62 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %S/Inputs/fpga_main.cpp %t_early_image_sub_x.a %t_early_image_add.a %t_early_image_sub.a %t_early_image_add_x.a -o %t_early_image.out |
63 | | -// RUN: %{run} %t_early_image.out |
64 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %S/Inputs/fpga_main.cpp %t_early_image_add_x.a %t_early_image_sub_x.a %t_early_image_add.a %t_early_image_sub.a -o %t_early_image.out |
65 | | -// RUN: %{run} %t_early_image.out |
66 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %S/Inputs/fpga_main.cpp %t_early_image_sub.a %t_early_image_add_x.a %t_early_image_sub_x.a %t_early_image_add.a -o %t_early_image.out |
67 | | -// RUN: %{run} %t_early_image.out |
68 | 35 |
|
69 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
70 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
71 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
72 | 36 | // Mix early and image archive usage |
73 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %S/Inputs/fpga_main.cpp %t_early_add.a %t_image_sub.a %t_early_add_x.a %t_image_sub_x.a -o %t_mix.out |
74 | | -// RUN: %{run} %t_mix.out |
75 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %S/Inputs/fpga_main.cpp %t_image_add.a %t_early_sub.a %t_image_add_x.a %t_early_sub_x.a -o %t_mix.out |
76 | | -// RUN: %{run} %t_mix.out |
77 | | - |
78 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
79 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
80 | | -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
81 | | -// Provide some kernels without going through an archive |
82 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %S/Inputs/fpga_main.cpp %S/Inputs/fpga_add.cpp %t_image_sub.a %t_early_add_x.a %t_image_sub_x.a -o %t_mix.out |
83 | | -// RUN: %{run} %t_mix.out |
84 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %S/Inputs/fpga_main.cpp %S/Inputs/fpga_add.cpp %t_early_sub.a %t_image_add_x.a %t_early_sub_x.a -o %t_mix.out |
85 | | -// RUN: %{run} %t_mix.out |
86 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %S/Inputs/fpga_main.cpp %S/Inputs/fpga_add.cpp %S/Inputs/fpga_sub.cpp %t_early_add_x.a %t_image_sub_x.a -o %t_mix.out |
87 | | -// RUN: %{run} %t_mix.out |
88 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %S/Inputs/fpga_main.cpp %S/Inputs/fpga_add.cpp %S/Inputs/fpga_sub.cpp %t_image_add_x.a %t_early_sub_x.a -o %t_mix.out |
89 | | -// RUN: %{run} %t_mix.out |
90 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %S/Inputs/fpga_main.cpp %S/Inputs/fpga_add.cpp %t_image_sub.a %S/Inputs/fpga_add_x.cpp %t_image_sub_x.a -o %t_mix.out |
91 | | -// RUN: %{run} %t_mix.out |
92 | | -// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %S/Inputs/fpga_main.cpp %S/Inputs/fpga_add.cpp %t_image_sub.a %S/Inputs/fpga_add_x.cpp %t_early_sub_x.a -o %t_mix.out |
| 37 | +// RUN: %clangxx -fintelfpga -fsycl-device-code-split=per_kernel -fsycl %t_main.o %t_early_add.a %t_image_sub.a %t_early_image_add_x.a %t_early_image_sub_x.a -o %t_mix.out |
93 | 38 | // RUN: %{run} %t_mix.out |
0 commit comments