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

feat: Add support for gpu_partition_size #1072

Merged
merged 3 commits into from
Nov 23, 2021
Merged

Conversation

stanley98yu
Copy link
Contributor

Fix for #1045. The gpu_partition_size field behaves unexpectedly and is required, not optional, in provider versions 3.90+, so we default to null as a workaround.

I was also thinking about adding a test, but I'm not sure how to approach it. The accelerator types supported by the machine and location in the example node_pool do not allow GPU partitioning (I specifically tried nvidia-tesla-k80 and nvidia-tesla-a100). Would this require a new example?

@morgante
Copy link
Contributor

I was also thinking about adding a test, but I'm not sure how to approach it. The accelerator types supported by the machine and location in the example node_pool do not allow GPU partitioning (I specifically tried nvidia-tesla-k80 and nvidia-tesla-a100). Would this require a new example?

It would be fine to change the existing machine/location to one which allows GPU partitioning (just need to adjust tests as well).

@comment-bot-dev
Copy link

comment-bot-dev commented Nov 22, 2021

Thanks for the PR! 🚀
✅ Lint checks have passed.

@stanley98yu stanley98yu marked this pull request as ready for review November 23, 2021 00:51
@morgante morgante merged commit cff1c1b into master Nov 23, 2021
@stanley98yu stanley98yu deleted the fix/gpu_partition_size branch November 23, 2021 03:14
bharathkkb pushed a commit that referenced this pull request Jan 21, 2022
* Add support for gpu_partition_size

* Add test for gpu_partition_size

* Lint formatting fix
CPL-markus pushed a commit to WALTER-GROUP/terraform-google-kubernetes-engine that referenced this pull request Jul 15, 2024
…1072)

* Add support for gpu_partition_size

* Add test for gpu_partition_size

* Lint formatting fix
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