Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

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

B___Christoph
Beginner
684 Views

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
684 Views

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

0 Kudos
B___Christoph
Beginner
684 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.

0 Kudos
Viet_H_Intel
Moderator
684 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.

0 Kudos
Reply