According to the CURAND documentation curandGenerate creates unsigned int. Accidentally I used it with float in pgfortran 17.10-0, and as I see it generates the same uniform random numbers as curandGenerateUniform.
Is there any difference?
This is the code I used.
real, managed :: tmprN(1000) seed=1 istat = curandCreateGenerator(gen,CURAND_RNG_PSEUDO_XORWOW) istat = curandSetPseudoRandomGeneratorSeed( gen, seed) istat = curandGenerateUniform(gen, tmprN, N)
same results with istat = curandGenerate(gen, tmprN, N)