Probelm connecting Pycharm (2018.1.4) to nvidia-docker (version 2):

Answered

Dear all, the following action were executed

1) Compose the nvidia-docker-compose.yml by hand

services:
  exampleservice0:
    devices:
    - /dev/nvidia0
    - /dev/nvidiactl
    - /dev/nvidia-uvm
    - /dev/nvidia-uvm-tools
    environment:
    - EXAMPLE_ENV_VARIABLE=example
    image: floydhub/dl-docker
    volumes:
    - ./disk:/disk
    - nvidia_driver_390.59:/usr/local/nvidia:ro
version: '2'
volumes:
  media: null
  nvidia_driver_390.59:
    external: true

2) Under the Add Python Interprete-Docker compose, I add the nvidia-docker-compose.yml  under the Service. However, when confirming the setting, Pycharm give the following error.

 

 

May I know where I do wrong.

Thanks in advance for the time spent.

2 comments

Hi rpb, PyCharm doesn't support nvidia-docker, unfortunately. Please vote for PY-26429.

0

Hi Pavel, thanks for the quick response. I wonder how others are able to connect Pycharm to nvidia-docker. I guess they are using somewhat lower version.

Some of the discussion can be found in the following

1) https://github.com/NVIDIA/nvidia-docker/issues/303 

2) https://zhuanlan.zhihu.com/p/27114995 (maybe use lower version of Pycharm)

3) http://haanjack.github.io/docker/2018/02/21/nvidia-docker2-runtime.html  (although he does not show how specifically on the setup)

4) http://www.icesr.com/archives/3103 

 

These are few limited resources that I can found on the net discussing the setting up between pycharm and nvidia-docker. So, just to verify, are you sure PyCharm doesn't support nvidia-docker, if yes, then I will halt my current effort in dong this setting-up.

0

Please sign in to leave a comment.