illegal instruction (CPU mismatch)
Markus Trippelsdorf
markus@trippelsdorf.de
Fri Sep 16 12:47:00 GMT 2016
On 2016.09.16 at 12:40 +0000, Mahmood Naderan wrote:
>
>
> >Try adding -mno-bmi to your CFLAGS and CXXFLAGS to clear the BMI/BMI2 issue.
>
> >I don't know about the other cpu flags. GCC is good about taking a cpu
> >feature, like ADX, and using -madx and -mno-adx. An exception is
> >RDRAND, whits omits the A for some reason; you use -mrdrnd.
>
> >Jeff
>
>
> Using -mno-adx returns
>
>
>
> checking for linker flag to name executables... configure: error: Could not determine flag to name executables
>
>
> Using -mrdrnd -mno-bmi returns the "illegal instruction" much sooner than before.
>
>
> This is a very bad issue. I really want to know what is the instruction?!
Well, if you simply want to avoid the issue, just compile without
-march=amdfam10 (this really assumes that all machines are of the same
type) or use -mtune=amdfam10 instead.
Details on how to remotely debug Open MP jobs are off topic on this list.
--
Markus
More information about the Gcc-help
mailing list