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

Commit 6f29028

Browse files
authored
[SYCL] Enable level-zero-link-flags and fix kernel_bundle_api (#806)
1 parent 5e8f630 commit 6f29028

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

SYCL/Basic/kernel_bundle/kernel_bundle_api.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Disable fallback assert here until online-support is fixed.
21
// Use of per-kernel device code split and linking the bundle with all images
32
// involved leads to multiple definition of AssertHappened structure due each
43
// device image is statically linked against fallback libdevice.
@@ -185,7 +184,7 @@ int main() {
185184
// CHECK-NEXT: <unknown> : {{.*}}
186185
// CHECK-NEXT: <unknown> : {{.*}}
187186
// CHECK-NEXT: <unknown> : {{.*}}
188-
// CHECK-NEXT: <nullptr>
187+
// CHECK-NEXT: <const char *>:
189188
// CHECK-NEXT: <unknown> : {{.*}}
190189
// CHECK-NEXT: <unknown> : {{.*}}
191190
// CHECK-NEXT: <nullptr>

SYCL/KernelAndProgram/level-zero-link-flags.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
// RUN: %clangxx -fsycl -Xsycl-target-linker=spir64 -foo %s -o %t.out
22
// RUN: %GPU_RUN_PLACEHOLDER %t.out
33
// REQUIRES: level_zero
4-
//
5-
// This test is disabled because the runtime does not currently pass linker
6-
// flags from "-Xsycl-target-linker=spir64 <opts>" when the program calls
7-
// "sycl::link()". This seems like a bug. Note that the runtime does pass
8-
// those "<opts>" to the online linker in other cases when it links device
9-
// code.
10-
//
11-
// XFAIL: level_zero
12-
//
134
//==--- level-zero-link-flags.cpp - Error handling for link flags --==//
145
//
156
// The Level Zero backend does not accept any online linker options.

0 commit comments

Comments
 (0)