Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed May 6, 2024
1 parent 2ff82c6 commit a4676c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .azure/gpu-integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ jobs:
clean: all
steps:
- bash: |
echo "##vso[task.setvariable variable=CUDA_VISIBLE_DEVICES]$(DEVICES)"
set -ex
devices=$(DEVICES)
# overwrite and use only single device
device=$( python -c 'print("${devices}".split(",")[0])' )
echo "##vso[task.setvariable variable=CUDA_VISIBLE_DEVICES]$device"
CUDA_version=$(nvcc --version | sed -n 's/^.*release \([0-9]\+\.[0-9]\+\).*$/\1/p')
CUDA_version_mm="${CUDA_version//'.'/''}"
echo "##vso[task.setvariable variable=CUDA_VERSION_MM]$CUDA_version_mm"
Expand Down

0 comments on commit a4676c7

Please sign in to comment.