Skip to content

Commit

Permalink
Add initial dpcpp download
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-forbes-cp committed Dec 4, 2024
1 parent d19a0d7 commit 5fb51fb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/actions/do_build_dpcpp/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ description: build dpc++
inputs:
target:
description: 'target architecture'
build:
description: 'build not download'
type: boolean
default: true

runs:
using: "composite"
Expand All @@ -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
Expand All @@ -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.
Expand All @@ -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
Expand All @@ -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:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/planned_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 5fb51fb

Please sign in to comment.