File: cdi-nvidia.json

package info (click to toggle)
charliecloud 0.43-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,084 kB
  • sloc: python: 6,021; sh: 4,284; ansic: 3,863; makefile: 598
file content (36 lines) | stat: -rw-r--r-- 1,536 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  "cdiVersion": "0.5.0",
  "kind": "nvidia.com/gpu",
  "devices": [ {
      "name": "foo",
      "containerEdits": {
        "deviceNodes": [ { "path": "/dev/nvidia0" },
                         { "path": "/dev/dri/card0" } ],
        "hooks": [ { "hookName": "createContainer",
                     "path": "/usr/bin/nvidia-ctk",
                     "args": [ "nvidia-ctk",
                               "hook", "create-symlinks",
                               "--link", "../card0::/dev/dri/by-path/pci-0000:07:00.0-card",
                             ] } ] } } ] }
  "containerEdits": {
    "env": [ "NVIDIA_VISIBLE_DEVICES=void" ],
    "deviceNodes": [ { "path": "/dev/nvidia-modeset" },
                     { "path": "/dev/nvidiactl" } ],
    "mounts": [
      { "hostPath": "/run/nvidia-fabricmanager/socket",
        "containerPath": "/run/nvidia-fabricmanager/socket",
        "options": [ "ro", "nosuid", "nodev", "bind", "noexec" ] },
      { "hostPath": "/usr/bin/nvidia-smi",
        "containerPath": "/usr/bin/nvidia-smi",
        "options": [ "ro", "nosuid", "nodev", "bind" ] },
      { "hostPath": "/usr/lib/x86_64-linux-gnu/libcuda.so.535.161.08",
        "containerPath": "/usr/lib/x86_64-linux-gnu/libcuda.so.535.161.08",
        "options": [ "ro", "nosuid", "nodev", "bind" ] } ]
    "hooks": [
      { "hookName": "createContainer",
        "path": "/usr/bin/nvidia-ctk",
        "args": [
          "nvidia-ctk",
          "hook", "update-ldcache",
          "--folder", "/usr/lib/x86_64-linux-gnu" ] } ] }
}