gemma.cpp icon indicating copy to clipboard operation
gemma.cpp copied to clipboard

How to open PROFILER_ZONE to see the hwy profiling results?

Open jiaxiyang opened this issue 11 months ago • 1 comments

https://github.com/google/gemma.cpp/blob/ae7901c3f441d70b54bb78d11d040c9a9c81ab94/gemma.cc#L286

jiaxiyang avatar Mar 01 '24 09:03 jiaxiyang

Hi, you can build with -DPROFILER_ENABLED=1, then use %q at the prompt to quit, and we print the results to stdout.

jan-wassenberg avatar Mar 01 '24 13:03 jan-wassenberg

Hi, you can build with -DPROFILER_ENABLED=1, then use %q at the prompt to quit, and we print the results to stdout.

Thanks!

jiaxiyang avatar Mar 04 '24 03:03 jiaxiyang