Skip to content

Commit ae2c66c

Browse files
committed
[OMPD] Runtime Entry Point functions for OMPD in libomp.so is mangled.
Adding extern "C" to all the entry point functions to make sure that these functions are not mangled.
1 parent f0c3870 commit ae2c66c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

openmp/runtime/src/include/omp-tools.h.var

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,20 +1229,44 @@ typedef struct ompd_callbacks_t {
12291229
get_thread_context_for_thread_id;
12301230
} ompd_callbacks_t;
12311231

1232+
#if defined(__cplusplus)
1233+
extern "C"
1234+
#endif
12321235
void ompd_bp_parallel_begin(void);
12331236

1237+
#if defined(__cplusplus)
1238+
extern "C"
1239+
#endif
12341240
void ompd_bp_parallel_end(void);
12351241

1242+
#if defined(__cplusplus)
1243+
extern "C"
1244+
#endif
12361245
void ompd_bp_task_begin(void);
12371246

1247+
#if defined(__cplusplus)
1248+
extern "C"
1249+
#endif
12381250
void ompd_bp_task_end(void);
12391251

1252+
#if defined(__cplusplus)
1253+
extern "C"
1254+
#endif
12401255
void ompd_bp_thread_begin(void);
12411256

1257+
#if defined(__cplusplus)
1258+
extern "C"
1259+
#endif
12421260
void ompd_bp_thread_end(void);
12431261

1262+
#if defined(__cplusplus)
1263+
extern "C"
1264+
#endif
12441265
void ompd_bp_device_begin(void);
12451266

1267+
#if defined(__cplusplus)
1268+
extern "C"
1269+
#endif
12461270
void ompd_bp_device_end(void);
12471271

12481272
ompd_rc_t ompd_initialize(ompd_word_t api_version,

0 commit comments

Comments
 (0)