Skip to content

Commit 4c68638

Browse files
authored
[SYCL][HIP] Fix a Windows specific lit test failure on sycl-oneapi-gpu. (#7753)
Fix a Windows lit test failure. The issue is due to clang-offload-wrapper is slightly different on Windows compared to Linux. This is not specific to recent update. On Windows the argument of the clang-offload-wrapper looks like "-compile-opts=--offload-arch=gfx??? --offload-arch=gfx???", while on Linux that is "-compile-opts=--offload-arch=gfx???"
1 parent b51f267 commit 4c68638

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/test/Driver/sycl-oneapi-gpu.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
// RUN: FileCheck %s --check-prefixes=DEVICE_AMD,MACRO_AMD -DDEV_STR=gfx1032 -DMAC_STR=GFX1032
169169
// MACRO_AMD: clang{{.*}} "-triple" "amdgcn-amd-amdhsa"
170170
// MACRO_AMD: "-D__SYCL_TARGET_AMD_GPU_[[MAC_STR]]__"
171-
// DEVICE_AMD: clang-offload-wrapper{{.*}} "-compile-opts=--offload-arch=[[DEV_STR]]"
171+
// DEVICE_AMD: clang-offload-wrapper{{.*}} "-compile-opts=--offload-arch=[[DEV_STR]]{{.*}}"
172172
// MACRO_AMD: clang{{.*}} "-fsycl-is-host"
173173
// MACRO_AMD: "-D__SYCL_TARGET_AMD_GPU_[[MAC_STR]]__"
174174

@@ -381,4 +381,3 @@
381381
// CHECK_PHASES_MIX: 26: file-table-tform, {22, 25}, tempfiletable, (device-sycl)
382382
// CHECK_PHASES_MIX: 27: clang-offload-wrapper, {26}, object, (device-sycl)
383383
// CHECK_PHASES_MIX: 28: offload, "host-sycl (x86_64-unknown-linux-gnu)" {10}, "device-sycl (spir64_gen-unknown-unknown:skl)" {20}, "device-sycl (spir64_gen-unknown-unknown)" {27}, image
384-

0 commit comments

Comments
 (0)