ARM-software / ComputeLibrary

The Compute Library is a set of computer vision and machine learning functions optimised for both Arm CPUs and GPUs using SIMD technologies.
2.87k stars 783 forks source link

Question for how to debug the source code #1004

Closed hustc12 closed 2 years ago

hustc12 commented 2 years ago

I am wondering whether we have a manual for how to debug the ACL source code. I went through the folder contribute_guide and found no information about debugging there. It would be very appreciable if we have such kind of manual, particularly for those who want to contribute to this project.

morgolock commented 2 years ago

Hi @huzq85

Debugging will depend on what platform you are running it. I'd recommend using gdb on Linux. Debugging ACL is not different from debugging any other aarch64 binary, you would need to know a little bit of gdb and build the library with debug=1.

What are you trying to debug?

Let's know if you have any specific questions.

Hope this helps.

hustc12 commented 2 years ago

Hi @huzq85

Debugging will depend on what platform you are running it. I'd recommend using gdb on Linux. Debugging ACL is not different from debugging any other aarch64 binary, you would need to know a little bit of gdb and build the library with debug=1.

What are you trying to debug?

Let's know if you have any specific questions.

Hope this helps.

hi, @morgolock , Thank you for your helpful information! I am able to debug the ACL lib right now based on your approach. I appreciate your help, and I think this issue can be closed now.