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 from the code. #169

Open
TranQuocVietUIT opened this issue Dec 10, 2021 · 1 comment
Open

How to debug from the code. #169

TranQuocVietUIT opened this issue Dec 10, 2021 · 1 comment

Comments

@TranQuocVietUIT
Copy link

Hi @doonny ,
I'm working on my project based on PipeCNN.
I am reading your code. However, I have a few questions that need to be answered.
I don't know how to use these macros (eg DEBUG_MEMRD, ...). In addition, I want to print some values ​​in the kernel which are in the coreConv code or others kernel code. I have written the above macros but none of the values ​​I want are output. Can you please let me know how I do it.
Thanks for the help.
Have a nice day.
Viet

// The following macros are used for debug
#define DEBUG_MEMRD
#define DEBUG_CONV
#define DEBUG_BN
#define DEBUG_POOL
#define DEBUG_MEMWR
#define DEBUG_LRN
#define DEBUG_LRN_OUT

Exaample:
#ifdef DEBUG_CONV
if(Some thing) printf(Value);
#endif

@doonny
Copy link
Owner

doonny commented Dec 12, 2021

You could debug the code with software emulation.

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