Skip to content

Commit

Permalink
Add GPU env vars to github CI + add device extension to build dir due…
Browse files Browse the repository at this point in the history
… to concurrent builds
  • Loading branch information
adam-smnk committed Aug 20, 2024
1 parent 90ba85b commit 74881ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/tpp-llvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: actions/checkout@v4
- name: LLVM CUDA
run: |-
scripts/buildkite/check_llvm.sh || \
GPU=cuda scripts/buildkite/check_llvm.sh || \
${{ env.SRUN }} --partition=a100,v100 --time=0:30:00 -- \
'KIND=RelWithDebInfo COMPILER=clang GPU=cuda \
${{ github.workspace }}/scripts/buildkite/build_llvm.sh'
Expand All @@ -37,8 +37,7 @@ jobs:
- uses: actions/checkout@v4
- name: LLVM Vulkan
run: |-
scripts/buildkite/check_llvm.sh || \
GPU=vulkan scripts/buildkite/check_llvm.sh || \
${{ env.SRUN }} --partition=spr-all --time=0:30:00 -- \
'KIND=RelWithDebInfo COMPILER=clang GPU=vulkan \
${{ github.workspace }}/scripts/buildkite/build_llvm.sh'
1 change: 1 addition & 0 deletions scripts/buildkite/build_llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ check_program ${LINKER}
if [ ! "${LLVM_BUILD_DIR}" ]; then
LLVM_BUILD_DIR="/scratch/tpp-llvm"
fi
LLVM_BUILD_DIR=$(add_device_extensions ${LLVM_BUILD_DIR} ${GPU})
LLVM_BUILD_DIR=$(realpath ${LLVM_BUILD_DIR})
LLVM_BUILD_DIR=${LLVM_BUILD_DIR:-build-${COMPILER}}
mkdir -p ${LLVM_BUILD_DIR}
Expand Down

0 comments on commit 74881ce

Please sign in to comment.