Software Archive
Read-only legacy content
17061 Discussions

libiomp5.so (with ompt support) cannot trigger ompt_intialize() in an offload openmp environment

Xiduo_T_
Beginner
958 Views

I'm running an Intel MIC offload openmp application using openmp runtime (with ompt support, both the CPU side and the MIC side), while libiomp5.so on the CPU side can trigger its ompt_intialize() and get profile data, libiomp5.so on the MIC side cannot trigger its ompt_intialize(), so that I cannot get the profile data I want. I'm wondering where the problem is.

0 Kudos
1 Solution
TimP
Honored Contributor III
958 Views
0 Kudos
5 Replies
Frances_R_Intel
Employee
958 Views

Are you using the binary release that comes with Intel Parallel Studio XE 2016.1 or are you building the library from https://www.openmprtl.org or does that question make no sense at all? I know ompt is in the code in https://www.openmprtl.org; I didn't think it was in the binary release but then I don't really know much about this.

0 Kudos
Xiduo_T_
Beginner
958 Views

I'm sorry. I just leave out too many details.

I'm not using VTune Amplifier, the fact is, I'm using TAU(Tuning and Analysis Utilities) to instrument MIC offload application with openmp code. TAU is configured with ompt option, and the ompt mentioned above is from TAU release.

libiomp5.so on the CPU side can trigger its ompt_intialize() and get profile data, libiomp5.so on the MIC side cannot trigger its ompt_intialize(), so that I cannot get the profile data I want

0 Kudos
James_C_Intel2
Employee
958 Views

Since support for OMPT is not built into the libiomp5.so which ships with the Intel compiler, you must be building your own version. My guess, therefore, is that you haven't managed to have that be the version which is executed by your code. Therefore  I think you need to check that (maybe set KMP_SETTINGS=1 and KMP_VERSION=1 to see what the library you are running knows), and talk to the TAU folks about how their MIC libiomp5.so needs to be installed.

0 Kudos
TimP
Honored Contributor III
959 Views

https://www.cs.uoregon.edu/research/tau/tau-installguide.pdf

says MIC is supported only for native execution.

0 Kudos
Xiduo_T_
Beginner
958 Views

Since support for OMPT is not built into the libiomp5.so which ships with the Intel compiler, you must be building your own version. My guess, therefore, is that you haven't managed to have that be the version which is executed by your code. Therefore  I think you need to check that (maybe set KMP_SETTINGS=1 and KMP_VERSION=1 to see what the library you are running knows), and talk to the TAU folks about how their MIC libiomp5.so needs to be installed.

Thanks, James. I'll give it a shot and see what happens.

https://www.cs.uoregon.edu/research/tau/tau-installguide.pdf

says MIC is supported only for native execution.

Thank you, Tim. As far as I know, TAU does support offload execution and I have successfully done a few experiemnts. But things start going wrong when it comes to offload execution with OpenMP.

PS:The TAU folks say they don't support instrumenting openmp offload execution with opari2, so I try to use ompt myself. This is not officially supported by TAU, but seems to be right. However, I cannot get the profile I want. That's it.

 

0 Kudos
Reply