kokkos-tools icon indicating copy to clipboard operation
kokkos-tools copied to clipboard

Perfetto results dependent on compile time setup

Open PhilipDeegan opened this issue 8 months ago • 2 comments

Hi there,

I'm trying to integrate these tools into a HPC code https://github.com/PHAREHUB/PHARE/

I've noticed that if compile with the following

CMAKE_CXX_FLAGS="-DNDEBUG -g0 -O3 -march=native -mtune=native"
CMAKE_BUILD_TYPE="Release"

I get strange results and duplicate entries in the flame graph

I get expected results with the following:

CMAKE_CXX_FLAGS="-g3 -O3 -march=native -mtune=native -fno-omit-frame-pointer -pg"
CMAKE_BUILD_TYPE="RelWithDebInfo"

Is this expected, or is there some requirement that's not met in the first case?

PhilipDeegan avatar Jun 20 '24 20:06 PhilipDeegan