clh01s
New Contributor
4 years agohow use opencl generate random number in the FPGA
I'm a novice.
I use opencl develop.
I have a A10 pac. want use it generate random number to calculate.
so have any solution use opencl generate random number?
thank you help!!!
Hi @clh01s,
Thank you for posting in Intel community forum, hope all is well and apologies for the delayed in response.
Unfortunately openCL does not provide any build-in function for random numbers.
However, would suggest to try on the following recommendation:
- generate an array of ramdom numbers on the host and pass the pointer of the array to a kernal.
- using prebuild libraries that provides streams of random numbers from host. (perhaps try clRNG)Hope that clarify.
Best Wishes
BB