Intel® oneAPI Base Toolkit
Support for core tools and libraries to build and deploy high-performance data-centric applications
Announcements
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.
338 Discussions

how to save random engine state in DPC++(oneAPI)

jimbook
Beginner
250 Views

when I use CUDA to generate random at a number of threads, I can use `curandState` to save random engine state. And I want to note how to save oneDPL random engine state.

0 Kudos
3 Replies
SantoshY_Intel
Moderator
200 Views

Hi,

 

Thanks for posting in the Intel forums.

 

You can make use of Intel oneMKL to use random engine state.

Example:

oneapi::mkl::rng::device::philox4x32x10<4> *rngStates;

 

For more information, please refer to the Intel® oneAPI Math Kernel Library (oneMKL) - Data Parallel C++ Developer Reference.

 

 

Thanks & Regards,

Santosh

 

SantoshY_Intel
Moderator
153 Views

Hi,


We haven't heard back from you. Could you please provide us with an update on your issue?


Thanks & Regards,

Santosh


SantoshY_Intel
Moderator
114 Views

Hi,


I assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Thanks & Regards,

Santosh


Reply