Skip to content

Commit c806b3e

Browse files
committed
Merge remote-tracking branch 'origin/ompd' into ompd-devices
Conflicts: runtime/src/ompd-specific.h
2 parents e0538aa + b2b4f84 commit c806b3e

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

runtime/src/ompd-specific.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ OMPD_FOREACH_BITFIELD(ompd_declare_bitfield)
2222
OMPD_FOREACH_SIZEOF(ompd_declare_sizeof)
2323
#undef ompd_declare_sizeof
2424

25-
const char * * ompd_dll_locations=NULL;
26-
const char * ompd_my_dll_locations[2] = {"libompd.so",NULL};
25+
volatile const char * * ompd_dll_locations=NULL;
2726
uint64_t ompd_state=0;
2827

2928
int ompd_rtl_version = 7;
@@ -64,6 +63,9 @@ void ompd_init()
6463
OMPD_FOREACH_SIZEOF(ompd_init_sizeof)
6564
#undef ompd_init_sizeof
6665

66+
volatile static const char * ompd_my_dll_locations[2] = {"libompd.so",NULL};
67+
68+
6769
const char *ompd_env_var = getenv("OMP_OMPD");
6870
if (ompd_env_var && !strcmp(ompd_env_var, "on"))
6971
{

runtime/src/ompd-specific.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
#ifdef OMPD_SUPPORT
88

99
void ompd_init();
10-
extern const char * * ompd_dll_locations;
10+
extern volatile const char * * ompd_dll_locations;
1111
extern int ompd_rtl_version;
1212

1313
#ifdef __cplusplus
1414
extern "C" {
1515
#endif
16-
void ompd_dll_locations_valid ( void );
17-
void ompd_bp_parallel_begin ( void );
18-
void ompd_bp_parallel_end ( void );
19-
void ompd_bp_task_begin ( void );
20-
void ompd_bp_task_end ( void );
21-
void ompd_bp_thread_begin ( void );
22-
void ompd_bp_thread_end ( void );
16+
void __attribute__ ((noinline)) ompd_dll_locations_valid ( void );
17+
void __attribute__ ((noinline)) ompd_bp_parallel_begin ( void );
18+
void __attribute__ ((noinline)) ompd_bp_parallel_end ( void );
19+
void __attribute__ ((noinline)) ompd_bp_task_begin ( void );
20+
void __attribute__ ((noinline)) ompd_bp_task_end ( void );
21+
void __attribute__ ((noinline)) ompd_bp_thread_begin ( void );
22+
void __attribute__ ((noinline)) ompd_bp_thread_end ( void );
2323
#ifdef __cplusplus
2424
} /* extern "C" */
2525
#endif

0 commit comments

Comments
 (0)