Skip to content

Commit

Permalink
Run clinfo example
Browse files Browse the repository at this point in the history
  • Loading branch information
kenba committed Nov 30, 2024
1 parent d89ff87 commit d5602c1
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d5602c1

Please sign in to comment.