bazel-contrib / bazel-contrib/rules_cuda

Flags passed to nvcc for host configuration don't honor cfg

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

Description

The flags passed to the host compilation portion of nvcc don't honor the bazel configured toolchain flags.

Notably `-g` doesn't get propagated to the flags passed to nvcc when building with `-c dbg` and as a result no symbols are found.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how Bazel toolchain flags reach the host-compilation portion of nvcc, focusing on the dbg configuration and the missing -g flag. Confirm the current flag propagation and reproduce the build; done means dbg builds pass -g to nvcc and generated host code contains symbols.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.