Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jsharpe opened this issue Jan 3, 2023 · 4 comments
Open

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

jsharpe opened this issue Jan 3, 2023 · 4 comments

Comments

@jsharpe
Copy link
Member

jsharpe commented Jan 3, 2023

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.

@cloudhan
Copy link
Collaborator

cloudhan commented Jan 4, 2023

Maybe a search path issue? For me, I need to use dir bazel-rules_cuda for symbol to work
image

@jsharpe
Copy link
Member Author

jsharpe commented Jan 4, 2023

No, it's definitely missing the symbols, I have to add -g to host_copts to get it to work. This is specifically with the grailbio llvm 14 compiler as the host compiler so it may be down to some interaction with those rules.

@cloudhan
Copy link
Collaborator

cloudhan commented Jan 5, 2023

Can you provide a repro? I might dig into it once I have time.

@jsharpe
Copy link
Member Author

jsharpe commented Jan 6, 2023

I'll have to try to find some time to isolate a reproducer, its within a reasonably complex build setup with pybind extensions so it's not easy to pull out straight away

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

No branches or pull requests

2 participants