File tree Expand file tree Collapse file tree 5 files changed +5
-4
lines changed
sycl/test/on-device/basic_tests/specialization_constants/non_native Expand file tree Collapse file tree 5 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -4897,6 +4897,7 @@ bool SYCLIntegrationFooter::emit(raw_ostream &OS) {
4897
4897
for (const VarDecl *VD : SpecConstants) {
4898
4898
VD = VD->getCanonicalDecl ();
4899
4899
std::string TopShim = EmitSpecIdShims (OS, ShimCounter, VD);
4900
+ OS << " #include <CL/sycl/detail/defines_elementary.hpp>\n " ;
4900
4901
OS << " __SYCL_INLINE_NAMESPACE(cl) {\n " ;
4901
4902
OS << " namespace sycl {\n " ;
4902
4903
OS << " namespace detail {\n " ;
Original file line number Diff line number Diff line change 1
1
// REQUIRES: aoc, accelerator
2
2
3
- // RUN: %clangxx -fsycl -fsycl-targets=spir64_fpga-unknown-unknown-sycldevice %S/Inputs/common.cpp -o %t.out
3
+ // RUN: %clangxx -fsycl -fsycl-use-footer -fsycl- targets=spir64_fpga-unknown-unknown-sycldevice %S/Inputs/common.cpp -o %t.out
4
4
// RUN: %ACC_RUN_PLACEHOLDER %t.out
5
5
6
6
// This test checks correctness of SYCL2020 non-native specialization constants
Original file line number Diff line number Diff line change 1
1
// REQUIRES: opencl-aot, cpu
2
2
3
- // RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64-unknown-unknown-sycldevice %S/Inputs/common.cpp -o %t.out
3
+ // RUN: %clangxx -fsycl -fsycl-use-footer -fsycl- targets=spir64_x86_64-unknown-unknown-sycldevice %S/Inputs/common.cpp -o %t.out
4
4
// RUN: %CPU_RUN_PLACEHOLDER %t.out
5
5
6
6
// This test checks correctness of SYCL2020 non-native specialization constants
Original file line number Diff line number Diff line change 1
1
// REQUIRES: cuda
2
2
3
- // RUN: %clangxx -fsycl -fsycl-targets=nvptx64-unknown-unknown-sycldevice %S/Inputs/common.cpp -o %t.out
3
+ // RUN: %clangxx -fsycl -fsycl-use-footer -fsycl- targets=nvptx64-unknown-unknown-sycldevice %S/Inputs/common.cpp -o %t.out
4
4
// RUN: env SYCL_DEVICE_FILTER=cuda %t.out
5
5
6
6
// TODO: enable this test then compile-time error in sycl-post-link is fixed
Original file line number Diff line number Diff line change 2
2
// UNSUPPORTED: cuda
3
3
// CUDA is not compatible with SPIR.
4
4
5
- // RUN: %clangxx -fsycl -fsycl-targets=spir64_gen-unknown-unknown-sycldevice -Xsycl-target-backend=spir64_gen-unknown-unknown-sycldevice "-device *" %S/Inputs/common.cpp -o %t.out
5
+ // RUN: %clangxx -fsycl -fsycl-use-footer -fsycl- targets=spir64_gen-unknown-unknown-sycldevice -Xsycl-target-backend=spir64_gen-unknown-unknown-sycldevice "-device *" %S/Inputs/common.cpp -o %t.out
6
6
// RUN: %GPU_RUN_PLACEHOLDER %t.out
7
7
8
8
// This test checks correctness of SYCL2020 non-native specialization constants
You can’t perform that action at this time.
0 commit comments