- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a project which consists of C++, C and Fortran files and I was hoping to be able to produce code coverage via the LLVM flags "-fprofile-instr-generate -fcoverage-mapping". I'm putting these flags for icpx, icx and ifx at compile time and then linking with icpx with the "lifcore" flag and a main program with for_rtl_init and for_rtl_finish with the same coverage flags also.
This all builds just fine and produces a *.profraw file that I can then use to create a *.profdata file with llvm-profdata when I run the instrumented application and then I can produce the coverage report with llvm-cov. However it only includes the C++ and C files for coverage and has omitted all of the Fortran files.
I'm just wondering if this is not yet supported for IFX?
If this is the case, is my only option to use the ifort classic compilers? (even though they're being deprecated shortly?)
Many thanks.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For IFX we have implemented PGO but not the Code Coverage technology from LLVM. Code Coverage for IFX is on our list of features to implement in a coming release, hopefully for the 2024.0 release.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the response - glad to know I wasn't missing anything.
I look forward to the 2024.0 release with this (hopefully) in!
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page