Skip to content

Commit

Permalink
ci/azure: drop sudo from workflow (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Oct 12, 2023
1 parent d8a3444 commit 6ea09b0
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .azure/hpu-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,25 +58,15 @@ jobs:

steps:

- script: |
container_id=$(head -1 /proc/self/cgroup|cut -d/ -f3)
/tmp/docker exec -t -u 0 $container_id \
sh -c "apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confold" -y install sudo"
echo "##vso[task.setvariable variable=CONTAINER_ID]$container_id"
displayName: 'Install Sudo in container (thanks Microsoft!)'
- bash: |
sudo pip install -q pip -U
sudo apt-get install -y hwinfo
hwinfo --short
hl-smi -L
lsmod | grep habanalabs
python --version
pip --version
displayName: 'Instance HW info'
- bash: |
set -e
pip --version
set -ex
pip install ".[test,$(dependency)]"
pip install git+https://github.com/HabanaAI/DeepSpeed.git@$(DEEPSPEED_VERSION)
pip list
Expand Down

0 comments on commit 6ea09b0

Please sign in to comment.