Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random number generation? #128

Closed
jeremysalwen opened this issue Mar 8, 2015 · 1 comment
Closed

Random number generation? #128

jeremysalwen opened this issue Mar 8, 2015 · 1 comment

Comments

@jeremysalwen
Copy link

In this thread http://sourceforge.net/p/viennacl/discussion/1143678/thread/f6fe1301/ it seems that there is no functionality for generating vectors/matrices of random numbers. Is there any suggested workaround for generating random numbers on the opencl device?

I am finding that copying the random numbers over is taking an excessive amount of time (I am generating a 784*784 matrix of booleans in my inner loop).

@ptillet
Copy link
Collaborator

ptillet commented Mar 8, 2015

Hello Jeremy,

It is not supported by ViennaCL right now. You may want to use an external
OpenCL RNG library (such as
http://cas.ee.ic.ac.uk/people/dt10/research/rngs-gpu-mwc64x.html) and
create a custom kernel.

Philippe

On Sat, Mar 7, 2015 at 9:37 PM, Jeremy Salwen notifications@github.com
wrote:

In this thread
http://sourceforge.net/p/viennacl/discussion/1143678/thread/f6fe1301/ it
seems that there is no functionality for generating vectors/matrices of
random numbers. Is there any suggested workaround for generating random
numbers on the opencl device?

I am finding that copying the random numbers over is taking an excessive
amount of time (I am generating a 784*784 matrix of booleans in my inner
loop).


Reply to this email directly or view it on GitHub
#128.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants