Skip to content

Commit

Permalink
Merge pull request #725 from pbalcer/adapters-ci
Browse files Browse the repository at this point in the history
update sycl adapters tag and add adapter CI
  • Loading branch information
pbalcer authored Jul 18, 2023
2 parents 4dcc3e2 + 896a732 commit 8af5a83
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 1,058 deletions.
50 changes: 49 additions & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ jobs:
-DCMAKE_BUILD_TYPE=${{matrix.build_type}}
-DUR_BUILD_TESTS=ON
-DUR_FORMAT_CPP_STYLE=ON
-DUR_BUILD_ADAPTER_L0=ON
${{matrix.libbacktrace}}
- name: Generate source from spec, check for uncommitted diff
Expand All @@ -80,6 +79,55 @@ jobs:
working-directory: ${{github.workspace}}/build
run: ctest -C ${{matrix.build_type}} --output-on-failure -L "python|uma|loader|validation|tracing|unit|urtrace"

adapter-build:
name: Build - Adapters on Ubuntu
strategy:
matrix:
os: ['ubuntu-22.04']
adapter: [CUDA, HIP, L0]
build_type: [Debug, Release]
compiler: [{c: gcc, cxx: g++}, {c: clang, cxx: clang++}]

runs-on: ${{matrix.os}}

steps:
- uses: actions/checkout@v3

- name: Install apt packages
run: |
sudo apt-get update
sudo apt-get install -y doxygen ${{matrix.compiler.c}}
- name: Install pip packages
run: pip install -r third_party/requirements.txt

- name: Install CUDA specific dependencies
if: matrix.adapter == 'CUDA'
run: |
sudo apt-get install nvidia-cuda-toolkit nvidia-cuda-toolkit-gcc
- name: Install HIP specific dependencies
if: matrix.adapter == 'HIP'
run: |
wget https://repo.radeon.com/amdgpu-install/5.6/ubuntu/jammy/amdgpu-install_5.6.50600-1_all.deb
sudo apt install ./amdgpu-install_5.6.50600-1_all.deb
sudo amdgpu-install --usecase=rocm
- name: Configure CMake
run: >
cmake
-B${{github.workspace}}/build
-DCMAKE_C_COMPILER=${{matrix.compiler.c}}
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
-DUR_ENABLE_TRACING=ON
-DCMAKE_BUILD_TYPE=${{matrix.build_type}}
-DUR_BUILD_TESTS=ON
-DUR_FORMAT_CPP_STYLE=ON
-DUR_BUILD_ADAPTER_${{matrix.adapter}}=ON
- name: Build
run: cmake --build ${{github.workspace}}/build -j $(nproc)

windows-build:
name: Build - Windows
strategy:
Expand Down
Loading

0 comments on commit 8af5a83

Please sign in to comment.