Skip to content

Commit 2678326

Browse files
committed
Let the code compile with OMPD_SUPPORT
1 parent 35bc351 commit 2678326

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

runtime/src/ompd-specific.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,23 +72,23 @@ OMPD_FOREACH_SIZEOF(ompd_init_sizeof)
7272
{
7373
fprintf(stderr,
7474
"OMP_OMPD active\n");
75-
ompt_enabled = 1;
75+
ompt_enabled.enabled = 1;
7676
ompd_state |= OMPD_ENABLE_BP;
7777
}
7878

7979
ompd_initialized = 1;
8080
}
8181

82-
void omp_ompd_enable ( void )
82+
/*void omp_ompd_enable ( void )
8383
{
8484
fprintf(stderr,
8585
"OMP_OMPD active\n");
86-
ompt_enabled = 1;
86+
ompt_enabled.enabled = 1;
8787
ompd_state |= OMPD_ENABLE_BP;
8888
#ifdef OMPD_SUPPORT
8989
ompt_post_init();
9090
#endif
91-
}
91+
}*/
9292

9393
void ompd_dll_locations_valid ( void ){
9494
/* naive way of implementing hard to opt-out empty function

runtime/src/ompd-specific.h

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,20 @@ OMPD_ACCESS(kmp_team_p, t) \
7373
\
7474
OMPD_ACCESS(ompt_task_info_t, frame) \
7575
OMPD_ACCESS(ompt_task_info_t, scheduling_parent) \
76-
OMPD_ACCESS(ompt_task_info_t, task_id) \
77-
OMPD_ACCESS(ompt_task_info_t, function) \
76+
OMPD_ACCESS(ompt_task_info_t, task_data) \
77+
/*OMPD_ACCESS(ompt_task_info_t, function)*/ \
7878
\
79-
OMPD_ACCESS(ompt_team_info_t, parallel_id) \
80-
OMPD_ACCESS(ompt_team_info_t, microtask) \
79+
OMPD_ACCESS(ompt_team_info_t, parallel_data) \
80+
/*OMPD_ACCESS(ompt_team_info_t, microtask)*/ \
8181
\
8282
OMPD_ACCESS(ompt_thread_info_t, state) \
8383
OMPD_ACCESS(ompt_thread_info_t, wait_id) \
8484
\
85-
OMPD_ACCESS(ompt_frame_t, reenter_runtime_frame) \
86-
OMPD_ACCESS(ompt_frame_t, exit_runtime_frame) \
85+
OMPD_ACCESS(ompt_data_t, value) \
86+
OMPD_ACCESS(ompt_data_t, ptr) \
87+
\
88+
OMPD_ACCESS(ompt_frame_t, exit_frame) \
89+
OMPD_ACCESS(ompt_frame_t, enter_frame) \
8790
\
8891
OMPD_ACCESS(ompt_lw_taskteam_t, parent) \
8992
OMPD_ACCESS(ompt_lw_taskteam_t, ompt_team_info) \
@@ -109,8 +112,8 @@ OMPD_SIZEOF(kmp_info_t) \
109112
OMPD_SIZEOF(kmp_taskdata_t) \
110113
OMPD_SIZEOF(kmp_tasking_flags_t) \
111114
OMPD_SIZEOF(kmp_thread_t) \
112-
OMPD_SIZEOF(ompt_parallel_id_t) \
113-
OMPD_SIZEOF(ompt_task_id_t) \
115+
OMPD_SIZEOF(ompt_data_t) \
116+
OMPD_SIZEOF(ompt_id_t) \
114117
OMPD_SIZEOF(__kmp_avail_proc) \
115118
OMPD_SIZEOF(__kmp_max_nth) \
116119
OMPD_SIZEOF(__kmp_gtid) \

0 commit comments

Comments
 (0)