Skip to content

Fix CUDA build#199

Draft
meteorcloudy wants to merge 4 commits intogoogle-ml-infra:mainfrom
meteorcloudy:fix-cuda-templates
Draft

Fix CUDA build#199
meteorcloudy wants to merge 4 commits intogoogle-ml-infra:mainfrom
meteorcloudy:fix-cuda-templates

Conversation

@meteorcloudy
Copy link
Copy Markdown
Contributor

@meteorcloudy meteorcloudy commented Feb 17, 2026

Modified gpu/cuda/build_templates/cuda_cccl.BUILD.tpl and gpu/cuda/build_templates/cuda_nvcc.BUILD.tpl to add allow_empty = True to glob calls. This helps avoid "no matches found" errors when certain CUDA components are not present with Bazel 8. See bazelbuild/bazel#8195

This change updates the required Bazel version to 8.5.1 and adds allow_empty = True to globs in CUDA build templates to prevent build failures when files are missing.
@meteorcloudy meteorcloudy changed the title Update Bazel version and fix CUDA build templates Fix CUDA build templates Feb 17, 2026
@meteorcloudy
Copy link
Copy Markdown
Contributor Author

@yuriivcs @ybaturina Can you please take a look?

I'm trying to upgrade bazel version for the ML projects to Bazel 8. This change is needed.

@meteorcloudy meteorcloudy changed the title Fix CUDA build templates Fix CUDA build Feb 17, 2026
"//gpu/nvshmem:nvshmem_redist_init_repository.bzl",
"nvshmem_redist_init_repository",
)
load(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It should be this instead:

load(
      "@nvshmem_redist_json//:distributions.bzl",
      "NVSHMEM_REDISTRIBUTIONS",
   )

@meteorcloudy meteorcloudy marked this pull request as draft February 18, 2026 10:37
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