Skip to content

Commit df2be0b

Browse files
committedApr 11, 2019
Fixes to work with TotalView.
* Corrected the fix for issue: [OMPD] The LLVM OMPD ompd_get_api_version() function returns a non-standard API version. #51 - Define OMPD_VERSION as 201811. - Define OMPD_DLL_VERSION to what used to be defined as OMPD_VERSION. * Fixed issue: [OMPD] The LLVM OMPD ompd_get_task_in_parallel() function misspells "ompd_nvptx_parallel_info_t". It was marked a being fixed by Manoel on March 26, 2019, but AFAICT the fix is not in the ompd-device-50 branch sources. #64 - Change "ompd_nvptx_paralel_info" to "ompd_nvptx_parallel_info_t".
1 parent 8e0edb1 commit df2be0b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎libompd/src/omp-debug.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ ompd_rc_t ompd_get_task_in_parallel(
865865

866866
if (parallel_handle->ah->kind == OMPD_DEVICE_KIND_CUDA) {
867867
ret = TValue(context, parallel_handle->th)
868-
.cast("ompd_nvptx_paralel_info", 0,
868+
.cast("ompd_nvptx_parallel_info_t", 0,
869869
OMPD_SEGMENT_CUDA_PTX_GLOBAL)
870870
.access("parallel_tasks")
871871
.cast("omptarget_nvptx_TaskDescr", 1,

‎libompd/src/omp-debug.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#ifndef SRC_OMP_DEBUG_H_
1111
#define SRC_OMP_DEBUG_H_
1212

13-
#define OMPD_DLL_VERSION 201811
13+
#define OMPD_VERSION 201811
1414

1515
#ifdef __cplusplus
1616

@@ -23,7 +23,7 @@ extern "C" {
2323
#define OMPD_IMPLEMENTS_OPENMP_SUBVERSION 0
2424
#define OMPD_TR_VERSION 6
2525
#define OMPD_TR_SUBVERSION 2
26-
#define OMPD_VERSION \
26+
#define OMPD_DLL_VERSION \
2727
(OMPD_IMPLEMENTS_OPENMP << 24) + (OMPD_IMPLEMENTS_OPENMP_SUBVERSION << 16) + \
2828
(OMPD_TR_VERSION << 8) + OMPD_TR_SUBVERSION
2929

0 commit comments

Comments
 (0)
Please sign in to comment.