-
Notifications
You must be signed in to change notification settings - Fork 130
[SYCL] Fix tests for assert #332
Changes from all commits
9ed0247
ece468c
2d9136f
4b701aa
9869bb9
4cafe74
f423606
435ba2e
fc1b283
afc916e
4f2c738
32822d0
edc96e9
69fa232
075373c
575d040
5bbca4b
613874d
ce5ca4b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,10 @@ | |
// driver | ||
// UNSUPPORTED: cuda | ||
// CUDA does not support SPIR-V. | ||
// 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 | ||
// RUN: %clangxx %cxx_std_optionc++17 %include_option int_header.h %debug_option -c %s -o host_code.o %sycl_options -Wno-sycl-strict | ||
// FIXME Disabled fallback assert as it'll require either online linking or | ||
// explicit offline linking step here | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not to add explicit offline linking like in previous test? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Per offline discussion, agreed to add offline linking to this test in distinct patch. |
||
// 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 | ||
// 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 | ||
// RUN: llvm-link -o=linked_device_code.bc device_code.bc | ||
// RUN: sycl-post-link -emit-param-info linked_device_code.bc | ||
// RUN: llvm-spirv -o linked_device_code.spv linked_device_code.bc | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,15 +11,17 @@ | |
/// E2E test for AOCX creation/use/run for FPGA | ||
// Produce an archive with device (AOCX) image. To avoid appending objects to | ||
// leftover archives, remove one if exists. | ||
// FIXME Disabled use of devicelib by assert feature until the 2-step build gets | ||
// fixed. | ||
Comment on lines
+14
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will it be fixed by intel/llvm#3767 ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one won't be fixed by intel/llvm#3767. There's an issue in driver which isn't connected to intel/llvm#3767. The issue can be encountered when using any devicelib function and compiling the same way it's done in this test. @mdtoguchi is aware of the issue. |
||
// RUN: rm %t_image.a || true | ||
// RUN: %clangxx -fsycl -fintelfpga -fsycl-link=image %S/Inputs/fpga_device.cpp -o %t_image.a | ||
// RUN: %clangxx -DSYCL_DISABLE_FALLBACK_ASSERT=1 -fsycl -fintelfpga -fsycl-link=image %S/Inputs/fpga_device.cpp -o %t_image.a | ||
// Produce a host object | ||
// RUN: %clangxx -fsycl -fintelfpga %S/Inputs/fpga_host.cpp -c -o %t.o | ||
// RUN: %clangxx -DSYCL_DISABLE_FALLBACK_ASSERT=1 -fsycl -fintelfpga %S/Inputs/fpga_host.cpp -c -o %t.o | ||
|
||
// AOCX with source | ||
// RUN: %clangxx -fsycl -fintelfpga %S/Inputs/fpga_host.cpp %t_image.a -o %t_aocx_src.out | ||
// RUN: %clangxx -DSYCL_DISABLE_FALLBACK_ASSERT=1 -fsycl -fintelfpga %S/Inputs/fpga_host.cpp %t_image.a -o %t_aocx_src.out | ||
// AOCX with object | ||
// RUN: %clangxx -fsycl -fintelfpga %t.o %t_image.a -o %t_aocx_obj.out | ||
// RUN: %clangxx -DSYCL_DISABLE_FALLBACK_ASSERT=1 -fsycl -fintelfpga %t.o %t_image.a -o %t_aocx_obj.out | ||
// | ||
// RUN: %ACC_RUN_PLACEHOLDER %t_aocx_src.out | ||
// RUN: %ACC_RUN_PLACEHOLDER %t_aocx_obj.out |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
// REQUIRES: opencl-aot, cpu, linux | ||
// REQUIRES: opencl-aot, cpu, linux, UNSUPPORTED | ||
// FIXME re-enable after intel/llvm#3767 is merged | ||
|
||
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64-unknown-unknown-sycldevice %S/assert.cpp -o %t.aot.out | ||
// RUN: %CPU_RUN_PLACEHOLDER %t.aot.out >%t.aot.msg | ||
// RUN: %CPU_RUN_PLACEHOLDER EXPECTED_SIGNAL=SIGABRT SHOULD_CRASH=1 %t.aot.out 2>%t.aot.msg | ||
// RUN: FileCheck %S/assert.cpp --input-file %t.aot.msg --check-prefixes=CHECK-MESSAGE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will it be fixed by intel/llvm#3767 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per offline discussion, agreed to elaborate on the comment in distinct patch.