Use cgroups devcies to isolate GPUs for containers. For docker containers, we could use 'docker run --device=...'.
Reference: SLURM Resources isolation through cgroups.
[Umbrella] Extend the YARN resource model for easier resource-type management and profiles
[Umbrella] Natively support GPU configuration/discovery/scheduling/isolation on YARN
Support Tensorflow on Slider
Add GPU as a resource type for scheduling