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

OMPD 5 and limited OMPD support for cuda devices #49

Open
wants to merge 69 commits into
base: ompd
Choose a base branch
from

Conversation

manorom
Copy link

@manorom manorom commented Aug 8, 2018

Aligns the OMPD interface with the draft specification of OpenMP 5 and adds limited OMPD support for cuda devices (thread handles, some thread states, parallel handels).

Manoel Roemmer and others added 30 commits June 21, 2018 15:30
This commit aligns libompd and gdb-wrapper with a newer OpenMP spec.
* Some functionality was desiabled as it relies on information no longer
exposed via OMPD.
* The OMPD callback functions still have non-standard names (but
  signatures should be correct now)
* Cuda device initialization should work now, but not much other OMPD
  device funtionality.
* Code adapted from Marty Mcfadden's (<[email protected]>) code for the
  clang-ykt runtime.
* OMPD code in the nvptx device runtime library in libomptarget is
  currently included regardless of compile flags/defines
* libompd can retrieve thread state information for a cuda thread
* ODB tries to summarize states of many cuda threads (this is still a
  bit ugly and doesnt repsect blocks)
* Currently openmp cuda threads can only be in an undefined state or
  parallel work state (parallel work is not consistent)
* Moved some removed/renamed types out of ompd.h to ompd-private.h (we
  still need them internally i think)
* Removed dead code
* Some types have been renamed

Still need to rename all callbacks and check for completeness
Conflicts:
	libompd/src/CMakeLists.txt
	libompd/src/omp-debug.cpp
	runtime/src/ompd-specific.cpp
ODB now initializes the openmp process with ompd when the first ompd
commadn is issued, not when the debugger starts.
This is necessary because we now check for state tracking in the
process initialization function, and OpenMP runtime may not be present
when the debugger has just loaded the program.
@hahnjo hahnjo changed the base branch from ompd to master August 14, 2018 12:29
@hahnjo hahnjo changed the base branch from master to ompd August 14, 2018 12:29
@manorom
Copy link
Author

manorom commented Aug 14, 2018

@jprotze resolved original conflict with e0538aa and c806b3e. Can someone take a look before we resolve the newest conflicts, or else we might and up with more merge commits than everything else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants