The first call to curandSetPseudoRandomGeneratorSeed() right after curandCreateGenerator() runs fine. However the second call in SetRNGSeed() on the same generator causes SEGV.
Is there a way to reset the generator without destroying and creating steps?
Thanks a lot.
xunlei
I think it should be possible. You should provide a complete code that demonstrates the failure, it may have nothing to do with the code you have shown. What you have shown seems to work without error for me:
Hi txbob,
thank you very much for the quick diagnosis.
It turned out that I was trashing the address of hosting structure of gen in my code (gen is a field of that struct) when I calling SetRNGSeed() and thus the segv issue.
After I fix my bug, I verified that curandSetPseudoRandomGeneratorSeed() indeed can be called multiple times on the same handle.
Sorry for the false alarm.