Just install g16 as you normally would with any Intel CPU, and add PGI_FASTMATH_CPU=haswell
at the end of $g16root/g16/bsd/g16.profile
. source
it as you normally would.
Tested to work with G16 Rev. A03 AVX2 version on AMD Ryzen 7 4800U, with Ubuntu 20.04 LTS.
tested with RYZEN 9 5900HS under ubuntu 21.10