lightning/.azure
Ethan Harris b8f392934a
Simplify store (#18234)
Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
Co-authored-by: Justus Schock <12886177+justusschock@users.noreply.github.com>
2023-08-08 09:34:03 +01:00
..
README.md
app-cloud-e2e.yml Bump playwright from 1.35.0 to 1.36.0 in /requirements (#18247) 2023-08-08 09:43:57 +02:00
gpu-benchmarks.yml
gpu-tests-fabric.yml ci: drop nightly from required checks (#18250) 2023-08-07 11:26:13 +02:00
gpu-tests-pytorch.yml ci: drop nightly from required checks (#18250) 2023-08-07 11:26:13 +02:00
start.sh

README.md

Creation GPU self-hosted agent pool

Prepare the machine

This is a slightly modified version of the script from https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/docker

apt-get update
apt-get install -y --no-install-recommends \
    ca-certificates \
    curl \
    jq \
    git \
    iputils-ping \
    libcurl4 \
    libunwind8 \
    netcat \
    libssl1.0

curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
mkdir /azp

Stating the agents

export TARGETARCH=linux-x64
export AZP_URL="https://dev.azure.com/Lightning-AI"
export AZP_TOKEN="xxxxxxxxxxxxxxxxxxxxxxxxxx"
export AZP_POOL="lit-rtx-3090"

for i in {0..7..2}
do
     nohup bash .azure/start.sh \
        "AZP_AGENT_NAME=litGPU-YX_$i,$((i+1))" \
        "CUDA_VISIBLE_DEVICES=$i,$((i+1))" \
     > "agent-$i.log" &
done

Check running agents

ps aux | grep start.sh