GPU usage from the container

GPU usage from the container  

  By: alejandro.morar on Nov. 8, 2023, 11:58 a.m.

Dear organizers,

What should we include in our process.py script in order to enable the GPU from the virtual machine? Doing torch.device("cuda:0") does not work, it says there is no such device.

Thanks

Re: GPU usage from the container  

  By: alvaroparicio on Nov. 8, 2023, 12:39 p.m.

Hi,

Simply specify when you register the module that it requires GPU. Hope we have been able to help you.

Re: GPU usage from the container  

  By: alejandro.morar on Nov. 8, 2023, 1:11 p.m.

The container is set to require GPU

Re: GPU usage from the container  

  By: alvaroparicio on Nov. 8, 2023, 4 p.m.

Hi,

The jobs are run with a GPU attached but seems that your code is not detecting it. You should check that the versions of Pytourch, CUDA etc are up to date. Here is the info on the current driver versions used by SageMaker https://grand-challenge.org/forums/forum/mediastinal-lymph-node-quantification-lnq-segmentation-690/topic/docker-submission-nodes-1854/

Hope this was helpful for you.

Re: GPU usage from the container  

  By: WhyNot on Nov. 8, 2023, 5:01 p.m.

Probably you (as the host) provides us a simple docker solution (with same sample random prediction code) that supports pytorch and gpu?

Re: GPU usage from the container  

  By: alejandro.morar on Nov. 10, 2023, 1:12 p.m.

Hello, in case it helps someone: it seems to be working with PyTorch 1.13.1 and CUDA 11.7

Re: GPU usage from the container  

  By: WhyNot on Nov. 12, 2023, 9:18 a.m.

"Hello, in case it helps someone: it seems to be working with PyTorch 1.13.1 and CUDA 11.7".

Many thanks. I finally use the big tank - Kaggle docker. However the docker image is quite big.