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

[OpenMP] Improve omp offload profiler #68016

Merged
merged 14 commits into from
Dec 22, 2023

Conversation

fel-cab
Copy link
Contributor

@fel-cab fel-cab commented Oct 2, 2023

Summary:
Adding information to the LIBOMPTARGET profiler runtime kernel and API calls.

Key changes:

  • Adding information to runtime calls for better understanding of how the application
    is executing. For example teams requested by the user, size of memory transfers.
  • Profile timer was changed from 'us' to 'ns', since 'us' was too coarse-grain
    to register some important details like key kernel duration
  • Removed non API or Runtime calls, to reduce complexity of profile for application
    developers.

@fel-cab fel-cab self-assigned this Oct 2, 2023
@github-actions
Copy link

github-actions bot commented Oct 2, 2023

✅ With the latest revision this PR passed the C/C++ code formatter.

@jdoerfert jdoerfert changed the title Improve omp offload profiler [OpenMP] Improve omp offload profiler Oct 2, 2023
fel-cab pushed a commit to fel-cab/llvm-project that referenced this pull request Oct 3, 2023
…mprove LIBOMPTARGET profiling, as it allows to measure more events. It was part of PR llvm#68016
std::string RTM = RegionTypeMsg; \
llvm::TimeTraceScope TimeScope(__FUNCTION__, ProfileLocation + RTM)
// llvm::TimeTraceScope TimeScope(RegionTypeMsg, ProfileLocation + RTM)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: commented-out code

@fel-cab
Copy link
Contributor Author

fel-cab commented Oct 11, 2023

I have prepared a presentation to better explain the proposed changes
https://docs.google.com/presentation/d/1lLlR7g29MWidaX9BLCUaKZhdvN-dphUE2BGMXhZCIoA/edit?usp=sharing

@shiltian shiltian added the openmp:libomptarget OpenMP offload runtime label Oct 27, 2023
@jdoerfert jdoerfert self-requested a review December 21, 2023 18:30
Copy link
Member

@jdoerfert jdoerfert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG. Please rebase and merge.

@fel-cab fel-cab merged commit 9b6ea5e into llvm:main Dec 22, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openmp:libomptarget OpenMP offload runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants