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

error log is hidden when cu_library fail #998

Open
noanswer opened this issue Nov 24, 2022 · 0 comments
Open

error log is hidden when cu_library fail #998

noanswer opened this issue Nov 24, 2022 · 0 comments

Comments

@noanswer
Copy link
Contributor

Is your feature request related to a problem? Please describe.
When the user's cuda code has something wrong and can not be compiled correctly, the target failed but without error debug information. It is becuase that the error info is after the header list of the gcc -H and awk hide all the information after "Multiple include guards may be useful for:"

Describe the solution you'd like
optimize the awk bash code
awk '/Multiple include guards may be useful for:/ {stop=1} /^\.+ [^\/]/ { print $0} !/^\.+ / && !stop {print $0 > "/dev/stderr"}' > build64_release/some_path/some_obj.objs/some_obj.cu.o.H

Let the awk find the ending of the Multiple include guards log and print the remaining log of other debug info.

Describe alternatives you've considered
Empty

Additional context
For gcc, some information like cc1plus: all warnings being treated as errors is also hidden, which is not crucial to users.

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

No branches or pull requests

1 participant