Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Aug 30, 2024
1 parent abc7be3 commit a2818a4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/test_api_rocm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,38 +26,41 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

jobs:
setup_rocm_docker_devices:
setup_docker_devices:
runs-on: [self-hosted, amd-gpu, single-gpu, mi250]

container:
image: ghcr.io/huggingface/optimum-benchmark:latest-rocm
options: --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/ --device /dev/kfd --device /dev/dri --env ROCR_VISIBLE_DEVICES

outputs:
docker_devices: ${{ steps.rocm_docker_devices.outputs.rocm_docker_devices }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up ROCM_DOCKER_DEVICES env var
- name: Run script to get devices
run: |
chmod +x scripts/rocm_docker_devices.sh
./scripts/rocm_docker_devices.sh
- name: Set outputs
# use script to get the devices
id: rocm_docker_devices
run: echo "rocm_docker_devices=$(./scripts/rocm_docker_devices.sh)" >> $GITHUB_OUTPUT
run: echo "ROCM_DOCKER_DEVICES=$(./scripts/rocm_docker_devices.sh)" >> "$GITHUB_OUTPUT"

- name: Print outputs
run: echo "${{ steps.rocm_docker_devices.outputs.rocm_docker_devices }}"

run_api_rocm_tests:
needs: setup_rocm_docker_devices
needs: setup_docker_devices

runs-on: [self-hosted, amd-gpu, single-gpu, mi250]

container:
image: ghcr.io/huggingface/optimum-benchmark:latest-rocm
options: --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/ ${{ needs.setup_rocm_docker_devices.outputs.rocm_docker_devices }} --env ROCR_VISIBLE_DEVICES
options: --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/ ${{ needs.setup_docker_devices.outputs.docker_devices }} --env ROCR_VISIBLE_DEVICES

steps:
- name: Checkout
Expand Down

0 comments on commit a2818a4

Please sign in to comment.