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

Add support for GPUs to docker / podman executors #6087

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

siggisim
Copy link
Member

@siggisim siggisim commented Mar 6, 2024

For docker you an enable access to all GPUs with:

--executor.docker_gpus=all

For podman, you can do the same with:

--executor.podman.gpus=all

deviceRequests := []dockercontainer.DeviceRequest{}
if *dockerRequestGPU == "all" {
deviceRequests = append(deviceRequests, dockercontainer.DeviceRequest{
Capabilities: [][]string{[]string{"gpu"}},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol

@siggisim siggisim merged commit aba9590 into master Mar 6, 2024
17 checks passed
@siggisim siggisim deleted the siggi-dev-branch-20240306-100700 branch March 6, 2024 19:31
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.

None yet

3 participants