Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Accelerator support (GPU) #68

@stefdoerr

Description

@stefdoerr

Is your feature request related to a problem? Please describe.
I need to submit GPU jobs to google batch through the python API
Describe the solution you'd like
Make the InstancePolicy.accelerators option work
Describe alternatives you've considered
Not sure, I'd be open to suggestions

Accelerators seem to not be supported yet through the python API https://github.com/googleapis/python-batch/blob/main/google/cloud/batch_v1/types/job.py#L529-L531 even though they seem to be supported through the YAML/JSON config files https://cloud.google.com/batch/docs/create-run-job#gpu-container-job-api

I also looked at the RPC API and they are also not supported there.

Is there some sort of workaround to get it to work or do I have to give up on using the python API and switch to yaml files and the gcloud CLI tool (I'd prefer to avoid that since I'm writing a python library)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: batchIssues related to the googleapis/python-batch API.externalThis issue is blocked on a bug with the actual product.type: docsImprovement to the documentation for an API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions