What is the best way to port code that generates random number on the fly using random_number() to the GPU using OpenACC ? PGI fails with:
PGF90-S-0155-Call to PGI runtime function not supported - pghpf_rnum
so i am guessing the OpenACC compiler doesn’t have something like the cuRAND library. The PGI compiler is v17.7
The code actually needs random numbers satisfying a Poisson distribution given a mean ($\lambda$) value. I can not generate the random numbers on CPU and copy them to the GPU to be used later because of the mean values are known only at run-time. I am not sure if there is a normalized version of the Poisson distribution that will avoid the need for the mean value to generate a random number.