Software Archive
Read-only legacy content
17060 Discussions

Vtune pause/resume API supported on Phi?

John_Michalakes
584 Views

I’m following these instructions for calling the Vtune pause/resume API from Fortran:

   http://software.intel.com/en-us/articles/how-to-call-resume-and-pause-api-from-fortran-code

but when I link I get:

api_fortran_itt.o: In function `fortran_itt_resume_':
api_fortran_itt.c:(.text+0x4): undefined reference to `__itt_resume_ptr__3_0'
api_fortran_itt.o: In function `fortran_itt_pause_':
api_fortran_itt.c:(.text+0x24): undefined reference to `__itt_pause_ptr__3_0'

I’m trying to link to the library here:

-L/opt/intel/vtune_amplifier_xe/bin64/k1om  -littnotify

Is the Vtune pause/resume API supported on KNC?  If so, what is the correct library and link option, please?

0 Kudos
2 Replies
TimP
Honored Contributor III
584 Views

Support for this was first announced in VTune update 13 (current).  Another update may be needed.

0 Kudos
John_Michalakes
584 Views

I upgraded to the 21 Oct. 2013 (Update 14) of Vtune and same problem as before.  But then discovered that it will link properly if

-L/opt/intel/vtune_amplifier_xe_2013/bin64/k1om -littnotify

comes at the end of the link-line, after the api_fortran.o file.  Probably would have worked with the Update13 version.  Just following up here in case anyone else gets tripped up by this.  Thanks for the reply,  -John

0 Kudos
Reply