Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29082 Discussions

Is -finstrument-functions no longer supported?

Weiss__Christian
2,015 Views

The OneAPI Fortran Compiler ifx (ifx (IFORT) 2022.1.0 20220316) does not list the option "-finstrument-functions" any more in its help page. Compiling with this option also fails.

Is "-finstrument-functions" no longer supported? Are there any plans on supporting it again in the future?

0 Kudos
7 Replies
Barbara_P_Intel
Employee
1,982 Views

"-finstrument-functions" is not supported with ifx.

 

0 Kudos
Ron_Green
Moderator
1,973 Views

@Weiss__Christian I'm curious, do you have a need for this capability?  Or that you noticed that the ifx driver rejected it and were curious why the documentation didn't call this out as an 'ifort only' option?

 

Are you actually writing code to intercept the 

__cyg_profile_fun_[enter | exit] functions with your own instrumentation? 

 

In other words, what is your use and need for this option?

 

ron

0 Kudos
Weiss__Christian
1,934 Views

We have a profiler for HPC applications based on the function hooks: https://github.com/SX-Aurora/Vftrace

This will in its current form not be usable with the new Intel Fortran compiler.

Ron_Green
Moderator
1,911 Views

I see.  Yes, makes perfect sense why this is needed.  I will bring this request or need to the development team tomorrow and also with our product manager.   I do see the need and would like to see Vftrace to work with IFX.   Thank you for bringing this to my attention.

 

 

0 Kudos
Weiss__Christian
1,876 Views

Hi Ron,

 

thank you for having a look into this issue. 

I know that the cyg_profile hooks are a rather archaic feature, but I do not know of any other way to intercept function calls. However, I think its a simple and straightforward way to achieve this goal. Just out of curiosity, can you think of another way to intercept function calls in case this feature would be declared deprecated? 

0 Kudos
Ron_Green
Moderator
1,845 Views

I don't know of another way to get this functionality. Plus, this is simple and is supported by multiple compilers.

I escalated this with the team and we agreed we need this in ifx. Seems it just got overlooked in our frantic development plan for ifx.

The bug ID is CMPLRLLVM-46942. We will update this Forum thread when we get this implemented in ifx.


0 Kudos
Ron_Green
Moderator
1,495 Views

-finstrument-functions is now implemented for ifx in the 2024.0 release.


0 Kudos
Reply