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

131 Views Asked by At

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.

1

There are 1 best solutions below

1
Kevin On

In order use TAU on both the host and the device, you have to configure and build TAU twice - once for the x86_64 architecture, and once for mic_linux. I assume you already did that?

My assumption is that the libiomp5.so library included with TAU was only compiled for the host, and is not binary compatible with the device (so the one included with the Intel compiler is used instead). I suspect that if you performed the second configure/build step for the device, that process detected the libiomp5.so library in the TAU library directory, and didn't rebuild it for the device - but I don't know that for sure.

We recently updated the OMPT support in TAU, and released v2.25 in mid-November. If you continue to have problems, please contact [email protected].