I'm trying to implement the VTune APIs resume/pause in my code. I'm following the example from here:
Actually, I wrote the same code of case 1 and it works, but if I add "-mavx" to
icpc -g test.cpp -I/opt/intel/vtune_amplifier_xe_2011/include /opt/intel/vtune_amplifier_xe_2011/lib64/libittnotify.a -lpthread -o test
VTune doesn't collect anything (it doesn't resume, I think). I tried -msse3 and similar options and the problem is still there. I tried to change the code, but no hope. My conclusion is that it is something wrong with the -mavx and the VTune APIs (note that VTune collects data if I remove the APIs).
Any solution? I know that for the moment I can remove -mavx, but this is part of a bigger code, so the option must be there when running on Sandy Bridge.
I'm running on Linux64 and the compiler version is:
Intel(R) C++ Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 188.8.131.52 Build 20121010<br />Copyright (C) 1985-2012 Intel Corporation. All rights reserved.