Skip to content

Generate local resources in a .bazelrc file#90

Draft
Ahajha wants to merge 1 commit into
mainfrom
trotta/generate-local-resources-in-a-.bazelrc-file
Draft

Generate local resources in a .bazelrc file#90
Ahajha wants to merge 1 commit into
mainfrom
trotta/generate-local-resources-in-a-.bazelrc-file

Conversation

@Ahajha
Copy link
Copy Markdown
Member

@Ahajha Ahajha commented May 28, 2026

A recent Bazel change now errors if a local resource is requested but it will never be available (bazelbuild/bazel@d9861632b5)

This does another round of querying nvidia/rocm/amd-smi for GPU count and GPU memory so that we can fill these in. We use these internally to schedule tests on GPUs with memory counts, this makes a local GPU look a bit more like a remote one. This should allow smarter scheduling of local tests so the GPU isn't overloaded.

Heavily Claude-generated.

A recent Bazel change now errors if a local resource is requested but it will never be available (bazelbuild/bazel@d9861632b5)

This does another round of querying nvidia/rocm/amd-smi for GPU count and GPU memory so that we can fill these in. We use these internally to schedule tests on GPUs with memory counts, this makes a local GPU look a bit more like a remote one. This should allow smarter scheduling of local tests so the GPU isn't overloaded.

Heavily Claude-generated.
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.

1 participant