Skip to content

OMPD 5 and limited OMPD support for cuda devices #49

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

Open
wants to merge 69 commits into
base: ompd
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
d8edcc7
Merge branch 'master' into ompd
Jun 21, 2018
c836b8d
[OMPD] Fixing runtime ompd type references
manorom Jun 22, 2018
73fe9de
[OMPD] add cmake modules necessary to build gdb-wrapper
manorom Jun 22, 2018
255356b
[OMPD] align libompd and odb w/ new OpenMP spec
manorom Jun 25, 2018
0c3427e
Add ompd_get_thread_handle for cuda.
manorom Jun 29, 2018
63309d5
[OMPD] Adds some support for omp states on cuda
manorom Jul 2, 2018
e1949d3
[OMPD] Further align code to spec
manorom Jul 2, 2018
f9cc9b4
[OMPD] Aligned callback names with spec
manorom Jul 3, 2018
cffa430
Fix formatting mistake
manorom Jul 3, 2018
e72f4a7
[OMPD] Add parallel and reduction state to npvtx
manorom Jul 3, 2018
27e8cc8
[OMPD] Add reduction state + save thread coords
manorom Jul 5, 2018
322f3f6
[OMPD] cleanup and + ompd parallel handle for cuda
manorom Jul 10, 2018
8a25e59
[OMPD] Remove unsupported api functions + fixes
manorom Jul 13, 2018
485b132
[OMPD] add support for some ICVs to libompd
manorom Jul 13, 2018
f37acc3
[OMPD] Add serial state in cuda device rtl
manorom Jul 13, 2018
4c40f17
[OMPD] Add some icvs + move values in ompd_types.h
manorom Jul 13, 2018
528b3ed
[OMPD] Align ompd.h formatting to spec
manorom Jul 16, 2018
c612600
[OMPD] changed some comments for current spec
manorom Jul 16, 2018
5dd42cc
[OMPD] Some cleanup in gdb-wrapper
manorom Jul 17, 2018
3473deb
[OMPD] fix omp version
manorom Jul 17, 2018
64b73b0
[OMPD] Add type compatibillity for new spec to odb
manorom Jul 17, 2018
43d1e58
[OMPD] Code clean-up in odb
manorom Jul 17, 2018
66775c1
[OMPD] Fix bug introd. by type changes f. new spec
manorom Jul 17, 2018
bf0ea8a
[OMPD] Add "tasks" command to odb
manorom Jul 18, 2018
ee03881
Merge remote-tracking branch 'origin/ompd' into ompd-devices
manorom Jul 18, 2018
504e7be
[OMPD] Add get_task_function and test code in odb
manorom Jul 19, 2018
d208dc1
[OMPD] Fix some formatting
manorom Jul 20, 2018
94c3081
[OMPD] Fix formatting mistakes
manorom Jul 20, 2018
267a230
[OMPD] Fix linking for gdb-wrapper
manorom Jul 23, 2018
14b0cea
[OMPD] Save cuda kernel info in ompd handles
manorom Jul 23, 2018
33ccbfa
Merge remote-tracking branch 'origin/master' into ompd-devices
manorom Jul 23, 2018
7a79281
[OMPD] Set correct omp states for all modes (cuda)
manorom Jul 30, 2018
5bec325
[OMPD] Fix thread handles in all exec modes (cuda)
manorom Jul 30, 2018
b3de3ae
[OMPD] Add ompd break points for thread begin/end
manorom Aug 1, 2018
b96b31c
[OMPD] Add some support: parallel handles (cuda)
manorom Aug 7, 2018
3609e86
[OMPD] remove usage of kernel id in odb
manorom Aug 8, 2018
a619134
[OMPD] Add ompd_get_thread_in_parallel for cuda
manorom Aug 8, 2018
011a376
[OMPD] Move memory segment values to ompd_types.h
manorom Aug 8, 2018
8d49887
[OMPD] Re-enable checking for ompd state tracking
manorom Aug 8, 2018
300c218
Remove accidentally committed .bak file
manorom Aug 9, 2018
e0538aa
Merge remote-tracking branch 'origin/ompd' into ompd-devices
manorom Aug 10, 2018
c806b3e
Merge remote-tracking branch 'origin/ompd' into ompd-devices
manorom Aug 10, 2018
783262c
[OMPD] Make odb initialization at first command
manorom Aug 13, 2018
17f53de
[OMPD] Add code to support some ICVs on cuda devs
manorom Aug 13, 2018
598ec68
[OMPD] removed ompdAllocatable class
manorom Aug 14, 2018
21d2ad7
[OMPD] Remove _ompd_device_handle_s struct
manorom Aug 14, 2018
6351c6f
[OMPD] Work around for cuda-gdb name mangling bug
manorom Aug 23, 2018
4b6f24b
[OMPD] Add support for cuda icvs to odb
manorom Aug 23, 2018
0322eab
[OMPD] Fix enclosing_parallel + enable target ICVs
manorom Aug 27, 2018
098dd55
[OMPD] Fix ompd_get_thread_in_parallel + add test
manorom Aug 30, 2018
66b0339
[OMPD] Update ompd_types.h + remove kernelId field
manorom Sep 4, 2018
09ed60b
[OMPD] Fix ompd_types.h
manorom Sep 5, 2018
b2be2d6
[OMPD] Add some support for tasks for cuda
manorom Sep 7, 2018
24e9595
[OMPD] Fix parallel level for explicit tasks
manorom Sep 17, 2018
d15db76
[OMPD] omp_device_t -> ompd_device_t
manorom Sep 18, 2018
58e5df5
[OMPD] Add examples to test ompd on cuda
manorom Sep 21, 2018
42982e4
[OMPD] Add ompd breakpoints
manorom Sep 21, 2018
23f5ea0
[OMPD] Fix task/parallel handle interaction
manorom Sep 21, 2018
8c4c7ae
[OMPD] Make OMPD configurable for deviceRTLs
manorom Sep 25, 2018
901ff1b
[OMPD] Clean up by removing unnecesarry header
manorom Sep 25, 2018
6a825eb
[OMPD} Remove deprecated ompd_process_handle_t
manorom Sep 25, 2018
bc9c1e3
[OMPD] Remove TODOs
manorom Sep 27, 2018
d861bcd
[OMPD] Add some kernel info + removed TODO notes
manorom Sep 28, 2018
c1b4c5a
Add information on scheduling parent for the master task in a paralle…
jprotze Oct 12, 2018
66b0f8d
Initialize all address variables
Oct 17, 2018
726b21b
Fix ompd_get_thread_id
jprotze Dec 14, 2018
36fcaf3
Initialize lwt field for ompd_get_task_in_parallel
Jan 16, 2019
e1c6cad
Fix ompd_get_task_function for implicit tasks
jprotze Jan 17, 2019
f9bb739
Use the right team to get the function pointer
Jan 17, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[OMPD] add cmake modules necessary to build gdb-wrapper
  • Loading branch information
