Skip to content

Accelerators#319

Merged
ser-io merged 2 commits into
google:mainfrom
ser-io:accelerators
Jun 4, 2024
Merged

Accelerators#319
ser-io merged 2 commits into
google:mainfrom
ser-io:accelerators

Conversation

@ser-io
Copy link
Copy Markdown
Member

@ser-io ser-io commented Jun 3, 2024

No description provided.

@ser-io ser-io requested a review from Databean June 3, 2024 22:54
@ser-io ser-io marked this pull request as ready for review June 3, 2024 22:55
@ser-io ser-io force-pushed the accelerators branch 2 times, most recently from d63e1a2 to 57faebd Compare June 3, 2024 23:07
Comment thread pkg/cli/host.go Outdated
MachineType string
MinCPUPlatform string
// List of comma separated `key=value` pairs, i.e `type=nvidia-tesla-p100,count=1`.
AcceleratorConfigs []string
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can this be a string->string map?

https://google.aip.dev/apps/2717 suggests a string->string map for storing generic data, and go/apidosdonts#dont-encode-data-in-a-string writes

Don’t Encode Data in a String That You Expect a Client to Construct or Parse

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done. This struct is not meant to be serialized, however I moved the parsing logic to an early stage allowing us to define a more specific structure. Thanks.

- Allows to add accelerator cards to hosts.
@ser-io ser-io merged commit 709b3c1 into google:main Jun 4, 2024
@ser-io ser-io deleted the accelerators branch June 4, 2024 21:52
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