Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perfetto results dependent on compile time setup #259

Open
PhilipDeegan opened this issue Jun 20, 2024 · 2 comments
Open

Perfetto results dependent on compile time setup #259

PhilipDeegan opened this issue Jun 20, 2024 · 2 comments
Labels
Build Building Kokkos tools ci Contiguous Integration for Kokkos Tools (includes external/third-party libraries)

Comments

@PhilipDeegan
Copy link

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
Copy link
Author

PhilipDeegan commented Jun 20, 2024

on a closer inspection the latter config is still somewhat wrong, just less wrong

@vlkale vlkale added Build Building Kokkos tools ci Contiguous Integration for Kokkos Tools (includes external/third-party libraries) labels Jun 20, 2024
@vlkale
Copy link
Contributor

vlkale commented Jun 20, 2024

Thanks for pointing this out. Actually, we (specifically me, @uliegecsm and @crtrott) are aware of problems with perfetto when building it and are trying to fix.

See Kokkos Tools PR #212 along with this branch of it: develop...cuda-11.0 that I am trying to merge into PR #212.

I think the fixes of that PR may resolve the problems you are having.

(FYI: We've decided right now we need to reach out to the developers of Perfetto to solve this, and it may take a week or two of turnaround time in talking with them to resolve that PR.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Building Kokkos tools ci Contiguous Integration for Kokkos Tools (includes external/third-party libraries)
Projects
None yet
Development

No branches or pull requests

2 participants