Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
151 Views

Device API for random number generator

Does oneAPI have GPU device API for random number generator?  I understand I can build an engine for a GPU device queue and call `mkl::rng::generate` on the host to generate a number of random numbers.  But I would like to be able to call a function to generate random numbers on the fly in a GPU device function.  Thanks!

 

Tags (1)
0 Kudos
4 Replies
Highlighted
Moderator
151 Views

Hi,

With oneMKL, using mkl::rng::generate, random number generation happens on the device(callable from host) but there's no device specific API as such to generate random numbers on the fly. 

We will escalate this to the concerned team as a feature request. Thanks for the question.

 

--Rahul

0 Kudos
Highlighted
151 Views

Hi,

I have raised this issue to the Engineering as a feature request. I will let you know once we get the updates.

 

Regards,

Subarna

0 Kudos
Highlighted
104 Views

Hi,

This issue is fixed is Beta08. Please try and let us know if you are facing any issues.


Regards,

Subarna


0 Kudos
Highlighted
102 Views

0 Kudos