Repository navigation
Creating a GPU Enabled Job in Scale
This guide assumes you have a basic understanding of building docker containers, as well as a basic understanding of the seed manifest file.
FROM nvidia/cuda:9.0-base
This is optional, as any docker image properly set up for GPU tasks should work, but the nvidia/cuda images already have everything set up for you when starting from scratch.
In your seed manifest, gpus must be set to at least 1 in order for your job to be assigned a GPU in scale when it runs.
"resources": {
"scalar": [
{
"name": "gpus",
"value": 1
}
]
}
Here is an example of a complete basic gpu manifest job
"seedVersion": "1.0.0",
"job": {
"name": "gpu-test",
"jobVersion": "1.0.0",
"packageVersion": "1.0.0",
"title": "GPU Test",
"description": "Basic GPU test job",
"maintainer": {
"name": "AIS",
"organization": "Applied Information Sciences",
"email": ""
},
"timeout": 3600,
"interface": {
"command": "nvidia-smi"
},
"resources":
{
"scalar": [
{ "name": "gpus", "value": 1.0 }
]
}
}
To test locally refer to this guide for setting up nvidia docker, then you can mimic the way scale calls docker for GPU jobs simply by adding --runtime=nvidia to your docker command.
docker run --runtime=nvidia someorg/mygpudockercontainer:latest
- Home
- What's New
-
In-depth Topics
- Enable Scale to run CUDA GPU optimized algorithms
- Enable Scale to store secrets securely
- Test Scale's scan capability on the fly
- Test Scale's workspace broker capability on the fly
- Scale Performance Metrics
- Private docker repository configuration
- Setting up Automated Snapshots for Elasticsearch
- Setting up Cluster Monitoring
- Developer Notes