This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: illegal instruction (CPU mismatch)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]