From d5602c15515492c82f18e176d3c85c42f49d6d36 Mon Sep 17 00:00:00 2001 From: Ken Barker Date: Sat, 30 Nov 2024 08:41:10 +0000 Subject: [PATCH] Run clinfo example --- .github/workflows/rust.yml | 43 ++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8b5c863..25cafdd 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -9,28 +9,31 @@ on: env: CARGO_TERM_COLOR: always - # Tests "runs-on:" a GPU hosted runner which requires an enterprise subscription... - # test: - # name: Tests - # runs-on: ubuntu-latest + test: + name: Tests + runs-on: ubuntu-latest - # steps: - # - name: Load OpenCL - # run: | - # wget -qO - https://repositories.intel.com/graphics/intel-graphics.key | - # sudo apt-key add - - # sudo add-apt-repository \ - # 'deb [arch=amd64] https://repositories.intel.com/graphics/ubuntu focal main' - # sudo apt-get update - # sudo apt-get install \ - # intel-opencl-icd \ - # intel-level-zero-gpu level-zero \ - # intel-media-va-driver-non-free libmfx1 - # sudo apt-get install ocl-icd-opencl-dev + steps: + - name: Load OpenCL + run: | + wget -qO - https://repositories.intel.com/graphics/intel-graphics.key | + sudo apt-key add - + sudo add-apt-repository \ + 'deb [arch=amd64] https://repositories.intel.com/graphics/ubuntu focal main' + sudo apt-get update + sudo apt-get install \ + intel-opencl-icd \ + intel-level-zero-gpu level-zero \ + intel-media-va-driver-non-free libmfx1 + sudo apt-get install ocl-icd-opencl-dev - # - uses: actions/checkout@v4 - # - name: Install Rust - # run: rustup update stable + - uses: actions/checkout@v4 + - name: Install Rust + run: rustup update stable + # Tests "runs-on:" a GPU hosted runner which requires an enterprise subscription + # so run clinfo instead + - name: OpenCL info + run: cargo run --example clinfo # - name: Unit test # run: cargo test --verbose -- --test-threads=1