Community
cancel
Showing results for 
Search instead for 
Did you mean: 
B___Christoph
Beginner
104 Views

What is the default_random_engine for Intel Compiler in std::random

And secondly, where is this documented? I think gcc's standard is a Mersenne Twister, but what is the standard for icpc?

 

Thank you for your response,

 Christoph.

0 Kudos
3 Replies
Viet_H_Intel
Moderator
104 Views

icpc is compatible with gcc. So, it would be the same standard as GCC's.

B___Christoph
Beginner
104 Views

Viet Hoang (Intel) wrote:

icpc is compatible with gcc. So, it would be the same standard as GCC's.

Hello Viet Hoang,

So default_random_engine is mt19937? Is that what you are saying? I am asking because from our tests, it seems it is not. The coherence length seems to be a lot smaller.

Viet_H_Intel
Moderator
104 Views

This is part of the C++ standard library which Intel doesn’t supply. The Intel linker just links in the library on the system. I am not sure why you got a smaller coherence length.