- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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!
Lien copié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Your steps should be similar for Fortran.
This is what I did on Windows/VS2019/IFORT a while ago :
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Good day - why is code coverage no longer supported for ifx? What is the alternative solution Intel will be providing?
Thanks!
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable