зеркало из https://github.com/Azure/azurehpc.git
added nvidia
This commit is contained in:
Родитель
9d0cf3ba47
Коммит
d082e2bfbb
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
gpu_cards=$(/usr/sbin/lspci | grep -i NVIDIA | wc -l)
|
||||
echo "$gpu_cards NVIDIA devices found"
|
||||
if [ $gpu_cards -eq 0 ]; then
|
||||
echo "ERROR : no NVIDIA devices found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
nvidia-smi || exit 1
|
|
@ -71,6 +71,11 @@
|
|||
"script": "cuda_drivers.sh",
|
||||
"tag": "nvidia",
|
||||
"sudo": true
|
||||
},
|
||||
{
|
||||
"script": "check_gpu.sh",
|
||||
"tag": "nvidia",
|
||||
"sudo": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
pr: none
|
||||
trigger:
|
||||
batch: true
|
||||
branches:
|
||||
include:
|
||||
- master
|
||||
- '*'
|
||||
paths:
|
||||
include:
|
||||
- examples/nvidia/*
|
||||
- scripts/update_kernel.sh
|
||||
- scripts/wait.sh
|
||||
- scripts/install_lis.sh
|
||||
- scripts/cuda_drivers.sh
|
||||
- scripts/check_gpu.sh
|
||||
exclude:
|
||||
- examples/nvidia/readme.md
|
||||
|
||||
pool: Default
|
||||
|
||||
variables:
|
||||
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
||||
# configuration file to use
|
||||
azhpc.config: examples/nvidia/config.json
|
||||
# pipeline directory
|
||||
azhpc.pipeline_dir: examples/nvidia
|
||||
# destination of scripts. Default is hpcuser@headnode:/apps
|
||||
azhpc.script_remote_dest: 'hpcadmin@jumpbox:.'
|
||||
|
||||
# Add the variables needed in your configuration file
|
||||
# Uncomment and set values below, or leave commented and thru pipeline variables
|
||||
# azhpc.variables.location: eastus
|
||||
#azhpc.variables.vm_type: Standard_NC12s_v3
|
||||
|
||||
# <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
||||
|
||||
jobs:
|
||||
- template: ../../ci/templates/jobs/build.yml
|
||||
# parameters:
|
||||
# extra_steps: ../../../examples/nvidia/test.yml
|
Загрузка…
Ссылка в новой задаче