-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running linux container from windows host with GPU support #241
Comments
@miccio-dk Please see the instructions here about running iGPU using Windows Subsystem for Linux 2 (WSL2): https://github.com/openvinotoolkit/docker_ci/blob/master/get-started.md#run-a-container |
Thanks for the prompt answer, unfortunately adding the arguments mentioned above doesn't seem to help. # start a new container (ubuntu20_dev:2021.4.2 is my image based on the openvino_cgvh_data_dev_2021.4.2 dockerfile)
docker run -itu root:root --rm --device /dev/dxg --volume /usr/lib/wsl:/usr/lib/wsl ubuntu20_dev:2021.4.2
# once inside the container, install sudo
apt-get update && apt-get install -y sudo
# navigate inside demo directory
cd /opt/intel/openvino/deployment_tools/demo
# run demo
./demo_security_barrier_camera.sh -d GPU This is the output message
This time, when trying to run
Note that |
@miccio-dk the GPU support is for Intel GPUs, not Nvidia. OpenVINO support for Nvidia GPU is limited. An open source module is available here: https://github.com/openvinotoolkit/openvino_contrib/tree/releases/2021/4/modules/cuda_plugin |
I would like to run a Linux-based container image (currently tried
openvino_cgvh_data_dev_2021.4.2
) from a Windows host and would like to run inference on GPU.I tried passing
--device /dev/dri
which resulted in:I also tried passing
--gpus=all
which allowed me to run the container, but as soon as I tried one of the demos with-d GPU
I got the following:Is it possible to map the GPU from windows (host) to linux (container)?
Thanks in advance.
The text was updated successfully, but these errors were encountered: