albusSimba albusSimba - 3 years ago 291
C++ Question

cpu requirements for `x86intrin.h`?

Hi there I thought the minimum CPU requirements to run

is an intel 3th gen processor.

however when i run this code


i get the following error

error: inlining failed in call to always_inline 'int _rdseed64_step(long long unsigned int*)': target specific option mismatch

_rdseed64_step (unsigned long long *__p)

I have set the flag to
and it only occurs when i am using my desktop, when i run on my laptop that is running a 6th gen processor it works fine.

Answer Source

From Intel knowledge base:

The corresponding 4th Generation Intel® Core™ instruction is RDSEED.

So it looks like you can not use it on 3th gen processor.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download