Add cmake option for profiling
Created by: reyoung
We should add a WITH_PROFILE
option for cmake as a compile option. If WITH_PROFILE=ON
, it will add -p -g
to compiler flags. Also, there could be similar flags for nvcc
.
Profiling is the first step of performance tuning. It is crucial for us to know which parts in our code are slow.