zoukankan      html  css  js  c++  java
  • [Notes] 为什么目前无法再docker for windows中调用GPU

    本随笔记载与2019年1月23日,若随着技术发展,本随笔记录的困难被攻克也是可能的。

    参考(https://www.reddit.com/r/docker/comments/86vzna/gpu_access_from_docker_container_windows_10/)

    Well you need to understand that direct access to the graphics card is done by a driver.
    
    If your host system is windows there is no way for the Linux environment inside your docker container to communicate with this windows driver.
    
    It's like trying to run a MacOs executeable in Windows.
    
    It simply won't work.
    
    If the host system is linux you can bypass the graphics card to the docker container.
    

      

    简单来说调用GPU的是GPU的驱动,而windows安装的是windows版本的驱动程序,使用docker安装的是linux的系统,linux的系统无法使用windows的驱动程序,故此无法调用GPU。docker中的容器调用驱动,都是要使用宿主机中内核里的驱动,因此当宿主机是windows时,所有需要借助驱动的docker镜像都用不了了。

  • 相关阅读:
    第十三周助教小结
    记事本
    第十二周助教小结
    与周老师会谈之后的感想
    第十一周总结
    第十周助教总结
    听周筠老师一席话,受益匪浅
    2020软件工程作业04
    2020软件工程作业02
    2020软件工程作业01
  • 原文地址:https://www.cnblogs.com/immortalBlog/p/10313300.html
Copyright © 2011-2022 走看看