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

better logging for filename/function/line on CUDA and CUDNN error; lo… #8791

Merged
merged 1 commit into from
May 6, 2023

Conversation

stephanecharette
Copy link
Collaborator

…gging of full backtrace on Linux when an error causes Darknet to exit

For example, issue #8669 now results in this being logged showing exactly where the error is happening:

 calculation mAP (mean average precision)...
 Detection layer: 30 - type = 28 
 Detection layer: 37 - type = 28 
4CUDA status Error: file: ./src/network_kernels.cu: func: network_predict_gpu() line: 735

 CUDA Error: an illegal memory access was encountered
Darknet error location: ./src/network_kernels.cu, network_predict_gpu(), line #735
CUDA Error: an illegal memory access was encountered: Success
backtrace (11 entries)
1/11: src/darknet-pr/darknet(log_backtrace+0x38) [0x562adf9d1dd8]
2/11: src/darknet-pr/darknet(error+0x3d) [0x562adf9d1ebd]
3/11: src/darknet-pr/darknet(check_error+0xd0) [0x562adf9d4eb0]
4/11: src/darknet-pr/darknet(check_error_extended+0x7c) [0x562adf9d4f9c]
5/11: src/darknet-pr/darknet(network_predict_gpu+0x15f) [0x562adfad509f]
6/11: src/darknet-pr/darknet(validate_detector_map+0x9ad) [0x562adfa64f6d]
7/11: src/darknet-pr/darknet(train_detector+0x16a4) [0x562adfa67ca4]
8/11: src/darknet-pr/darknet(run_detector+0x897) [0x562adfa6bc57]
9/11: src/darknet-pr/darknet(main+0x34d) [0x562adf98663d]
10/11: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f433e662083]
11/11: src/darknet-pr/darknet(_start+0x2e) [0x562adf9888be]

…gging of full backtrace on Linux when an error causes Darknet to exit
@AlexeyAB AlexeyAB merged commit 59c8622 into AlexeyAB:master May 6, 2023
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

Successfully merging this pull request may close these issues.

2 participants