manorom committed Jun 22, 2018
commit 73fe9dececd1a2b77b03557665076d8fa474e47f
4 changes: 4 additions & 0 deletions libompd/gdb-wrapper/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
project (odb)

cmake_minimum_required(VERSION 2.8)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")

set (cppfiles
InputOutputManager.cpp
ChildProcess.cpp
Expand Down
60 changes: 60 additions & 0 deletions libompd/gdb-wrapper/cmake/Modules/FindCudaGDB.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# - Try to find GDB
#
# Once done, this will define:
# CUDA_GDB_FOUND - system has CUDA_GDB
# CUDA_GDB_COMMAND - the command to run
# CUDA_GDB_VERSION - version
# CUDA_GDB_HAS_RETURN_CHILD_RESULT - if the --return-child-result flag is supported
#
# Useful configuration variables you might want to add to your cache:
# CUDA_GDB_ROOT_DIR - A directory prefix to search
#
# Original Author:
# 2009-2010 Ryan Pavlik <rpavlik@iastate.edu> <abiryan@ryand.net>
# http://academic.cleardefinition.com
# Iowa State University HCI Graduate Program/VRAC
#
# Copyright Iowa State University 2009-2010.
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)


set(CUDA_GDB_ROOT_DIR
"${CUDA_GDB_ROOT_DIR}"
CACHE
PATH
"Directory to start our search in")

find_program(CUDA_GDB_COMMAND
NAMES
cuda-gdb
HINTS
"${CUDA_GDB_ROOT_DIR}"
PATH_SUFFIXES
bin
libexec)

if(CUDA_GDB_COMMAND)
execute_process(COMMAND cuda-gdb --version
COMMAND head -n 1
OUTPUT_VARIABLE CUDA_GDB_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE)
string(REGEX REPLACE "[^0-9]*([0-9]+[0-9.]*).*" "\\1" CUDA_GDB_VERSION "${CUDA_GDB_VERSION}")
endif()

