lightning/.azure
Jirka Borovec bdac61a118
ci: fix allow fail e2e (#17956)
* echo allow fail

* in
2023-06-30 14:48:21 -04:00
..
README.md CI: Use self-hosted Azure GPU runners (#14632) 2022-10-05 10:43:54 +00:00
app-cloud-e2e.yml ci: fix allow fail e2e (#17956) 2023-06-30 14:48:21 -04:00
app-cloud-store.yml ci: fix Azure trigger pattern (#16972) 2023-03-06 12:19:50 -05:00
gpu-benchmarks.yml ci: fix runif ref (#17716) 2023-05-29 14:05:06 +02:00
gpu-tests-fabric.yml ci: hotfix for doctests (#17841) 2023-06-15 15:25:59 +00:00
gpu-tests-pytorch.yml ci: hotfix for doctests (#17841) 2023-06-15 15:25:59 +00:00
start.sh CI: Use self-hosted Azure GPU runners (#14632) 2022-10-05 10:43:54 +00:00

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