Switch PGI versions on the fly


I have several versions of PGI installed (some 2017 some 2018).

How can I switch between them?

Right now, all my paths etc point to the “2017” or “2018” directories.

Is there a simple way to switch to use different versions?

  • Ron

The “-V” (version) flag.

Using “-V18.4” will switch to using version 18.4, “-V17.10” will use 17.10, etc.

I use this all the time since I often jump between compiler versions. Also, I find that it makes it more clear exactly which version I was using,