[clang] [llvm] [Driver][SYCL] Add initial SYCL offload compilation support (PR #107493)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 15 04:51:18 PST 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while building `clang,llvm` at step 7 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/46/builds/7938
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Driver/sycl-offload-jit.cpp' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 6
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -ccc-print-phases --target=x86_64-unknown-linux-gnu -fsycl Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp 2>&1 | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe -check-prefixes=CHK-PHASES Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' -ccc-print-phases --target=x86_64-unknown-linux-gnu -fsycl 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' -check-prefixes=CHK-PHASES 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# RUN: at line 9
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe --driver-mode=cl -ccc-print-phases --target=x86_64-pc-windows-msvc -fsycl Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp 2>&1 | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe -check-prefixes=CHK-PHASES Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' --driver-mode=cl -ccc-print-phases --target=x86_64-pc-windows-msvc -fsycl 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' -check-prefixes=CHK-PHASES 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# RUN: at line 28
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -### -fsycl -c --target=x86_64-unknown-linux-gnu Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp 2>&1 | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe -check-prefix=CHK-DEVICE-TRIPLE Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' '-###' -fsycl -c --target=x86_64-unknown-linux-gnu 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' -check-prefix=CHK-DEVICE-TRIPLE 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# RUN: at line 38
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -### -fsycl -c Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp 2>&1 | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe -check-prefixes=CHK-FSYCL-IS-DEVICE,CHK-FSYCL-IS-HOST Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' '-###' -fsycl -c 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' -check-prefixes=CHK-FSYCL-IS-DEVICE,CHK-FSYCL-IS-HOST 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# RUN: at line 40
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -### -fsycl -fsycl-device-only Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp 2>&1 | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe -check-prefix=CHK-FSYCL-IS-DEVICE Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' '-###' -fsycl -fsycl-device-only 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' -check-prefix=CHK-FSYCL-IS-DEVICE 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# RUN: at line 42
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe --driver-mode=cl -### -fsycl -c Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp 2>&1 | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe -check-prefixes=CHK-FSYCL-IS-DEVICE,CHK-FSYCL-IS-HOST Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' --driver-mode=cl '-###' -fsycl -c 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' -check-prefixes=CHK-FSYCL-IS-DEVICE,CHK-FSYCL-IS-HOST 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# RUN: at line 44
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -### -fsycl -fsycl-host-only Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp 2>&1 | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe -check-prefix=CHK-FSYCL-IS-HOST Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' '-###' -fsycl -fsycl-host-only 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' -check-prefix=CHK-FSYCL-IS-HOST 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# RUN: at line 50
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -### -fsycl Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp 2>&1 | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp -check-prefixes=CHECK-HEADER-DIR
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' '-###' -fsycl 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp' -check-prefixes=CHECK-HEADER-DIR
# .---command stderr------------
# | [1mZ:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp:59:27: [0m[0;1;31merror: [0m[1mCHECK-HEADER-DIR-SAME: expected string not found in input
[0m# | [1m[0m// CHECK-HEADER-DIR-SAME: "-internal-isystem" "[[ROOT]]bin{{[/\\]+}}..{{[/\\]+}}include{{[/\\]+}}sycl{{[/\\]+}}stl_wrappers"
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m<stdin>:8:110: [0m[0;1;30mnote: [0m[1mscanning from here
[0m# | [1m[0m "Z:\\b\\llvm-clang-x86_64-sie-win\\build\\bin\\clang.exe" "-cc1" "-triple" "x86_64-sie-ps5" "-fsycl-is-host" "-sycl-std=2020" "-emit-obj" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "sycl-offload-jit.cpp" "-mrelocation-model" "pic" "-pic-level" "2" "-fhalf-no-semantic-interposition" "-mframe-pointer=non-leaf" "-fdenormal-fp-math=preserve-sign,preserve-sign" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-fno-use-init-array" "-fvisibility=hidden" "-fvisibility-global-new-delete=source" "-fvisibility-from-dllstorageclass" "-fvisibility-dllexport=protected" "-fvisibility-nodllstorageclass=keep" "-fvisibility-externs-dllimport=default" "-fvisibility-externs-nodllstorageclass=keep" "-mllvm" "-emit-jump-table-sizes-section" "-target-cpu" "znver2" "-gno-column-info" "-debugger-tuning=sce" "-debug-forward-template-params" "-dwarf-explicit-import" "-fdebug-compilation-dir=Z:\\b\\llvm-clang-x86_64-sie-win\\build\\tools\\clang\\test\\Driver" "-ffunction-sections" "-fdata-sections" "-fcoverage-compilation-dir=Z:\\b\\llvm-clang-x86_64-sie-win\\build\\tools\\clang\\test\\Driver" "-resource-dir" "Z:\\b\\llvm-clang-x86_64-sie-win\\build\\lib\\clang\\20" "-internal-isystem" "Z:\\b\\llvm-clang-x86_64-sie-win\\build\\lib\\clang\\20\\include" "-internal-externc-isystem" "Z:\\b\\llvm-clang-x86_64-sie-win\\build\\bin/../..//target/include" "-internal-externc-isystem" "Z:\\b\\llvm-clang-x86_64-sie-win\\build\\bin/../..//target/include_common" "-fdeprecated-macro" "-ferror-limit" "19" "-stack-protector" "2" "-fno-rtti" "-fgnuc-version=4.2.1" "-fdeclspec" "-fskip-odr-check-in-gmf" "-fembed-offload-object=C:\\Users\\buildbot\\AppData\\Local\\Temp\\lit-tmp-dd5vculz\\sycl-offload-jit-4e4556.out" "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "C:\\Users\\buildbot\\AppData\\Local\\Temp\\lit-tmp-dd5vculz\\sycl-offload-jit-b61db7.o" "-x" "c++" "Z:\\b\\llvm-clang-x86_64-sie-win\\llvm-project\\clang\\test\\Driver\\sycl-offload-jit.cpp"
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m<stdin>:8:110: [0m[0;1;30mnote: [0m[1mwith "ROOT" equal to "Z:\\\\\\\\b\\\\\\\\llvm-clang-x86_64-sie-win\\\\\\\\build\\\\\\\\"
[0m# | [1m[0m "Z:\\b\\llvm-clang-x86_64-sie-win\\build\\bin\\clang.exe" "-cc1" "-triple" "x86_64-sie-ps5" "-fsycl-is-host" "-sycl-std=2020" "-emit-obj" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "sycl-offload-jit.cpp" "-mrelocation-model" "pic" "-pic-level" "2" "-fhalf-no-semantic-interposition" "-mframe-pointer=non-leaf" "-fdenormal-fp-math=preserve-sign,preserve-sign" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-fno-use-init-array" "-fvisibility=hidden" "-fvisibility-global-new-delete=source" "-fvisibility-from-dllstorageclass" "-fvisibility-dllexport=protected" "-fvisibility-nodllstorageclass=keep" "-fvisibility-externs-dllimport=default" "-fvisibility-externs-nodllstorageclass=keep" "-mllvm" "-emit-jump-table-sizes-section" "-target-cpu" "znver2" "-gno-column-info" "-debugger-tuning=sce" "-debug-forward-template-params" "-dwarf-explicit-import" "-fdebug-compilation-dir=Z:\\b\\llvm-clang-x86_64-sie-win\\build\\tools\\clang\\test\\Driver" "-ffunction-sections" "-fdata-sections" "-fcoverage-compilation-dir=Z:\\b\\llvm-clang-x86_64-sie-win\\build\\tools\\clang\\test\\Driver" "-resource-dir" "Z:\\b\\llvm-clang-x86_64-sie-win\\build\\lib\\clang\\20" "-internal-isystem" "Z:\\b\\llvm-clang-x86_64-sie-win\\build\\lib\\clang\\20\\include" "-internal-externc-isystem" "Z:\\b\\llvm-clang-x86_64-sie-win\\build\\bin/../..//target/include" "-internal-externc-isystem" "Z:\\b\\llvm-clang-x86_64-sie-win\\build\\bin/../..//target/include_common" "-fdeprecated-macro" "-ferror-limit" "19" "-stack-protector" "2" "-fno-rtti" "-fgnuc-version=4.2.1" "-fdeclspec" "-fskip-odr-check-in-gmf" "-fembed-offload-object=C:\\Users\\buildbot\\AppData\\Local\\Temp\\lit-tmp-dd5vculz\\sycl-offload-jit-4e4556.out" "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "C:\\Users\\buildbot\\AppData\\Local\\Temp\\lit-tmp-dd5vculz\\sycl-offload-jit-b61db7.o" "-x" "c++" "Z:\\b\\llvm-clang-x86_64-sie-win\\llvm-project\\clang\\test\\Driver\\sycl-offload-jit.cpp"
# | [0;1;32m ^
[0m# | [0;1;32m[0m
# | Input file: <stdin>
# | Check file: Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\sycl-offload-jit.cpp
...
```
</details>
https://github.com/llvm/llvm-project/pull/107493
More information about the cfe-commits
mailing list