Skip to content
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

Enable GPU for local runner #377

Merged
merged 3 commits into from
Aug 23, 2023
Merged

Enable GPU for local runner #377

merged 3 commits into from
Aug 23, 2023

Conversation

PhilippeMoussalli
Copy link
Contributor

PR that adds GPU resource for the local runner when specified in the componentOP

based on:
https://docs.docker.com/compose/gpu-support/

@RobbeSneyders
Copy link
Member

Thanks @PhilippeMoussalli, have you been able to test this?

@PhilippeMoussalli
Copy link
Contributor Author

PhilippeMoussalli commented Aug 23, 2023

Thanks @PhilippeMoussalli, have you been able to test this?

Yes (partially).

services:
  test:
    image: pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
    command: nvidia-smi
    deploy:
      resources:
        reservations:
          devices:
          - capabilities:
            - gpu
            count: 1
            driver: nvidia

Tested this on a VM with GPU and it showed that there is an available GPU

@PhilippeMoussalli
Copy link
Contributor Author

Thanks @PhilippeMoussalli, have you been able to test this?

Yes (partially).

services:
  test:
    image: pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
    command: nvidia-smi
    deploy:
      resources:
        reservations:
          devices:
          - capabilities:
            - gpu
            count: 1
            driver: nvidia

Tested this on a VM with GPU and it showed that there is an available GPU

Marc Tested this as well (manually) and it seems to be doing the job

@RobbeSneyders
Copy link
Member

Ok thanks!

@RobbeSneyders RobbeSneyders merged commit 2cbecac into main Aug 23, 2023
5 checks passed
@RobbeSneyders RobbeSneyders deleted the enable-gpu-local-runner branch August 23, 2023 20:01
Hakimovich99 pushed a commit that referenced this pull request Oct 16, 2023
PR that adds GPU resource for the local runner when specified in the
componentOP

based on: 
https://docs.docker.com/compose/gpu-support/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants