Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

-march=generic unsupported

ereisch
New Contributor II
741 Views

When I try to compile a source file with 15.0.2, and set the flag "-march=generic", I receive the warning "invalid argument for option '-m'".  The documentation (or more specifically, the manpage) for ifort specifies "generic" as an available option for the -march flag.  This appears to be an oversight in the documentation.

0 Kudos
3 Replies
Steven_L_Intel1
Employee
741 Views

It looks as if this has been a problem for a long time. I note that gcc doesn't have such an option. If you really want to do this, -mcpu=generic works. Issue ID is DPD200255416

0 Kudos
ereisch
New Contributor II
741 Views

Thanks.  Actually I'm trying to prevent the Fortran RTL from calling the "ENTER" x86 opcode (0xC8).  I'm trying to valgrind my Fortran program to find a memory leak and it chokes on that opcode shortly after starting, since it doesn't support it.  It appears to be called from within __intel_cpu_indicator_init(), so I was hoping by turning off CPU-specific optimizations I could prevent this routine from being called.  Since gcc hasn't supported emitting this instruction for a very long time (apparently, everyone says "don't use it; it's slow"), the developers of valgrind have expressed hesitation at implementing it anytime soon, if at all.

0 Kudos
Steven_L_Intel1
Employee
741 Views

Compiler options won't help here as they don't affect library calls (at least not this one). I would not expect to see a call to this made if you didn't also use -x or -ax.

0 Kudos
Reply