I have a linux pgfortran compiler. I wish to generate an executable which could run on other architecture/operating system (such as windows).
Is such a feature exist? and if this is possible, how it is done?
Unfortunately, this is not possible with the current PGI compiler suite.
You can compile a single Linux binary to run on different processor variants (e.g. AMD with FMA4, Intel without) via the -tp flag, e.g.
But it is not possible to compile a single binary for different operating systems.
Hope this helps,
Thanks for your help.
A related question: Is there a way to check performance of an executable
created by pgfortran by the nvidia performance tool “nsight”?