- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"-finstrument-functions" is not supported with ifx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
-finstrument-functions is now implemented for ifx in the 2024.0 release.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page