PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

CURAND with Fortran

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
Tuan



Joined: 11 Jun 2009
Posts: 233

PostPosted: Fri Mar 16, 2012 7:53 pm    Post subject: CURAND with Fortran Reply with quote

Hi,
Any one know a sample of calling cuRAND generator in Fortran. Also, what if my applications need thousand of random sequences (i.e. I need to use an array of seed values). Is it possible to do this in cuRAND or another available library?


Thanks,
Tuan
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5952
Location: The Portland Group Inc.

PostPosted: Mon Mar 19, 2012 8:52 am    Post subject: Reply with quote

Hi Tuan,

I don't have an example of using CURAND but will ask around. I did write an article that calls a CUDA C Mercenne Twister RNG and calling CURAND would use the same methods. Basically, you just need to add an interface to the CURAND methods.

See http://www.pgroup.com/lit/articles/insider/v2n1a4.htm

- Mat
Back to top
View user's profile
peewee



Joined: 05 Nov 2012
Posts: 1

PostPosted: Mon Nov 12, 2012 5:53 am    Post subject: Reply with quote

Hello Tuan,
may I ask you how you did solve your problem? I think I need to do the same: I need many random number in every thread running on the GPU while update the configuration of a lattice.

Thank you!
Cheers,
Davide
Back to top
View user's profile
Tuan



Joined: 11 Jun 2009
Posts: 233

PostPosted: Wed Nov 14, 2012 3:51 pm    Post subject: Reply with quote

Hi Davide,
Sorry, I haven't tried cuRAND since then. I'm using two random number generators: SARU (after talking to the author, Steve Worley, at GTC'11), and Mersene Twister on GPU (provided by a group from Japan).

Bests,
Tuan
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group