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

How to debug? #372

Closed
theoqian opened this issue Nov 30, 2021 · 2 comments
Closed

How to debug? #372

theoqian opened this issue Nov 30, 2021 · 2 comments
Labels
question Question

Comments

@theoqian
Copy link

Hi cutlass team, I'm trying to debug cutlass project in vscode via cuda-gdb. But the break points in kernels never hit. I got 'Module containing this breakpoint has not yet loaded or the breakpoint address could not be obtained.' in vscode debuger. And if I set '-G' to 'NVCC_FLAGS' in CMakeList.txt I got 'line xxx not in file'. Could you please show me how to debug the project correctly? Thanks.

@mnicely mnicely added the question Question label Nov 30, 2021
@hwu36
Copy link
Collaborator

hwu36 commented Dec 7, 2021

Don't use cuda-gdb to debug any heavy templated CUDA code. We just insert printf to dump the information to debug. We have some utilities to help you to do it. Check this example .

Also -G can cause miscompilation in cuda 11.4 and 11.5

@theoqian
Copy link
Author

theoqian commented Dec 7, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question
Projects
None yet
Development

No branches or pull requests

3 participants