- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good Day,
When using the intel oneAPI compiler, looking at equivalent flags to create code coverage for fortran. These steps worked for c/c++ - now looking for Fortran equivalent please:
c/c++ instructions:
1) build with cflags -O0 -prof-gen=srcpos
2) run tests
3) run profmerge
4) run codecov
Thanks!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your steps should be similar for Fortran.
This is what I did on Windows/VS2019/IFORT a while ago :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Be aware that code coverage is only available for ifort, not ifx.
ifort is deprecated and will be discontinued in late 2024. ifx is the new Intel Fortran Compiler. See this thread for more information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day - why is code coverage no longer supported for ifx? What is the alternative solution Intel will be providing?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As you know, ifx uses LLVM as its code generator plus some Intel optimizations. LLVM does not implement a code coverage feature and Intel hasn't added it.
I'm not aware of other solutions. I asked the developers, too. They aren't aware of other solutions either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Barbara, a quick search showed llvm-cov I believe that it should be possible to get it work with ifx. I would like to stress that reaching a high code coverage has become more and more important in the past few years, therefore this feature is very important.
Best regards,
Riccardo

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