Forum Discussion
how use opencl generate random number in the FPGA
- 4 years ago
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
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