Skip to content

Commit

Permalink
chore: CI: use command to set install gpu deps
Browse files Browse the repository at this point in the history
  • Loading branch information
vmx committed Dec 18, 2020
1 parent 5792548 commit c78662b
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ commands:
echo 'export PATH="$HOME:~/.cargo/bin:$PATH"' | tee --append $BASH_ENV
source $BASH_ENV
install-gpu-deps:
steps:
- run:
name: Install libraries for GPU tests
command: |
sudo apt-get update -y
sudo apt install -y ocl-icd-opencl-dev
test_target_pairing:
parameters:
target:
Expand Down Expand Up @@ -117,19 +126,15 @@ jobs:
executor: default
steps:
- set-env-path
- run: sudo apt-get update -y
- run: apt-cache search opencl
- run: sudo apt install -y ocl-icd-opencl-dev
- install-gpu-deps
- test_target_pairing:
target: "x86_64-unknown-linux-gnu"

test_pairing_gpu_x86_64-unknown-linux-gnu:
executor: default
steps:
- set-env-path
- run: sudo apt-get update -y
- run: apt-cache search opencl
- run: sudo apt install -y ocl-icd-opencl-dev
- install-gpu-deps
- test_target_pairing_gpu:
target: "x86_64-unknown-linux-gnu"

Expand All @@ -138,19 +143,15 @@ jobs:
executor: default
steps:
- set-env-path
- run: sudo apt-get update -y
- run: apt-cache search opencl
- run: sudo apt install -y ocl-icd-opencl-dev
- install-gpu-deps
- test_target_blst:
target: "x86_64-unknown-linux-gnu"

test_blst_gpu_x86_64-unknown-linux-gnu:
executor: default
steps:
- set-env-path
- run: sudo apt-get update -y
- run: apt-cache search opencl
- run: sudo apt install -y ocl-icd-opencl-dev
- install-gpu-deps
- test_target_blst_gpu:
target: "x86_64-unknown-linux-gnu"

Expand Down

0 comments on commit c78662b

Please sign in to comment.