krrishnarraj / clpeak

A tool which profiles OpenCL devices to find their peak capacities
Apache License 2.0
404 stars 113 forks source link

Unable to get debug mode in clpeak #84

Closed aditikau closed 2 years ago

aditikau commented 2 years ago

I need to run gdb over the clpeak but I was getting "No Debugging Symbols found" warning. Thus, to fix this I tried putting -g option in cmake commands in MakeFile but still it is not working for me.

Can anyone please share steps on how I can enable this ?

doe300 commented 2 years ago

Usually, setting the CMake variable CMAKE_BUILD_TYPE to Debug should to the trick, e.g. calling with cmake -DCMAKE_BUILD_TYPE=Debug [other options] <path/to/sources>

krrishnarraj commented 2 years ago

https://riptutorial.com/cmake/example/7357/switching-between-build-types--e-g--debug-and-release Pass -DCMAKE_BUILD_TYPE=Debug to cmake

aditikau commented 2 years ago

Thanks @krrishnarraj . It worked :)