bazel-contrib / bazel-contrib/rules_cuda

Why `@rules_cuda//cuda:runtime` flag rather than respecting `--dynamic_mode`

Open
#119 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
122
Forks
73
Avg merge
7h 34m
Merged PRs (30d)
7

Description

[Bazel already has a flag](https://bazel.build/reference/command-line-reference#flag--dynamic_mode) (`--dynamic_mode`) to allow controlling of static vs dynamic linking. I think it's feasible to apply this to the cuda runtime. Why not use this flag? It's surprising that there's a separate flag and that the bazel flag is not respected.

If you're OK with switching to use the built-in `--dynamic_mode` I'd be happy to open a PR to implement the change.
Thanks!

Contributor guide

Open the contributing guide

Research direction

Start with Bazel's --dynamic_mode reference and the @rules_cuda//cuda:runtime flag mentioned in the issue. Compare how each controls CUDA runtime linking and determine the scope of switching between them. Done means the CUDA runtime respects --dynamic_mode without requiring a separate flag, with behavior covered by the repository's relevant checks.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.