From 5fb51fb97e9bb173758eb7697f8904a7568aa080 Mon Sep 17 00:00:00 2001 From: Alan Forbes Date: Wed, 4 Dec 2024 15:15:35 +0000 Subject: [PATCH] Add initial dpcpp download --- .github/actions/do_build_dpcpp/action.yml | 20 ++++++++++++++++++++ .github/workflows/planned_testing.yml | 1 + 2 files changed, 21 insertions(+) diff --git a/.github/actions/do_build_dpcpp/action.yml b/.github/actions/do_build_dpcpp/action.yml index 65092c551..41dc8aaf5 100644 --- a/.github/actions/do_build_dpcpp/action.yml +++ b/.github/actions/do_build_dpcpp/action.yml @@ -4,6 +4,10 @@ description: build dpc++ inputs: target: description: 'target architecture' + build: + description: 'build not download' + type: boolean + default: true runs: using: "composite" @@ -23,12 +27,14 @@ runs: sudo apt-get install spirv-tools - name: clone dpc++ + if: build == 'true' uses: actions/checkout@v4 with: repository: intel/llvm path: llvm - name: dpcpp configure + if: build == 'true' shell: bash run: cd llvm; python buildbot/configure.py @@ -39,17 +45,21 @@ runs: --cmake-opt=-DNATIVECPU_USE_OCK=ON --cmake-opt=-DLLVM_ENABLE_ZLIB=OFF --cmake-opt=-DLLVM_ENABLE_ZSTD=OFF + - name: build sycl-headers + if: build == 'true' shell: bash run: cmake --build llvm/build -- sycl-headers - name: build dpc plus plus + if: build == 'true' shell: bash run: python llvm/buildbot/compile.py -o llvm/build -v -j 8 - name: build extra utilties + if: build == 'true' # Build various utilities, since those aren't proper dependencies. # FileCheck and not are needed for tests. The rest are needed for # cross builds. They are enabled on all targets for consistency. @@ -66,6 +76,7 @@ runs: llvm-tblgen not opt prepare_builtins ../install/bin - name: install config files to pick up libraries for cross compilation. + if: build == 'true' shell: bash run: | echo Installing configuration files @@ -79,6 +90,15 @@ runs: " >../install/bin/$arch-unknown-linux-gnu.cfg; done + - name: download dpc plus plus + if: build == 'false' + shell: bash + run: | + mkdir -p llvm/build/install + cd llvm/build/install + wget -q https://github.com/intel/llvm/releases/download/nightly-2024-12-04/sycl_linux.tar.gz + tar xf sycl_linux.tar.gz + - name: upload dpcpp artifact uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/planned_testing.yml b/.github/workflows/planned_testing.yml index 031ccc463..56f3a0385 100644 --- a/.github/workflows/planned_testing.yml +++ b/.github/workflows/planned_testing.yml @@ -135,6 +135,7 @@ jobs: uses: ./.github/actions/do_build_dpcpp with: target: ${{ matrix.target }} + build: false build_sycl_cts: needs: [workflow_vars, build_icd, build_dpcpp_native_host]