wsl中部署ubuntu后k8s无法显示gpu信息如何解决?

543 阅读1分钟

/sys/devices/soc0/family file not found

root@aka:/Dubhe/dubhe-server# kubectl logs nvidia-device-plugin-daemonset-xdf87 -n kube-system
2023/03/08 11:45:40 Starting FS watcher.
2023/03/08 11:45:40 Starting OS watcher.
2023/03/08 11:45:40 Starting Plugins.
2023/03/08 11:45:40 Loading configuration.
2023/03/08 11:45:40 Updating config with default resource matching patterns.
2023/03/08 11:45:40
Running with config:
{
  "version": "v1",
  "flags": {
    "migStrategy": "none",
    "failOnInitError": false,
    "nvidiaDriverRoot": "/",
    "gdsEnabled": false,
    "mofedEnabled": false,
    "plugin": {
      "passDeviceSpecs": false,
      "deviceListStrategy": "envvar",
      "deviceIDStrategy": "uuid"
    }
  },
  "resources": {
    "gpus": [
      {
        "pattern": "*",
        "name": "nvidia.com/gpu"
      }
    ]
  },
  "sharing": {
    "timeSlicing": {}
  }
}
2023/03/08 11:45:40 Retreiving plugins.
2023/03/08 11:45:40 Detected NVML platform: found NVML library
2023/03/08 11:45:40 Detected non-Tegra platform: /sys/devices/soc0/family file not found
2023/03/08 11:45:40 No devices found. Waiting indefinitely.