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

Compiling with icc18 on Linux x86_64 with "-fast" on AMD CPU produces code containing unsupported instruction

Yakov_Mindelis
Beginner
597 Views

Hello,

 

Any program compiled with icc18 on AMD CPU with "-fast" option results in executable that produces the following error when launched:

Please verify that both the operating system and the processor support Intel(R) X87, CMOV, MMX, FXSAVE, SSE, SSE2 and SSE3 instructions.
CPU information from the OS (no SSE3 there):

> head /proc/cpuinfo -n 26
processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 16
model		: 9
model name	: AMD Opteron(tm) Processor 6174
stepping	: 1
cpu MHz		: 2200.000
cache size	: 512 KB
physical id	: 0
siblings	: 12
core id		: 0
cpu cores	: 12
apicid		: 16
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 5
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nonstop_tsc extd_apicid amd_dcm pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr
bogomips	: 4399.72
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

Looks like this is against the specification of "-fast" in the manual:
 

> icc -help | egrep "\-fast|\-x" -A1
-fast     enable -xHOST -O3 -ipo -no-prec-div -static -fp-model fast=2

--
-x<code>  generate specialized code to run exclusively on processors
          indicated by <code> as described below
--
-xHost    generate instructions for the highest instruction set and processor
          available on the compilation host machine


Thanks.

0 Kudos
1 Solution
Olga_M_Intel
Employee
597 Views

Looks like this is a known issue and will be fixed in the next compiler update.

View solution in original post

0 Kudos
2 Replies
Olga_M_Intel
Employee
598 Views

Looks like this is a known issue and will be fixed in the next compiler update.

0 Kudos
Yakov_Mindelis
Beginner
597 Views

Thanks!

0 Kudos
Reply