# handle the QUIETLY and REQUIRED arguments and set xxx_FOUND to TRUE if
# all listed variables are TRUE
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(CUDA_GDB DEFAULT_MSG CUDA_GDB_COMMAND CUDA_GDB_VERSION)

if(CUDA_GDB_FOUND)
mark_as_advanced(CUDA_GDB_ROOT_DIR)
if(CUDA_GDB_VERSION VERSION_LESS 6.4)
set(CUDA_GDB_HAS_RETURN_CHILD_RESULT FALSE)
else()
set(CUDA_GDB_HAS_RETURN_CHILD_RESULT TRUE)
endif()
endif()

mark_as_advanced(CUDA_GDB_COMMAND)
60 changes: 60 additions & 0 deletions libompd/gdb-wrapper/cmake/Modules/FindGDB.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# - Try to find GDB
#
# Once done, this will define:
# GDB_FOUND - system has GDB
# GDB_COMMAND - the command to run
# GDB_VERSION - version
# GDB_HAS_RETURN_CHILD_RESULT - if the --return-child-result flag is supported
#
# Useful configuration variables you might want to add to your cache:
# GDB_ROOT_DIR - A directory prefix to search
#
# Original Author:
# 2009-2010 Ryan Pavlik <rpavlik@iastate.edu> <abiryan@ryand.net>
# http://academic.cleardefinition.com
# Iowa State University HCI Graduate Program/VRAC
#
# Copyright Iowa State University 2009-2010.
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)


set(GDB_ROOT_DIR
"${GDB_ROOT_DIR}"
CACHE
PATH
"Directory to start our search in")

find_program(GDB_COMMAND
NAMES
gdb
HINTS
"${GDB_ROOT_DIR}"
PATH_SUFFIXES
bin
libexec)

if(GDB_COMMAND)
execute_process(COMMAND gdb --version
COMMAND head -n 1
OUTPUT_VARIABLE GDB_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE)
string(REGEX REPLACE "[^0-9]*([0-9]+[0-9.]*).*" "\\1" GDB_VERSION "${GDB_VERSION}")
endif()

# handle the QUIETLY and REQUIRED arguments and set xxx_FOUND to TRUE if
# all listed variables are TRUE
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GDB DEFAULT_MSG GDB_COMMAND GDB_VERSION)

if(GDB_FOUND)
mark_as_advanced(GDB_ROOT_DIR)
if(GDB_VERSION VERSION_LESS 6.4)
set(GDB_HAS_RETURN_CHILD_RESULT FALSE)
else()
set(GDB_HAS_RETURN_CHILD_RESULT TRUE)
endif()
endif()

mark_as_advanced(GDB_COMMAND)
47 changes: 47 additions & 0 deletions libompd/gdb-wrapper/cmake/Modules/FindReadline.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# - Try to find readline include dirs and libraries
#
# Usage of this module as follows:
#
# find_package(Readline)
#
# Variables used by this module, they can change the default behaviour and need
# to be set before calling find_package:
#
# Readline_ROOT_DIR Set this variable to the root installation of
# readline if the module has problems finding the
# proper installation path.
#
# Variables defined by this module:
#
# READLINE_FOUND System has readline, include and lib dirs found
# Readline_INCLUDE_DIR The readline include directories.
# Readline_LIBRARY The readline library.

find_path(Readline_ROOT_DIR
NAMES include/readline/readline.h
)

find_path(Readline_INCLUDE_DIR
NAMES readline/readline.h
HINTS ${Readline_ROOT_DIR}/include
)

find_library(Readline_LIBRARY
NAMES readline
HINTS ${Readline_ROOT_DIR}/lib
)

if(Readline_INCLUDE_DIR AND Readline_LIBRARY AND Ncurses_LIBRARY)
set(READLINE_FOUND TRUE)
else(Readline_INCLUDE_DIR AND Readline_LIBRARY AND Ncurses_LIBRARY)
FIND_LIBRARY(Readline_LIBRARY NAMES readline)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Readline DEFAULT_MSG Readline_INCLUDE_DIR Readline_LIBRARY )
MARK_AS_ADVANCED(Readline_INCLUDE_DIR Readline_LIBRARY)
endif(Readline_INCLUDE_DIR AND Readline_LIBRARY AND Ncurses_LIBRARY)

mark_as_advanced(
Readline_ROOT_DIR
Readline_INCLUDE_DIR
Readline_LIBRARY
)