[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:39:06 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/11689

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Driver/sycl-offload-jit.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 6: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -ccc-print-phases --target=x86_64-unknown-linux-gnu    -fsycl /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp 2>&1  | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck -check-prefixes=CHK-PHASES /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck -check-prefixes=CHK-PHASES /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -ccc-print-phases --target=x86_64-unknown-linux-gnu -fsycl /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
RUN: at line 9: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang --driver-mode=cl -ccc-print-phases --target=x86_64-pc-windows-msvc -fsycl    /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp 2>&1  | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck -check-prefixes=CHK-PHASES /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck -check-prefixes=CHK-PHASES /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang --driver-mode=cl -ccc-print-phases --target=x86_64-pc-windows-msvc -fsycl /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
RUN: at line 28: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -### -fsycl -c --target=x86_64-unknown-linux-gnu /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp 2>&1  | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck -check-prefix=CHK-DEVICE-TRIPLE /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck -check-prefix=CHK-DEVICE-TRIPLE /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -### -fsycl -c --target=x86_64-unknown-linux-gnu /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
RUN: at line 38: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -### -fsycl -c /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp 2>&1  | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck -check-prefixes=CHK-FSYCL-IS-DEVICE,CHK-FSYCL-IS-HOST /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -### -fsycl -c /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck -check-prefixes=CHK-FSYCL-IS-DEVICE,CHK-FSYCL-IS-HOST /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
RUN: at line 40: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -### -fsycl -fsycl-device-only /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp 2>&1  | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck -check-prefix=CHK-FSYCL-IS-DEVICE /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -### -fsycl -fsycl-device-only /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck -check-prefix=CHK-FSYCL-IS-DEVICE /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
RUN: at line 42: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang --driver-mode=cl -### -fsycl -c /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp 2>&1  | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck -check-prefixes=CHK-FSYCL-IS-DEVICE,CHK-FSYCL-IS-HOST /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck -check-prefixes=CHK-FSYCL-IS-DEVICE,CHK-FSYCL-IS-HOST /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang --driver-mode=cl -### -fsycl -c /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
RUN: at line 44: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -### -fsycl -fsycl-host-only /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp 2>&1  | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck -check-prefix=CHK-FSYCL-IS-HOST /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck -check-prefix=CHK-FSYCL-IS-HOST /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -### -fsycl -fsycl-host-only /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
RUN: at line 50: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -### -fsycl /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp 2>&1  | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp -check-prefixes=CHECK-HEADER-DIR
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -### -fsycl /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp -check-prefixes=CHECK-HEADER-DIR
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp:59:27: error: CHECK-HEADER-DIR-SAME: expected string not found in input
// CHECK-HEADER-DIR-SAME: "-internal-isystem" "[[ROOT]]bin{{[/\\]+}}..{{[/\\]+}}include{{[/\\]+}}sycl{{[/\\]+}}stl_wrappers"
                          ^
<stdin>:8:137: note: scanning from here
 "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang-20" "-cc1" "-triple" "x86_64-scei-ps4" "-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-from-dllstorageclass" "-fvisibility-dllexport=protected" "-fvisibility-nodllstorageclass=hidden" "-fvisibility-externs-dllimport=default" "-fvisibility-externs-nodllstorageclass=default" "-target-cpu" "btver2" "-gno-column-info" "-debugger-tuning=sce" "-debug-forward-template-params" "-dwarf-explicit-import" "-fdebug-compilation-dir=/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver" "-ffunction-sections" "-fdata-sections" "-fcoverage-compilation-dir=/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver" "-resource-dir" "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/20" "-internal-isystem" "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/20/include" "-internal-externc-isystem" "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/../..//target/include" "-internal-externc-isystem" "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/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=/tmp/lit-tmp-k9iwlq59/sycl-offload-jit-e9da85.out" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "/tmp/lit-tmp-k9iwlq59/sycl-offload-jit-396e46.o" "-x" "c++" "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp"
                                                                                                                                        ^
<stdin>:8:137: note: with "ROOT" equal to "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/"
 "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang-20" "-cc1" "-triple" "x86_64-scei-ps4" "-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-from-dllstorageclass" "-fvisibility-dllexport=protected" "-fvisibility-nodllstorageclass=hidden" "-fvisibility-externs-dllimport=default" "-fvisibility-externs-nodllstorageclass=default" "-target-cpu" "btver2" "-gno-column-info" "-debugger-tuning=sce" "-debug-forward-template-params" "-dwarf-explicit-import" "-fdebug-compilation-dir=/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver" "-ffunction-sections" "-fdata-sections" "-fcoverage-compilation-dir=/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver" "-resource-dir" "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/20" "-internal-isystem" "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/20/include" "-internal-externc-isystem" "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/../..//target/include" "-internal-externc-isystem" "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/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=/tmp/lit-tmp-k9iwlq59/sycl-offload-jit-e9da85.out" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "/tmp/lit-tmp-k9iwlq59/sycl-offload-jit-396e46.o" "-x" "c++" "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp"
                                                                                                                                        ^

Input file: <stdin>
Check file: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/sycl-offload-jit.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           1: clang version 20.0.0git (https://github.com/llvm/llvm-project.git 0b0d61101fa0648a09ebc1dc7a26ee9a89e91be8) 
           2: Target: x86_64-scei-ps4 
           3: Thread model: posix 
           4: InstalledDir: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin 
...

```

</details>

https://github.com/llvm/llvm-project/pull/107493


More information about the cfe-commits mailing list