Skip to content

Commit 522eeb4

Browse files
committed
add needed opari functions
1 parent 236e83d commit 522eeb4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scorep/subsystem.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ def generate(scorep_config, keep_files=False):
5858
(include, lib, lib_dir, macro,
5959
linker_flags_tmp) = scorep.helper.generate_compile_deps(scorep_config)
6060
scorep_adapter_init = generate_subsystem_code(scorep_config)
61+
if ("-lscorep_adapter_opari2_mgmt" in lib):
62+
scorep_adapter_init += "\n"
63+
scorep_adapter_init += "/* OPARI dependencies */\n"
64+
scorep_adapter_init += "void POMP2_Init_regions(){}\n"
65+
scorep_adapter_init += "size_t POMP2_Get_num_regions(){return 0;};\n"
66+
scorep_adapter_init += "void POMP2_USER_Init_regions(){};\n"
67+
scorep_adapter_init += "size_t POMP2_USER_Get_num_regions(){return 0;};\n"
6168

6269
# add -Wl,-no-as-needed to tell the compiler that we really want to link these. Actually this sould be default.
6370
# as distutils adds extra args at the very end we need to add all the libs

0 commit comments

Comments
 (0)