You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by kl...@apache.org on 2017/05/21 13:22:30 UTC

mesos git commit: Updated documentation for GPU support.

Repository: mesos
Updated Branches:
  refs/heads/master 8245981b8 -> 75cc6e33a


Updated documentation for GPU support.

In order to enable the `gpu/nvidia` isolator, you must also enable the
`filesystem/linux` isolator. This has been enforced in the code for
quite some time (emitting an error if starting the agent without both
the proper combination set).

This commit now updates the documentation to explicity mention that
this is necessary and explain why.


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/75cc6e33
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/75cc6e33
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/75cc6e33

Branch: refs/heads/master
Commit: 75cc6e33a7ee6e20d5aa6d7b8cce67bf49c6c678
Parents: 8245981
Author: Kevin Klues <kl...@gmail.com>
Authored: Sun May 21 06:09:22 2017 -0700
Committer: Kevin Klues <kl...@gmail.com>
Committed: Sun May 21 06:09:22 2017 -0700

----------------------------------------------------------------------
 docs/gpu-support.md | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/75cc6e33/docs/gpu-support.md
----------------------------------------------------------------------
diff --git a/docs/gpu-support.md b/docs/gpu-support.md
index 7a2b5d1..1931eb6 100644
--- a/docs/gpu-support.md
+++ b/docs/gpu-support.md
@@ -55,7 +55,16 @@ install any necessary nvidia GPU drivers on your machine.
 The following isolation flags are required to enable Nvidia GPU
 support on an agent.
 
-    --isolation="cgroups/devices,gpu/nvidia"
+    --isolation="filesystem/linux,cgroups/devices,gpu/nvidia"
+
+The `filesystem/linux` flag tells the agent to use linux-specific
+commands to prepare the root filesystem and volumes (e.g., persistent
+volumes) for containers that require them. Specifically, it relies on
+Linux mount namespaces to prevent the mounts of a container from being
+propagated to the host mount table. In the case of GPUs, we require
+this flag to properly mount certain Nvidia binaries (e.g.
+`nvidia-smi`) and libraries (e.g. `libnvidia-ml.so`) into a container
+when necessary.
 
 The `cgroups/devices` flag tells the agent to restrict access to a
 specific set of devices for each task that it launches (i.e. a subset