[Note]为什么目前无法再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镜像都用不了了。

转载于:https://www.cnblogs.com/immortalBlog/p/10313300.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值