Pushing language C Popping language C Pushing language CUDA Popping language CUDA Pushing language Cxx Popping language Cxx Pushing language FC Popping language FC ================================================================================ ================================================================================ Starting Configure Run at Wed Jan 8 14:46:45 2014 Configure Options: --configModules=PETSc.Configure --optionsModule=PETSc.compilerOptions --with-cc=/apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc --with-fc=/apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort --with-cxx=/apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc --prefix=/d/dev01/qlu/Lib/petsc-3.4.2-release-32bit --with-blas-lapack-dir=/apps/compilers/intel_2011/composerxe-2011.4.191/mkl/lib/ia32 --with-mpi-dir=/home/sudanhh/mpich2_4-install_32/ --with-mpi-compilers=0 --with-debugging=0 --with-x=0 --with-x11=0 --with-xt=0 --with-hypre=1 --with-hypre-dir=/d/dev01/qlu/Lib/hypre-2.8.0b/LINUX_32 --with-shared-libraries=0 Working directory: /d/dev01/qlu/Lib/petsc-3.4.2 Machine platform: ('Linux', 'houhpclc01', '2.6.18-308.4.1.el5', '#1 SMP Tue Apr 17 17:08:10 EDT 2012', 'i686', 'i686') Python version: 2.7.5 (default, Jan 7 2014, 16:52:09) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] ================================================================================ Pushing language C Popping language C Pushing language CUDA Popping language CUDA Pushing language Cxx Popping language Cxx Pushing language FC Popping language FC ================================================================================ TEST configureExternalPackagesDir from config.framework(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/framework.py:821) TESTING: configureExternalPackagesDir from config.framework(config/BuildSystem/config/framework.py:821) ================================================================================ TEST configureDebuggers from PETSc.utilities.debuggers(/d/dev01/qlu/Lib/petsc-3.4.2/config/PETSc/utilities/debuggers.py:22) TESTING: configureDebuggers from PETSc.utilities.debuggers(config/PETSc/utilities/debuggers.py:22) Find a default debugger and determine its arguments Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/gdb...not found Checking for program /d/dev01/yikuny/local/jdk/bin/gdb...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/gdb...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/gdb...not found Checking for program /usr/kerberos/bin/gdb...not found Checking for program /sbin/gdb...not found Checking for program /usr/sbin/gdb...not found Checking for program /bin/gdb...not found Checking for program /usr/bin/gdb...found Defined make macro "GDB" to "/usr/bin/gdb" Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/dbx...not found Checking for program /d/dev01/yikuny/local/jdk/bin/dbx...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/dbx...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/dbx...not found Checking for program /usr/kerberos/bin/dbx...not found Checking for program /sbin/dbx...not found Checking for program /usr/sbin/dbx...not found Checking for program /bin/dbx...not found Checking for program /usr/bin/dbx...not found Checking for program /usr/local/bin/dbx...not found Checking for program /usr/X11R6/bin/dbx...not found Checking for program /usr/applinux/bin/dbx...not found Checking for program /sbin/dbx...not found Checking for program /apps/cop/bin/dbx...not found Checking for program /home/shirags/bin/dbx...not found Checking for program /apps/pe/bin/dbx...not found Checking for program /apps/cop/bin/dbx...not found Checking for program /home/qlu/dbx...not found Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/xdb...not found Checking for program /d/dev01/yikuny/local/jdk/bin/xdb...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/xdb...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/xdb...not found Checking for program /usr/kerberos/bin/xdb...not found Checking for program /sbin/xdb...not found Checking for program /usr/sbin/xdb...not found Checking for program /bin/xdb...not found Checking for program /usr/bin/xdb...not found Checking for program /usr/local/bin/xdb...not found Checking for program /usr/X11R6/bin/xdb...not found Checking for program /usr/applinux/bin/xdb...not found Checking for program /sbin/xdb...not found Checking for program /apps/cop/bin/xdb...not found Checking for program /home/shirags/bin/xdb...not found Checking for program /apps/pe/bin/xdb...not found Checking for program /apps/cop/bin/xdb...not found Checking for program /home/qlu/xdb...not found Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/dsymutil...not found Checking for program /d/dev01/yikuny/local/jdk/bin/dsymutil...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/dsymutil...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/dsymutil...not found Checking for program /usr/kerberos/bin/dsymutil...not found Checking for program /sbin/dsymutil...not found Checking for program /usr/sbin/dsymutil...not found Checking for program /bin/dsymutil...not found Checking for program /usr/bin/dsymutil...not found Checking for program /usr/local/bin/dsymutil...not found Checking for program /usr/X11R6/bin/dsymutil...not found Checking for program /usr/applinux/bin/dsymutil...not found Checking for program /sbin/dsymutil...not found Checking for program /apps/cop/bin/dsymutil...not found Checking for program /home/shirags/bin/dsymutil...not found Checking for program /apps/pe/bin/dsymutil...not found Checking for program /apps/cop/bin/dsymutil...not found Checking for program /home/qlu/dsymutil...not found Defined make macro "DSYMUTIL" to "true" Defined "USE_GDB_DEBUGGER" to "1" ================================================================================ TEST configureCLanguage from PETSc.utilities.languages(/d/dev01/qlu/Lib/petsc-3.4.2/config/PETSc/utilities/languages.py:28) TESTING: configureCLanguage from PETSc.utilities.languages(config/PETSc/utilities/languages.py:28) Choose whether to compile the PETSc library using a C or C++ compiler C language is C Defined "CLANGUAGE_C" to "1" ================================================================================ TEST configureFortranLanguage from PETSc.utilities.languages(/d/dev01/qlu/Lib/petsc-3.4.2/config/PETSc/utilities/languages.py:37) TESTING: configureFortranLanguage from PETSc.utilities.languages(config/PETSc/utilities/languages.py:37) Turn on Fortran bindings Using Fortran ================================================================================ TEST configureMake from config.programs(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/programs.py:24) TESTING: configureMake from config.programs(config/BuildSystem/config/programs.py:24) Check various things about make Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/make...not found Checking for program /d/dev01/yikuny/local/jdk/bin/make...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/make...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/make...not found Checking for program /usr/kerberos/bin/make...not found Checking for program /sbin/make...not found Checking for program /usr/sbin/make...not found Checking for program /bin/make...not found Checking for program /usr/bin/make...found Defined make macro "MAKE" to "/usr/bin/make" Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/strings...not found Checking for program /d/dev01/yikuny/local/jdk/bin/strings...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/strings...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/strings...not found Checking for program /usr/kerberos/bin/strings...not found Checking for program /sbin/strings...not found Checking for program /usr/sbin/strings...not found Checking for program /bin/strings...not found Checking for program /usr/bin/strings...found Defined make macro "STRINGS" to "/usr/bin/strings" sh: /usr/bin/strings /usr/bin/make Executing: /usr/bin/strings /usr/bin/make sh: /lib/ld-linux.so.2 __gmon_start__ libc.so.6 _IO_stdin_used globfree64 fflush strcpy __rawmemchr __printf_chk fnmatch _IO_putc setlocale strsignal strncmp optind strrchr wait pipe __strdup dcgettext closedir glob64 sigprocmask __stack_chk_fail unlink realloc abort stdin _exit getpid kill __assert_fail feof getloadavg fgets getpwnam calloc strlen sigemptyset memset strstr __errno_location chdir dup2 __fxstat64 __fprintf_chk sigaddset ctime putenv stdout fputs memcpy fclose __strtol_internal malloc remove __strncpy_chk __lxstat64 opendir __xstat64 getenv __ctype_b_loc sscanf optarg stderr alarm setrlimit64 getlogin readlink getopt_long execvp __realpath_chk getcwd fwrite fread gettimeofday sigaction mkstemp64 waitpid localtime lseek64 strchr vfork __vfprintf_chk fdopen readdir64 qsort __strtod_internal __strcpy_chk __ctype_tolower_loc setvbuf fcntl getrlimit64 __sprintf_chk bsd_signal memmove fopen64 bindtextdomain opterr strcmp strerror __libc_start_main ferror free __environ __cxa_atexit GLIBC_2.2.3 GLIBC_2.4 GLIBC_2.3 GLIBC_2.2 GLIBC_2.3.4 GLIBC_2.1 GLIBC_2.1.3 GLIBC_2.0 PTRhp[ <*t%-t[ t,;X [^_] ,[^_] < v [^_] $(MA KEOV ERRI DES) >-tZ [^_] $(-* -com mand -var iabl es-*f WVSQ :St@ ;/t6 GmXX XXXX [^_] [^_] [^_] [^_] ARFILENAMES/ # commands to execute (built-in): (from `%s', line %lu): %.*s *** [%s] Deleting file `%s' *** Deleting file `%s' unlink: kill $(MAKE) ${MAKE} .SUFFIXES *** [%s] Archive member `%s' may be bogus; not deleted *** Archive member `%s' may be bogus; not deleted ARFLAGS CHECKOUT,v COFLAGS $(CC) -E $(FC) F77FLAGS $(FFLAGS) LINT lint YACC yacc MAKEINFO makeinfo TEXI2DVI texi2dvi CWEAVE cweave CTANGLE ctangle rm -f LINK.o COMPILE.c LINK.c COMPILE.cc COMPILE.C $(COMPILE.cc) COMPILE.cpp LINK.cc LINK.C $(LINK.cc) LINK.cpp YACC.y $(YACC) $(YFLAGS) LEX.l $(LEX) $(LFLAGS) -t COMPILE.f LINK.f COMPILE.F LINK.F COMPILE.r LINK.r COMPILE.def COMPILE.mod COMPILE.p LINK.p LINK.s COMPILE.s LINK.S COMPILE.S PREPROCESS.S $(CC) -E $(CPPFLAGS) PREPROCESS.F PREPROCESS.r LINT.c OUTPUT_OPTION -o $@ .LIBPATTERNS lib%.so lib%.a $(AR) $(ARFLAGS) $@ $< %.out @rm -f $@ cp $< $@ %.w %.ch $(CTANGLE) $^ $@ %.tex $(CWEAVE) $^ $@ $(CHECKOUT,v) RCS/%,v RCS/% SCCS/s.% $(COMPILE.mod) -o $@ -e $@ $^ .def.sym $(COMPILE.def) -o $@ $< cat $< >$@ chmod a+x $@ .s.o $(COMPILE.s) -o $@ $< .S.o $(COMPILE.S) -o $@ $< .c.o .cc.o .C.o .cpp.o .f.o .p.o .F.o .r.o .mod.o $(COMPILE.mod) -o $@ $< .c.ln $(LINT.c) -C$* $< .y.ln .l.ln .y.c .l.c @$(RM) $@ $(LEX.l) $< > $@ .F.f .r.f .l.r .S.s $(PREPROCESS.S) $< > $@ .texinfo.info .texi.info .txinfo.info .tex.dvi $(TEX) $< .texinfo.dvi .texi.dvi .txinfo.dvi .w.c $(CTANGLE) $< - $@ .web.p $(TANGLE) $< .w.tex $(CWEAVE) $< - $@ .web.tex $(WEAVE) $< +$(if $(wildcard $@),,$(CO) $(COFLAGS) $< $@) $(CC) $(LDFLAGS) $(TARGET_ARCH) $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) $(FC) $(FFLAGS) $(TARGET_ARCH) -c $(FC) $(FFLAGS) $(LDFLAGS) $(TARGET_ARCH) $(FC) $(FFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $(FC) $(FFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) $(FC) $(FFLAGS) $(RFLAGS) $(TARGET_ARCH) -c $(FC) $(FFLAGS) $(RFLAGS) $(LDFLAGS) $(TARGET_ARCH) $(M2C) $(M2FLAGS) $(DEFFLAGS) $(TARGET_ARCH) $(M2C) $(M2FLAGS) $(MODFLAGS) $(TARGET_ARCH) $(PC) $(PFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $(PC) $(PFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) $(CC) $(ASFLAGS) $(LDFLAGS) $(TARGET_MACH) $(AS) $(ASFLAGS) $(TARGET_MACH) $(CC) $(ASFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_MACH) $(CC) $(ASFLAGS) $(CPPFLAGS) $(TARGET_MACH) -c $(FC) $(FFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -F $(FC) $(FFLAGS) $(RFLAGS) $(TARGET_ARCH) -F $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(TARGET_ARCH) $(GET) $(GFLAGS) $(SCCS_OUTPUT_OPTION) $< $(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@ $(LINK.s) $^ $(LOADLIBES) $(LDLIBS) -o $@ $(LINK.S) $^ $(LOADLIBES) $(LDLIBS) -o $@ $(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@ $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ $(LINK.C) $^ $(LOADLIBES) $(LDLIBS) -o $@ $(LINK.cpp) $^ $(LOADLIBES) $(LDLIBS) -o $@ $(LINK.f) $^ $(LOADLIBES) $(LDLIBS) -o $@ $(LINK.p) $^ $(LOADLIBES) $(LDLIBS) -o $@ $(LINK.F) $^ $(LOADLIBES) $(LDLIBS) -o $@ $(LINK.r) $^ $(LOADLIBES) $(LDLIBS) -o $@ $(COMPILE.c) $(OUTPUT_OPTION) $< $(COMPILE.cc) $(OUTPUT_OPTION) $< $(COMPILE.C) $(OUTPUT_OPTION) $< $(COMPILE.cpp) $(OUTPUT_OPTION) $< $(COMPILE.f) $(OUTPUT_OPTION) $< $(COMPILE.p) $(OUTPUT_OPTION) $< $(COMPILE.F) $(OUTPUT_OPTION) $< $(COMPILE.r) $(OUTPUT_OPTION) $< $(YACC.y) $< $(LINT.c) -C$* y.tab.c $(RM) y.tab.c @$(RM) $*.c $(LEX.l) $< > $*.c $(LINT.c) -i $*.c -o $@ $(RM) $*.c $(YACC.y) $< mv -f y.tab.c $@ $(PREPROCESS.F) $(OUTPUT_OPTION) $< $(PREPROCESS.r) $(OUTPUT_OPTION) $< $(LEX.l) $< > $@ mv -f lex.yy.r $@ $(MAKEINFO) $(MAKEINFO_FLAGS) $< -o $@ $(TEXI2DVI) $(TEXI2DVI_FLAGS) $< # Directories # %s: could not be stat'd. files, impossibilities so far. # %s (device %ld, inode %ld): could not be opened. # %s (device %ld, inode %ld): impossibilities in %lu directories. unterminated variable reference warning: undefined variable `%.*s' Recursive variable `%s' references itself (eventually) # Files # files hash-table stats: %04d-%02d-%02d %02d:%02d:%02d .%09d # Not a target: %s:%s | %s # Command-line target. # Also makes: # File does not exist. # File is very old. # Last modified %s # File has been updated. # File has not been updated. # Successfully updated. file.c question_flag # Failed to be updated. Current time *name != '\0' .PRECIOUS .LOW_RESOLUTION_TIME .PHONY .INTERMEDIATE .SECONDARY .EXPORT_ALL_VARIABLES .IGNORE .SILENT .NOTPARALLEL # Precious file (prerequisite of .PRECIOUS). # Phony target (prerequisite of .PHONY). # A default, MAKEFILES, or -include/sinclude makefile. # Implicit rule search has been done. # Implicit rule search has not been done. # Implicit/static pattern stem: `%s' # File is an intermediate prerequisite. # Modification time never checked. # Commands currently running (THIS IS A BUG). # Dependencies commands running (THIS IS A BUG). # Needs to be updated (-q is set). # Invalid value in `update_status' member! # Invalid value in `command_state' member! %s: Timestamp out of range; substituting %s Commands were specified for file `%s' at %s:%lu, Commands for file `%s' were found by implicit rule search, but `%s' is now considered the same file as `%s'. Commands for `%s' will be ignored in favor of those for `%s'. can't rename single-colon `%s' to double-colon `%s' can't rename double-colon `%s' to single-colon `%s' *** Deleting intermediate file `%s' Removing intermediate files... print_file enter_file lookup_file undefined recursive simple %s: '%s' default environment environment override command line automatic addprefix basename %s:%lu: filter abspath addsuffix notdir filter-out findstring firstword flavor join lastword patsubst realpath shell sort strip wildcard wordlist words origin foreach call warning value eval insufficient number of arguments (%d) to function `%s' unimplemented on this platform: function `%s' Cleaning up temporary batch file %s Internal error: func_error: '%s' unterminated call to function `%s': missing `%c' non-numeric first argument to `word' function first argument to `word' function must be greater than 0 non-numeric first argument to `wordlist' function non-numeric second argument to `wordlist' function invalid first argument to `wordlist' function: `%d' Avoiding implicit rule recursion. Trying pattern rule with stem `%.*s'. Rejecting impossible implicit prerequisite `%s'. Rejecting impossible rule prerequisite `%s'. Trying implicit prerequisite `%s'. Trying rule prerequisite `%s'. Found prerequisite `%s' as VPATH `%s' Looking for a rule with intermediate file `%s'. Looking for an implicit rule for `%s'. Looking for archive-member implicit rule for `%s'. %s: Command not found SHELL %s: Shell program not found execvp: write jobserver [%s] Error %d (ignored) *** [%s] Error %d (core dumped) *** [%s] %s%s job.c ap <= end $(SHELL) $(IFS) /bin/sh vfork cannot enforce load limit: getloadavg (remote) remote_status wait .DELETE_ON_ERROR don't Duplicate the job FD read jobs pipe EOF read jobs pipe Read returned EBADF. break case continue exec exit login logout read readonly shift switch test trap umask while INTERNAL: Freeing child 0x%08lx (%s) but no tokens left! Released token for child 0x%08lx (%s). %s (line %d) Bad shell context (!unixy && !batch_mode_shell) cannot enforce load limits on this operating system Estimated system load = %f (actual = %f) (max requested = %f) Putting child 0x%08lx (%s) PID %ld%s on the chain. f->command_state == cs_finished *** Waiting for unfinished jobs.... Live child 0x%08lx (%s) PID %ld %s Reaping losing child 0x%08lx PID %ld %s Reaping winning child 0x%08lx PID %ld %s Cleaning up temp batch file %s Removing child 0x%08lx PID %ld%s from chain. Need a job token; we %shave children INTERNAL: no children as we go to sleep on read Obtained token for child 0x%08lx (%s). >construct_command_argv_internal start_waiting_job %s: Entering directory `%s' %s: Leaving directory `%s' %sThis program built for %s write MAKECMDGOALS Options: This program built for %s MFLAGS MAKEFLAGS /usr/share/locale getcwd .VARIABLES .FEATURES archives check-symlink MAKE_RESTARTS MAKE_COMMAND $(MAKE_COMMAND) MAKE -*-command-variables-*- ${-*-command-variables-*-} MAKEOVERRIDES MAKELEVEL CURDIR TMPDIR /tmp fopen (temporary file) fwrite (temporary file) .DEFAULT .DEFAULT_GOAL %d,%d dup jobserver creating jobs pipe init jobserver pipe Updating makefiles.... Makefile `%s' was not found chdir Re-executing[%u]: %s=%u MAKE_RESTARTS= MAKE_RESTARTS=%u main.c unlink (temporary file): No targets Updating goal targets.... always-make basic debug environment-overrides help ignore-errors include-dir jobs jobserver-fds load-average check-symlink-times just-print old-file print-data-base question no-builtin-rules no-builtin-variables silent no-keep-going touch version no-print-directory what-if warn-undefined-variables quiet stop new-file assume-new assume-old max-load dry-run recon %s: Entering an unknown directory %s: Leaving an unknown directory %s[%u]: Entering an unknown directory %s[%u]: Leaving an unknown directory %s[%u]: Entering directory `%s' %s[%u]: Leaving directory `%s' %sGNU Make %s %sCopyright (C) 2006 Free Software Foundation, Inc. %sThis is free software; see the source for copying conditions. %sThere is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A %sPARTICULAR PURPOSE. %sThis program built for %s (%s) # Make data base, printed on %s # Finished Make data base on %s INTERNAL: Exiting with %u jobserver tokens (should be 0)! INTERNAL: Exiting with %u jobserver tokens available; should be %u! empty string invalid as file name the `-%c' option requires a non-empty string argument the `-%c' option requires a positive integral argument Usage: %s [options] [target] ... This program built for %s (%s) Report bugs to target-specific order-only second-expansion else-if unknown debug level specification `%s' Makefile from standard input specified twice. internal error: multiple --jobserver-fds options internal error: invalid --jobserver-fds string `%s' warning: -jN forced in submake: disabling jobserver mode. warning: jobserver unavailable: using -j1. Add `+' to parent make rule. More parallel jobs (-jN) than this platform can handle requested. Resetting to single job (-j1) mode. Makefile `%s' might loop; not remaking it. Failed to remake makefile `%s'. Included makefile `%s' was not found. .DEFAULT_GOAL contains more than one target No targets specified and no makefile found warning: Clock skew detected. Your build may be incomplete. Couldn't change back to original directory. -b, -m Ignored for compatibility. -B, --always-make Unconditionally make all targets. -C DIRECTORY, --directory=DIRECTORY Change to DIRECTORY before doing anything. -d Print lots of debugging information. --debug[=FLAGS] Print various types of debugging information. -e, --environment-overrides Environment variables override makefiles. -f FILE, --file=FILE, --makefile=FILE Read FILE as a makefile. -h, --help Print this message and exit. -i, --ignore-errors Ignore errors from commands. -I DIRECTORY, --include-dir=DIRECTORY Search DIRECTORY for included makefiles. -j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg. -k, --keep-going Keep going when some targets can't be made. -l [N], --load-average[=N], --max-load[=N] Don't start multiple jobs unless load is below N. -L, --check-symlink-times Use the latest mtime between symlinks and target. -n, --just-print, --dry-run, --recon Don't actually run any commands; just print them. -o FILE, --old-file=FILE, --assume-old=FILE Consider FILE to be very old and don't remake it. -p, --print-data-base Print make's internal database. -q, --question Run no commands; exit status says if up to date. -r, --no-builtin-rules Disable the built-in implicit rules. -R, --no-builtin-variables Disable the built-in variable settings. -s, --silent, --quiet Don't echo commands. -S, --no-keep-going, --stop Turns off -k. -t, --touch Touch targets instead of remaking them. -v, --version Print the version number of make and exit. -w, --print-directory Print the current directory. --no-print-directory Turn off -w, even if it was turned on implicitly. -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE Consider FILE to be infinitely new. --warn-undefined-variables Warn when an undefined variable is referenced. main misc.c d == h %s:%lu: *** %s: *** %s[%u]: *** . Stop. virtual memory exhausted h->count != 0 %s: %s[%u]: write error: %s write error %s%s: %s hash_strfree hash_savestring hash_strdup $(HOME) HOME .POSIX .SECONDEXPANSION define endef ifdef ifndef ifeq ifneq else endif extraneous `%s' invalid syntax in conditional extraneous `endef' empty variable name empty `override' directive invalid `override' directive unexport vpath -include sinclude missing rule before commands missing separator%s read.c *p2 != '\0' v != 0 missing target pattern multiple target patterns missing `endif' Reading makefile `%s' (no default goal) (search path) (don't care) (no ~ expansion) MAKEFILE_LIST Reading makefiles... $(MAKEFILES) /usr/include .INCLUDE_DIRS /usr/gnu/include /usr/local/include GNUmakefile Makefile warning: NUL character seen; rest of line ignored prerequisites cannot be defined in command scripts mixed implicit and static pattern rules mixed implicit and normal rules target `%s' doesn't match the target pattern target file `%s' has both : and :: entries target `%s' given more than once in the same rule. warning: overriding commands for target `%s' warning: ignoring old commands for target `%s' Extraneous text after `endef' directive missing `endef', unterminated `define' Extraneous text after `%s' directive only one `else' per conditional commands commence before first target (did you mean TAB instead of 8 spaces?) Malformed target-specific variable definition target pattern contains no `%%' eval record_target_var lstat: readlink: $(strip $(.LIBPATTERNS)) %s/%s touch %s touch: open: touch: fstat: touch: read: touch: lseek: touch: write: Pruning file `%s'. Still updating file `%s'. Finished updating file `%s'. File `%s' does not exist. No need to remake target `%s' ; using VPATH name `%s' Must remake target `%s'. Ignoring VPATH name `%s'. remake.c Nothing to be done for `%s'. `%s' is up to date. /usr/lib .LIBPATTERNS element `%s' is not a pattern Warning: File `%s' has modification time %.2g s in the future %sNo rule to make target `%s'%s %sNo rule to make target `%s', needed by `%s'%s Considering target file `%s'. Recently tried and failed to update file `%s'. File `%s' was considered already. *** Warning: .LOW_RESOLUTION_TIME file `%s' has a high resolution time stamp Found an implicit rule for `%s'. No implicit rule found for `%s'. Using default commands for `%s'. Circular %s <- %s dependency dropped. Finished prerequisites of target file `%s'. The prerequisites of `%s' are being made. Giving up on target file `%s'. Target `%s' not remade because of errors. Prerequisite `%s' is order-only for target `%s'. Prerequisite `%s' of target `%s' does not exist. Prerequisite `%s' is newer than target `%s'. Prerequisite `%s' is older than target `%s'. Target `%s' is double-colon and has no prerequisites. No commands for `%s' and no prerequisites actually changed. Making `%s' due to always-make flag. Commands of `%s' are being run. Failed to remake target file `%s'. Successfully remade target file `%s'. Target file `%s' needs remade under -q. file->update_status >= 0 && file->update_status <= 2 _(knNupdate_file_1 # Implicit Rules # No implicit rules. # %u implicit rules, %u (%.1f%%) terminal. (%.o) BUG: num_pattern_rules wrong! %u != %u %s # of strings in strcache: %d %s strcache size: total = %d / max = %d / min = %d / avg = %d %s strcache free: total = %d / max = %d / min = %d / avg = %d %s # of strcache buffers: %d strcache.c best->bytesfree > len add_string environment under -e (from `%s', line %lu) define %s endef %s %s= $(subst ,,%s) # Variables %s : variable.c %s%s%s MAKE_VERSION MAKEFILES $(patsubst %/,%,$(dir $@)) $(patsubst %/,%,$(dir $%)) $(patsubst %/,%,$(dir $*)) $(patsubst %/,%,$(dir $<)) $(patsubst %/,%,$(dir $?)) $(patsubst %/,%,$(dir $^)) $(patsubst %/,%,$(dir $+)) $(notdir $@) $(notdir $%) $(notdir $*) $(notdir $<) $(notdir $?) $(notdir $^) $(notdir $+) pop_variable_scope # variable set hash-table stats: # Pattern-specific Variable Values # No pattern-specific variable values. # %u pattern-specific variable values current_variable_set_list->next != ((void *)0) 3.81 i686-redhat-linux-gnu # VPATH Search Paths vpath %s %s%c # No `vpath' search paths. # %u `vpath' search paths. $(strip $(VPATH)) $(strip $(GPATH)) # No general (`VPATH' variable) search path. # General (`VPATH' variable) search path: Load=%ld/%ld=%.0f%%, Rehash=%d, Collisions=%ld/%ld=%.0f%% Y@can't allocate %ld bytes for hash table: memory exhausted .out .a .ln .o .c .cc .C .cpp .p .f .F .r .y .l .s .S .mod .sym .def .h .info .dvi .tex .texinfo .texi .txinfo .w .ch .web .sh .elc .el /bin/sh -c #;"*?[]&|<>(){}$`^~! Defined make macro "OMAKE " to "/usr/bin/make --no-print-directory" Defined make rule "libc" with dependencies "${LIBNAME}(${OBJSC})" and code [] Defined make rule "libcu" with dependencies "${LIBNAME}(${OBJSCU})" and code [] Defined make rule "libf" with dependencies "${OBJSF}" and code -${AR} ${AR_FLAGS} ${LIBNAME} ${OBJSF} module multiprocessing found 1 cores: using make_np = 2 Defined make macro "MAKE_NP" to "2" ================================================================================ TEST configureMkdir from config.programs(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/programs.py:111) TESTING: configureMkdir from config.programs(config/BuildSystem/config/programs.py:111) Make sure we can have mkdir automatically make intermediate directories Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/mkdir...not found Checking for program /d/dev01/yikuny/local/jdk/bin/mkdir...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/mkdir...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/mkdir...not found Checking for program /usr/kerberos/bin/mkdir...not found Checking for program /sbin/mkdir...not found Checking for program /usr/sbin/mkdir...not found Checking for program /bin/mkdir...found sh: /bin/mkdir -p .conftest/tmp Executing: /bin/mkdir -p .conftest/tmp sh: Adding -p flag to /bin/mkdir -p to automatically create directories Defined make macro "MKDIR" to "/bin/mkdir -p" ================================================================================ TEST configurePrograms from config.programs(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/programs.py:133) TESTING: configurePrograms from config.programs(config/BuildSystem/config/programs.py:133) Check for the programs needed to build and run PETSc Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/sh...not found Checking for program /d/dev01/yikuny/local/jdk/bin/sh...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/sh...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/sh...not found Checking for program /usr/kerberos/bin/sh...not found Checking for program /sbin/sh...not found Checking for program /usr/sbin/sh...not found Checking for program /bin/sh...found Defined make macro "SHELL" to "/bin/sh" Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/sed...not found Checking for program /d/dev01/yikuny/local/jdk/bin/sed...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/sed...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/sed...not found Checking for program /usr/kerberos/bin/sed...not found Checking for program /sbin/sed...not found Checking for program /usr/sbin/sed...not found Checking for program /bin/sed...found Defined make macro "SED" to "/bin/sed" All intermediate test results are stored in /tmp/petsc-3SW45q All intermediate test results are stored in /tmp/petsc-3SW45q/config.programs sh: /bin/sed -i s/sed/sd/g "/tmp/petsc-3SW45q/config.programs/sed1" Executing: /bin/sed -i s/sed/sd/g "/tmp/petsc-3SW45q/config.programs/sed1" sh: Adding SEDINPLACE cmd: /bin/sed -i Defined make macro "SEDINPLACE" to "/bin/sed -i" Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/mv...not found Checking for program /d/dev01/yikuny/local/jdk/bin/mv...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/mv...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/mv...not found Checking for program /usr/kerberos/bin/mv...not found Checking for program /sbin/mv...not found Checking for program /usr/sbin/mv...not found Checking for program /bin/mv...found Defined make macro "MV" to "/bin/mv" Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/cp...not found Checking for program /d/dev01/yikuny/local/jdk/bin/cp...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/cp...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/cp...not found Checking for program /usr/kerberos/bin/cp...not found Checking for program /sbin/cp...not found Checking for program /usr/sbin/cp...not found Checking for program /bin/cp...found Defined make macro "CP" to "/bin/cp" Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/grep...not found Checking for program /d/dev01/yikuny/local/jdk/bin/grep...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/grep...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/grep...not found Checking for program /usr/kerberos/bin/grep...not found Checking for program /sbin/grep...not found Checking for program /usr/sbin/grep...not found Checking for program /bin/grep...found Defined make macro "GREP" to "/bin/grep" Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/rm...not found Checking for program /d/dev01/yikuny/local/jdk/bin/rm...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/rm...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/rm...not found Checking for program /usr/kerberos/bin/rm...not found Checking for program /sbin/rm...not found Checking for program /usr/sbin/rm...not found Checking for program /bin/rm...found Defined make macro "RM" to "/bin/rm -f" Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/diff...not found Checking for program /d/dev01/yikuny/local/jdk/bin/diff...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/diff...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/diff...not found Checking for program /usr/kerberos/bin/diff...not found Checking for program /sbin/diff...not found Checking for program /usr/sbin/diff...not found Checking for program /bin/diff...not found Checking for program /usr/bin/diff...found sh: "/usr/bin/diff" -w "/tmp/petsc-3SW45q/config.programs/diff1" "/tmp/petsc-3SW45q/config.programs/diff2" Executing: "/usr/bin/diff" -w "/tmp/petsc-3SW45q/config.programs/diff1" "/tmp/petsc-3SW45q/config.programs/diff2" sh: Defined make macro "DIFF" to "/usr/bin/diff -w" Checking for program /usr/ucb/ps...not found Checking for program /usr/usb/ps...not found Checking for program /home/qlu/ps...not found Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/gzip...not found Checking for program /d/dev01/yikuny/local/jdk/bin/gzip...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/gzip...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/gzip...not found Checking for program /usr/kerberos/bin/gzip...not found Checking for program /sbin/gzip...not found Checking for program /usr/sbin/gzip...not found Checking for program /bin/gzip...found Defined make macro "GZIP" to "/bin/gzip" Defined "HAVE_GZIP" to "1" Defined make macro "PYTHON" to "/d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/python" ================================================================================ TEST configureGit from config.sourceControl(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/sourceControl.py:24) TESTING: configureGit from config.sourceControl(config/BuildSystem/config/sourceControl.py:24) Find the Git executable Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/git...not found Checking for program /d/dev01/yikuny/local/jdk/bin/git...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/git...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/git...not found Checking for program /usr/kerberos/bin/git...not found Checking for program /sbin/git...not found Checking for program /usr/sbin/git...not found Checking for program /bin/git...not found Checking for program /usr/bin/git...not found Checking for program /usr/local/bin/git...not found Checking for program /usr/X11R6/bin/git...not found Checking for program /usr/applinux/bin/git...not found Checking for program /sbin/git...not found Checking for program /apps/cop/bin/git...not found Checking for program /home/shirags/bin/git...not found Checking for program /apps/pe/bin/git...not found Checking for program /apps/cop/bin/git...not found Checking for program /home/qlu/git...not found ================================================================================ TEST configureMercurial from config.sourceControl(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/sourceControl.py:35) TESTING: configureMercurial from config.sourceControl(config/BuildSystem/config/sourceControl.py:35) Find the Mercurial executable Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/hg...not found Checking for program /d/dev01/yikuny/local/jdk/bin/hg...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/hg...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/hg...not found Checking for program /usr/kerberos/bin/hg...not found Checking for program /sbin/hg...not found Checking for program /usr/sbin/hg...not found Checking for program /bin/hg...not found Checking for program /usr/bin/hg...not found Checking for program /usr/local/bin/hg...not found Checking for program /usr/X11R6/bin/hg...not found Checking for program /usr/applinux/bin/hg...not found Checking for program /sbin/hg...not found Checking for program /apps/cop/bin/hg...not found Checking for program /home/shirags/bin/hg...not found Checking for program /apps/pe/bin/hg...not found Checking for program /apps/cop/bin/hg...not found Checking for program /home/qlu/hg...not found ================================================================================ TEST configureCVS from config.sourceControl(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/sourceControl.py:46) TESTING: configureCVS from config.sourceControl(config/BuildSystem/config/sourceControl.py:46) Find the CVS executable Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/cvs...not found Checking for program /d/dev01/yikuny/local/jdk/bin/cvs...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/cvs...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/cvs...not found Checking for program /usr/kerberos/bin/cvs...not found Checking for program /sbin/cvs...not found Checking for program /usr/sbin/cvs...not found Checking for program /bin/cvs...not found Checking for program /usr/bin/cvs...found Defined make macro "CVS" to "cvs" sh: cvs --version Executing: cvs --version sh: Concurrent Versions System (CVS) 1.11.22 (client/server) Copyright (C) 2006 Free Software Foundation, Inc. Senior active maintainers include Larry Jones, Derek R. Price, and Mark D. Baushke. Please see the AUTHORS and README files from the CVS distribution kit for a complete list of contributors and copyrights. CVS may be copied only under the terms of the GNU General Public License, a copy of which can be found with the CVS distribution kit. Specify the --help option for further information about CVS ================================================================================ TEST configureSubversion from config.sourceControl(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/sourceControl.py:55) TESTING: configureSubversion from config.sourceControl(config/BuildSystem/config/sourceControl.py:55) Find the Subversion executable Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/svn...not found Checking for program /d/dev01/yikuny/local/jdk/bin/svn...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/svn...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/svn...not found Checking for program /usr/kerberos/bin/svn...not found Checking for program /sbin/svn...not found Checking for program /usr/sbin/svn...not found Checking for program /bin/svn...not found Checking for program /usr/bin/svn...found Defined make macro "SVN" to "svn" sh: svn --version -q Executing: svn --version -q sh: 1.6.11 ================================================================================ TEST configureDirectories from PETSc.utilities.petscdir(/d/dev01/qlu/Lib/petsc-3.4.2/config/PETSc/utilities/petscdir.py:28) TESTING: configureDirectories from PETSc.utilities.petscdir(config/PETSc/utilities/petscdir.py:28) Checks PETSC_DIR and sets if not set Version Information: #define PETSC_VERSION_RELEASE 1 #define PETSC_VERSION_MAJOR 3 #define PETSC_VERSION_MINOR 4 #define PETSC_VERSION_SUBMINOR 2 #define PETSC_VERSION_PATCH 0 #define PETSC_VERSION_DATE "Jul, 02, 2013" #define PETSC_VERSION_GIT "a071802d3efee8b987703a6ce2cf5d9a25fa8160" #define PETSC_VERSION_DATE_GIT "2013-07-02 09:33:06 -0500" #define PETSC_VERSION_(MAJOR,MINOR,SUBMINOR) \ #define PETSC_VERSION_LT(MAJOR,MINOR,SUBMINOR) \ #define PETSC_VERSION_LE(MAJOR,MINOR,SUBMINOR) \ #define PETSC_VERSION_GT(MAJOR,MINOR,SUBMINOR) \ #define PETSC_VERSION_GE(MAJOR,MINOR,SUBMINOR) \ Defined make macro "DIR" to "/d/dev01/qlu/Lib/petsc-3.4.2" Defined "DIR" to ""/d/dev01/qlu/Lib/petsc-3.4.2"" ================================================================================ TEST configureExternalPackagesDir from PETSc.utilities.petscdir(/d/dev01/qlu/Lib/petsc-3.4.2/config/PETSc/utilities/petscdir.py:77) TESTING: configureExternalPackagesDir from PETSc.utilities.petscdir(config/PETSc/utilities/petscdir.py:77) ================================================================================ TEST configureInstallationMethod from PETSc.utilities.petscdir(/d/dev01/qlu/Lib/petsc-3.4.2/config/PETSc/utilities/petscdir.py:84) TESTING: configureInstallationMethod from PETSc.utilities.petscdir(config/PETSc/utilities/petscdir.py:84) This is a tarball installation ================================================================================ TEST configureETags from PETSc.utilities.Etags(/d/dev01/qlu/Lib/petsc-3.4.2/config/PETSc/utilities/Etags.py:27) TESTING: configureETags from PETSc.utilities.Etags(config/PETSc/utilities/Etags.py:27) Determine if etags files exist and try to create otherwise Found etags file ================================================================================ TEST getDatafilespath from PETSc.utilities.dataFilesPath(/d/dev01/qlu/Lib/petsc-3.4.2/config/PETSc/utilities/dataFilesPath.py:29) TESTING: getDatafilespath from PETSc.utilities.dataFilesPath(config/PETSc/utilities/dataFilesPath.py:29) Checks what DATAFILESPATH should be Defined make macro "DATAFILESPATH" to "None" ================================================================================ TEST printEnvVariables from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:1504) TESTING: printEnvVariables from config.setCompilers(config/BuildSystem/config/setCompilers.py:1504) **** printenv **** GROUP=landmark REMOTEHOST=hotcenmb01.conocophillips.net HOSTTYPE=i386-linux SSH_CLIENT=158.139.61.51 50715 22 LOGNAME=qlu USER=qlu INPUTRC=/etc/inputrc HOME=/home/qlu PATH=/d/dev01/qlu/Lib/Python-2.7.5-32bit/bin:/d/dev01/yikuny/local/jdk/bin:/home/sudanhh/mpich2_4-install_32/bin:/apps/pe/mpich2/mpich2-install/bin:/usr/kerberos/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/applinux/bin:/sbin:/apps/cop/bin:/home/shirags/bin:/apps/pe/bin:/apps/cop/bin DISPLAY=hotcenmb01.conocophillips.net:0.0 CMG_HOME=/apps/stars/2009.10 LANG=en_US.UTF-8 TERM=xterm SHELL=/bin/tcsh SHLVL=1 FORT_BUFFERED=TRUE LD_LIBRARY_PATH=/home/dwg/intel/mkl/10.0.011/lib/32:/apps/compilers/intel/Compiler/11.1/056/lib/intel64:/d/dev01/chungh/lib/xerces-c-3.1.0/lib:/apps/pe/utils/local/hdf5/lib:/apps/pe/utils/local/lib64:/apps/pe/utils/local/lib:/usr/lib:/usr/X11R6/lib:/apps/pe/lib_32:/usr/lib PE=/apps/pedev OSTYPE=linux ROOT_XUSERFILESEARCHPATH_SET=qlu JAVA_HOME=/d/dev01/yikuny/local/jdk PVM_ROOT=/usr/applinux/ix86-intel-linux/pvm/pvm3 pw_lic_file=/apps/pe/etc/.passwd_file_houhpclc01 VENDOR=intel XUSERFILESEARCHPATH=/home/qlu/app-defaults/%N XPVM_ROOT=/usr/applinux/ix86-intel-linux/pvm/xpvm ROOT_XFILESEARCHPATH_SET=qlu HOST=houhpclc01 ABSOFT=/usr/local/compilers/absoft/ProFortran75 LESSCHARSET=latin1 CMG_LIC_HOST=HOAP133 ROOT_PATH_SET=yes SSH_CONNECTION=158.139.61.51 50715 10.253.33.166 22 SSH_TTY=/dev/pts/0 HOSTNAME=houhpclc01 PWD=/d/dev01/qlu/Lib/petsc-3.4.2 LSHOST=hoeplx10 XFILESEARCHPATH=/usr/applinux/app-defaults/%N:/usr/lib/X11/app-defaults/%N MAIL=/var/mail/qlu MACHTYPE=i386 LM_LICENSE_FILE=1701@backuplm:1700@backuplm:/apps/nexus/license.dat ================================================================================ TEST resetEnvCompilers from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:1511) TESTING: resetEnvCompilers from config.setCompilers(config/BuildSystem/config/setCompilers.py:1511) ================================================================================ TEST checkMPICompilerOverride from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:1476) TESTING: checkMPICompilerOverride from config.setCompilers(config/BuildSystem/config/setCompilers.py:1476) Check if --with-mpi-dir is used along with CC CXX or FC compiler options. This usually prevents mpi compilers from being used - so issue a warning ================================================================================ TEST requireMpiLdPath from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:1495) TESTING: requireMpiLdPath from config.setCompilers(config/BuildSystem/config/setCompilers.py:1495) OpenMPI wrappers require LD_LIBRARY_PATH set ================================================================================ TEST checkVendor from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:399) TESTING: checkVendor from config.setCompilers(config/BuildSystem/config/setCompilers.py:399) Determine the compiler vendor Compiler vendor is "" ================================================================================ TEST checkInitialFlags from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:409) TESTING: checkInitialFlags from config.setCompilers(config/BuildSystem/config/setCompilers.py:409) Initialize the compiler and linker flags Pushing language C Initialized CFLAGS to Initialized CFLAGS to Initialized LDFLAGS to Popping language C Pushing language CUDA Initialized CUDAFLAGS to Initialized CUDAFLAGS to Initialized LDFLAGS to Popping language CUDA Pushing language Cxx Initialized CXXFLAGS to Initialized CXX_CXXFLAGS to Initialized LDFLAGS to Popping language Cxx Pushing language FC Initialized FFLAGS to Initialized FFLAGS to Initialized LDFLAGS to Popping language FC Initialized CPPFLAGS to Initialized CUDAPPFLAGS to Initialized CXXCPPFLAGS to Initialized CC_LINKER_FLAGS to [] Initialized CXX_LINKER_FLAGS to [] Initialized FC_LINKER_FLAGS to [] Initialized CUDAC_LINKER_FLAGS to [] Initialized sharedLibraryFlags to [] Initialized dynamicLibraryFlags to [] ================================================================================ TEST checkCCompiler from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:525) TESTING: checkCCompiler from config.setCompilers(config/BuildSystem/config/setCompilers.py:525) Locate a functional C compiler Checking for program /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc...found Defined make macro "CC" to "/apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc" Pushing language C All intermediate test results are stored in /tmp/petsc-3SW45q/config.setCompilers sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" int main() { ; return 0; } sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" int main() { ; return 0; } Pushing language C Popping language C Pushing language CUDA Popping language CUDA Pushing language Cxx Popping language Cxx Pushing language FC Popping language FC Pushing language C Popping language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.setCompilers/conftest /tmp/petsc-3SW45q/config.setCompilers/conftest.o Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.setCompilers/conftest /tmp/petsc-3SW45q/config.setCompilers/conftest.o sh: sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" int main() { ; return 0; } Pushing language C Popping language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.setCompilers/conftest /tmp/petsc-3SW45q/config.setCompilers/conftest.o Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.setCompilers/conftest /tmp/petsc-3SW45q/config.setCompilers/conftest.o sh: Executing: /tmp/petsc-3SW45q/config.setCompilers/conftest sh: /tmp/petsc-3SW45q/config.setCompilers/conftest Executing: /tmp/petsc-3SW45q/config.setCompilers/conftest sh: Popping language C ================================================================================ TEST checkCPreprocessor from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:560) TESTING: checkCPreprocessor from config.setCompilers(config/BuildSystem/config/setCompilers.py:560) Locate a functional C preprocessor Checking for program /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc...found Defined make macro "CPP" to "/apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -E" Pushing language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -E -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -E -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.c sh: # 1 "/tmp/petsc-3SW45q/config.setCompilers/conftest.c" # 1 "/tmp/petsc-3SW45q/config.setCompilers/confdefs.h" 1 # 2 "/tmp/petsc-3SW45q/config.setCompilers/conftest.c" 2 # 1 "/tmp/petsc-3SW45q/config.setCompilers/conffix.h" 1 # 3 "/tmp/petsc-3SW45q/config.setCompilers/conftest.c" 2 # 1 "/usr/include/stdlib.h" 1 3 # 1 "/usr/include/features.h" 1 3 # 114 "/usr/include/features.h" 3 # 137 "/usr/include/features.h" 3 # 146 "/usr/include/features.h" 3 # 168 "/usr/include/features.h" 3 # 178 "/usr/include/features.h" 3 # 201 "/usr/include/features.h" 3 # 240 "/usr/include/features.h" 3 # 293 "/usr/include/features.h" 3 # 325 "/usr/include/features.h" 3 # 1 "/usr/include/sys/cdefs.h" 1 3 # 58 "/usr/include/sys/cdefs.h" 3 # 71 "/usr/include/sys/cdefs.h" 3 # 96 "/usr/include/sys/cdefs.h" 3 # 111 "/usr/include/sys/cdefs.h" 3 # 121 "/usr/include/sys/cdefs.h" 3 # 153 "/usr/include/sys/cdefs.h" 3 # 177 "/usr/include/sys/cdefs.h" 3 # 221 "/usr/include/sys/cdefs.h" 3 # 251 "/usr/include/sys/cdefs.h" 3 # 274 "/usr/include/sys/cdefs.h" 3 # 312 "/usr/include/sys/cdefs.h" 3 # 1 "/usr/include/bits/wordsize.h" 1 3 # 314 "/usr/include/sys/cdefs.h" 2 3 # 337 "/usr/include/sys/cdefs.h" 3 # 330 "/usr/include/features.h" 2 3 # 1 "/usr/include/gnu/stubs.h" 1 3 # 1 "/usr/include/bits/wordsize.h" 1 3 # 5 "/usr/include/gnu/stubs.h" 2 3 # 1 "/usr/include/gnu/stubs-32.h" 1 3 # 8 "/usr/include/gnu/stubs.h" 2 3 # 353 "/usr/include/features.h" 2 3 # 26 "/usr/include/stdlib.h" 2 3 # 1 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 1 3 # 28 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 39 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 typedef int ptrdiff_t; typedef unsigned size_t; typedef long int wchar_t; # 34 "/usr/include/stdlib.h" 2 3 # 95 "/usr/include/stdlib.h" 3 typedef struct { int quot; int rem; } div_t; typedef struct { long int quot; long int rem; } ldiv_t; # 126 "/usr/include/stdlib.h" 3 extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__)) ; extern double atof (__const char *__nptr) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; extern int atoi (__const char *__nptr) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; extern long int atol (__const char *__nptr) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int atoll (__const char *__nptr) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; extern double strtod (__const char *__restrict __nptr, char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; # 181 "/usr/include/stdlib.h" 3 extern long int strtol (__const char *__restrict __nptr, char **__restrict __endptr, int __base) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern unsigned long int strtoul (__const char *__restrict __nptr, char **__restrict __endptr, int __base) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int strtoq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern unsigned long long int strtouq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int strtoll (__const char *__restrict __nptr, char **__restrict __endptr, int __base) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern unsigned long long int strtoull (__const char *__restrict __nptr, char **__restrict __endptr, int __base) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; # 274 "/usr/include/stdlib.h" 3 extern double __strtod_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern float __strtof_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern long double __strtold_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern long int __strtol_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __base, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern unsigned long int __strtoul_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __base, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int __strtoll_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __base, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern unsigned long long int __strtoull_internal (__const char * __restrict __nptr, char **__restrict __endptr, int __base, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; # 423 "/usr/include/stdlib.h" 3 extern char *l64a (long int __n) __attribute__ ((__nothrow__)) ; extern long int a64l (__const char *__s) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; # 1 "/usr/include/sys/types.h" 1 3 # 1 "/usr/include/bits/types.h" 1 3 # 1 "/usr/include/bits/wordsize.h" 1 3 # 29 "/usr/include/bits/types.h" 2 3 # 1 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 1 3 # 28 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 39 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 57 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 32 "/usr/include/bits/types.h" 2 3 typedef unsigned char __u_char; typedef unsigned short int __u_short; typedef unsigned int __u_int; typedef unsigned long int __u_long; typedef signed char __int8_t; typedef unsigned char __uint8_t; typedef signed short int __int16_t; typedef unsigned short int __uint16_t; typedef signed int __int32_t; typedef unsigned int __uint32_t; __extension__ typedef signed long long int __int64_t; __extension__ typedef unsigned long long int __uint64_t; __extension__ typedef long long int __quad_t; __extension__ typedef unsigned long long int __u_quad_t; # 71 "/usr/include/bits/types.h" 3 # 117 "/usr/include/bits/types.h" 3 # 1 "/usr/include/bits/typesizes.h" 1 3 # 61 "/usr/include/bits/typesizes.h" 3 # 135 "/usr/include/bits/types.h" 2 3 __extension__ typedef __u_quad_t __dev_t; __extension__ typedef unsigned int __uid_t; __extension__ typedef unsigned int __gid_t; __extension__ typedef unsigned long int __ino_t; __extension__ typedef __u_quad_t __ino64_t; __extension__ typedef unsigned int __mode_t; __extension__ typedef unsigned int __nlink_t; __extension__ typedef long int __off_t; __extension__ typedef __quad_t __off64_t; __extension__ typedef int __pid_t; __extension__ typedef struct { int __val[2]; } __fsid_t; __extension__ typedef long int __clock_t; __extension__ typedef unsigned long int __rlim_t; __extension__ typedef __u_quad_t __rlim64_t; __extension__ typedef unsigned int __id_t; __extension__ typedef long int __time_t; __extension__ typedef unsigned int __useconds_t; __extension__ typedef long int __suseconds_t; __extension__ typedef int __daddr_t; __extension__ typedef long int __swblk_t; __extension__ typedef int __key_t; __extension__ typedef int __clockid_t; __extension__ typedef void * __timer_t; __extension__ typedef long int __blksize_t; __extension__ typedef long int __blkcnt_t; __extension__ typedef __quad_t __blkcnt64_t; __extension__ typedef unsigned long int __fsblkcnt_t; __extension__ typedef __u_quad_t __fsblkcnt64_t; __extension__ typedef unsigned long int __fsfilcnt_t; __extension__ typedef __u_quad_t __fsfilcnt64_t; __extension__ typedef int __ssize_t; typedef __off64_t __loff_t; typedef __quad_t *__qaddr_t; typedef char *__caddr_t; __extension__ typedef int __intptr_t; __extension__ typedef unsigned int __socklen_t; # 32 "/usr/include/sys/types.h" 2 3 typedef __u_char u_char; typedef __u_short u_short; typedef __u_int u_int; typedef __u_long u_long; typedef __quad_t quad_t; typedef __u_quad_t u_quad_t; typedef __fsid_t fsid_t; typedef __loff_t loff_t; typedef __ino_t ino_t; # 60 "/usr/include/sys/types.h" 3 typedef __dev_t dev_t; typedef __gid_t gid_t; typedef __mode_t mode_t; typedef __nlink_t nlink_t; typedef __uid_t uid_t; typedef __off_t off_t; # 98 "/usr/include/sys/types.h" 3 typedef __pid_t pid_t; typedef __id_t id_t; typedef __ssize_t ssize_t; typedef __daddr_t daddr_t; typedef __caddr_t caddr_t; typedef __key_t key_t; # 1 "/usr/include/time.h" 1 3 # 34 "/usr/include/time.h" 3 # 53 "/usr/include/time.h" 3 # 69 "/usr/include/time.h" 3 typedef __time_t time_t; typedef __clockid_t clockid_t; typedef __timer_t timer_t; # 129 "/usr/include/time.h" 3 # 419 "/usr/include/time.h" 3 # 134 "/usr/include/sys/types.h" 2 3 # 145 "/usr/include/sys/types.h" 3 # 1 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 1 3 # 28 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 39 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 57 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 148 "/usr/include/sys/types.h" 2 3 typedef unsigned long int ulong; typedef unsigned short int ushort; typedef unsigned int uint; # 186 "/usr/include/sys/types.h" 3 typedef int int8_t __attribute__ ((__mode__ (__QI__))); typedef int int16_t __attribute__ ((__mode__ (__HI__))); typedef int int32_t __attribute__ ((__mode__ (__SI__))); typedef int int64_t __attribute__ ((__mode__ (__DI__))); typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); typedef int register_t __attribute__ ((__mode__ (__word__))); # 1 "/usr/include/endian.h" 1 3 # 1 "/usr/include/bits/endian.h" 1 3 # 38 "/usr/include/endian.h" 2 3 # 51 "/usr/include/endian.h" 3 # 218 "/usr/include/sys/types.h" 2 3 # 1 "/usr/include/sys/select.h" 1 3 # 1 "/usr/include/bits/select.h" 1 3 # 36 "/usr/include/bits/select.h" 3 # 56 "/usr/include/bits/select.h" 3 # 32 "/usr/include/sys/select.h" 2 3 # 1 "/usr/include/bits/sigset.h" 1 3 typedef int __sig_atomic_t; typedef struct { unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; } __sigset_t; # 35 "/usr/include/sys/select.h" 2 3 typedef __sigset_t sigset_t; # 1 "/usr/include/time.h" 1 3 # 34 "/usr/include/time.h" 3 # 53 "/usr/include/time.h" 3 # 69 "/usr/include/time.h" 3 # 85 "/usr/include/time.h" 3 # 97 "/usr/include/time.h" 3 # 109 "/usr/include/time.h" 3 struct timespec { __time_t tv_sec; long int tv_nsec; }; # 419 "/usr/include/time.h" 3 # 45 "/usr/include/sys/select.h" 2 3 # 1 "/usr/include/bits/time.h" 1 3 # 60 "/usr/include/bits/time.h" 3 struct timeval { __time_t tv_sec; __suseconds_t tv_usec; }; # 47 "/usr/include/sys/select.h" 2 3 typedef __suseconds_t suseconds_t; typedef long int __fd_mask; typedef struct { __fd_mask __fds_bits[1024 / (8 * sizeof (__fd_mask))]; } fd_set; typedef __fd_mask fd_mask; extern int select (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout); extern int pselect (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, const struct timespec *__restrict __timeout, const __sigset_t *__restrict __sigmask); # 221 "/usr/include/sys/types.h" 2 3 # 1 "/usr/include/sys/sysmacros.h" 1 3 __extension__ extern __inline unsigned int gnu_dev_major (unsigned long long int __dev) __attribute__ ((__nothrow__)); __extension__ extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev) __attribute__ ((__nothrow__)); __extension__ extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major, unsigned int __minor) __attribute__ ((__nothrow__)); __extension__ extern __inline unsigned int __attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev) { return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff); } __extension__ extern __inline unsigned int __attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev) { return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff); } __extension__ extern __inline unsigned long long int __attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor) { return ((__minor & 0xff) | ((__major & 0xfff) << 8) | (((unsigned long long int) (__minor & ~0xff)) << 12) | (((unsigned long long int) (__major & ~0xfff)) << 32)); } # 224 "/usr/include/sys/types.h" 2 3 typedef __blkcnt_t blkcnt_t; typedef __fsblkcnt_t fsblkcnt_t; typedef __fsfilcnt_t fsfilcnt_t; # 260 "/usr/include/sys/types.h" 3 # 1 "/usr/include/bits/pthreadtypes.h" 1 3 # 32 "/usr/include/bits/pthreadtypes.h" 3 typedef unsigned long int pthread_t; typedef union { char __size[36]; long int __align; } pthread_attr_t; typedef struct __pthread_internal_slist { struct __pthread_internal_slist *__next; } __pthread_slist_t; typedef union { struct __pthread_mutex_s { int __lock; unsigned int __count; int __owner; int __kind; unsigned int __nusers; __extension__ union { int __spins; __pthread_slist_t __list; }; } __data; char __size[24]; long int __align; } pthread_mutex_t; typedef union { char __size[4]; long int __align; } pthread_mutexattr_t; typedef union { struct { int __lock; unsigned int __futex; __extension__ unsigned long long int __total_seq; __extension__ unsigned long long int __wakeup_seq; __extension__ unsigned long long int __woken_seq; void *__mutex; unsigned int __nwaiters; unsigned int __broadcast_seq; } __data; char __size[48]; __extension__ long long int __align; } pthread_cond_t; typedef union { char __size[4]; long int __align; } pthread_condattr_t; typedef unsigned int pthread_key_t; typedef int pthread_once_t; typedef union { struct { int __lock; unsigned int __nr_readers; unsigned int __readers_wakeup; unsigned int __writer_wakeup; unsigned int __nr_readers_queued; unsigned int __nr_writers_queued; unsigned char __flags; unsigned char __shared; unsigned char __pad1; unsigned char __pad2; int __writer; } __data; char __size[32]; long int __align; } pthread_rwlock_t; typedef union { char __size[8]; long int __align; } pthread_rwlockattr_t; typedef volatile int pthread_spinlock_t; typedef union { char __size[20]; long int __align; } pthread_barrier_t; typedef union { char __size[4]; int __align; } pthread_barrierattr_t; # 271 "/usr/include/sys/types.h" 2 3 # 439 "/usr/include/stdlib.h" 2 3 extern long int random (void) __attribute__ ((__nothrow__)); extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__)); extern char *initstate (unsigned int __seed, char *__statebuf, size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); struct random_data { int32_t *fptr; int32_t *rptr; int32_t *state; int rand_type; int rand_deg; int rand_sep; int32_t *end_ptr; }; extern int random_r (struct random_data *__restrict __buf, int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int srandom_r (unsigned int __seed, struct random_data *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, size_t __statelen, struct random_data *__restrict __buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))); extern int setstate_r (char *__restrict __statebuf, struct random_data *__restrict __buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int rand (void) __attribute__ ((__nothrow__)); extern void srand (unsigned int __seed) __attribute__ ((__nothrow__)); extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__)); extern double drand48 (void) __attribute__ ((__nothrow__)); extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern long int lrand48 (void) __attribute__ ((__nothrow__)); extern long int nrand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern long int mrand48 (void) __attribute__ ((__nothrow__)); extern long int jrand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern void srand48 (long int __seedval) __attribute__ ((__nothrow__)); extern unsigned short int *seed48 (unsigned short int __seed16v[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); struct drand48_data { unsigned short int __x[3]; unsigned short int __old_x[3]; unsigned short int __c; unsigned short int __init; unsigned long long int __a; }; extern int drand48_r (struct drand48_data *__restrict __buffer, double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int erand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int lrand48_r (struct drand48_data *__restrict __buffer, long int *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int nrand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, long int *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int mrand48_r (struct drand48_data *__restrict __buffer, long int *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int jrand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, long int *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int srand48_r (long int __seedval, struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern int seed48_r (unsigned short int __seed16v[3], struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int lcong48_r (unsigned short int __param[7], struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; extern void *calloc (size_t __nmemb, size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; extern void *realloc (void *__ptr, size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)); extern void free (void *__ptr) __attribute__ ((__nothrow__)); extern void cfree (void *__ptr) __attribute__ ((__nothrow__)); # 1 "/usr/include/alloca.h" 1 3 # 1 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 1 3 # 28 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 39 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 57 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 26 "/usr/include/alloca.h" 2 3 extern void *alloca (size_t __size) __attribute__ ((__nothrow__)); # 613 "/usr/include/stdlib.h" 2 3 extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); # 656 "/usr/include/stdlib.h" 3 extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern char *__secure_getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int setenv (__const char *__name, __const char *__value, int __replace) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__)); extern int clearenv (void) __attribute__ ((__nothrow__)); extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; # 722 "/usr/include/stdlib.h" 3 extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern int system (__const char *__command) ; # 749 "/usr/include/stdlib.h" 3 extern char *realpath (__const char *__restrict __name, char *__restrict __resolved) __attribute__ ((__nothrow__)) ; typedef int (*__compar_fn_t) (__const void *, __const void *); extern void *bsearch (__const void *__key, __const void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 2, 5))) ; extern void qsort (void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; extern div_t div (int __numer, int __denom) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; extern ldiv_t ldiv (long int __numer, long int __denom) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; # 812 "/usr/include/stdlib.h" 3 extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; extern char *gcvt (double __value, int __ndigit, char *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ; extern char *qecvt (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; extern char *qfcvt (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; extern char *qgcvt (long double __value, int __ndigit, char *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ; extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); extern int qecvt_r (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); extern int qfcvt_r (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) ; extern int mbtowc (wchar_t *__restrict __pwc, __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) ; extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) ; extern size_t mbstowcs (wchar_t *__restrict __pwcs, __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)); extern size_t wcstombs (char *__restrict __s, __const wchar_t *__restrict __pwcs, size_t __n) __attribute__ ((__nothrow__)); extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; # 914 "/usr/include/stdlib.h" 3 extern int posix_openpt (int __oflag) ; # 945 "/usr/include/stdlib.h" 3 # 956 "/usr/include/stdlib.h" 3 extern int getloadavg (double __loadavg[], int __nelem) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); # 973 "/usr/include/stdlib.h" 3 # 4 "/tmp/petsc-3SW45q/config.setCompilers/conftest.c" 2 Popping language C ================================================================================ TEST checkCUDACompiler from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:594) TESTING: checkCUDACompiler from config.setCompilers(config/BuildSystem/config/setCompilers.py:594) Locate a functional CUDA compiler Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/nvcc...not found Checking for program /d/dev01/yikuny/local/jdk/bin/nvcc...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/nvcc...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/nvcc...not found Checking for program /usr/kerberos/bin/nvcc...not found Checking for program /sbin/nvcc...not found Checking for program /usr/sbin/nvcc...not found Checking for program /bin/nvcc...not found Checking for program /usr/bin/nvcc...not found Checking for program /usr/local/bin/nvcc...not found Checking for program /usr/X11R6/bin/nvcc...not found Checking for program /usr/applinux/bin/nvcc...not found Checking for program /sbin/nvcc...not found Checking for program /apps/cop/bin/nvcc...not found Checking for program /home/shirags/bin/nvcc...not found Checking for program /apps/pe/bin/nvcc...not found Checking for program /apps/cop/bin/nvcc...not found Checking for program /home/qlu/nvcc...not found Checking for program /d/dev01/qlu/Lib/petsc-3.4.2/bin/win32fe/nvcc...not found Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/nvcc...not found Checking for program /d/dev01/yikuny/local/jdk/bin/nvcc...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/nvcc...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/nvcc...not found Checking for program /usr/kerberos/bin/nvcc...not found Checking for program /sbin/nvcc...not found Checking for program /usr/sbin/nvcc...not found Checking for program /bin/nvcc...not found Checking for program /usr/bin/nvcc...not found Checking for program /usr/local/bin/nvcc...not found Checking for program /usr/X11R6/bin/nvcc...not found Checking for program /usr/applinux/bin/nvcc...not found Checking for program /sbin/nvcc...not found Checking for program /apps/cop/bin/nvcc...not found Checking for program /home/shirags/bin/nvcc...not found Checking for program /apps/pe/bin/nvcc...not found Checking for program /apps/cop/bin/nvcc...not found Checking for program /home/qlu/nvcc...not found Checking for program /d/dev01/qlu/Lib/petsc-3.4.2/bin/win32fe/nvcc...not found ================================================================================ TEST checkCUDAPreprocessor from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:632) TESTING: checkCUDAPreprocessor from config.setCompilers(config/BuildSystem/config/setCompilers.py:632) Locate a functional CUDA preprocessor ================================================================================ TEST checkCxxCompiler from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:735) TESTING: checkCxxCompiler from config.setCompilers(config/BuildSystem/config/setCompilers.py:735) Locate a functional Cxx compiler Checking for program /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc...found Defined make macro "CXX" to "/apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc" Pushing language Cxx sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.cc Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.cc sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" int main() { ; return 0; } sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.cc Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.cc sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" int main() { ; return 0; } Pushing language C Popping language C Pushing language CUDA Popping language CUDA Pushing language Cxx Popping language Cxx Pushing language FC Popping language FC Pushing language CXX Popping language CXX sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -o /tmp/petsc-3SW45q/config.setCompilers/conftest /tmp/petsc-3SW45q/config.setCompilers/conftest.o Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -o /tmp/petsc-3SW45q/config.setCompilers/conftest /tmp/petsc-3SW45q/config.setCompilers/conftest.o sh: sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.cc Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.cc sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" int main() { ; return 0; } Pushing language CXX Popping language CXX sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -o /tmp/petsc-3SW45q/config.setCompilers/conftest /tmp/petsc-3SW45q/config.setCompilers/conftest.o Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -o /tmp/petsc-3SW45q/config.setCompilers/conftest /tmp/petsc-3SW45q/config.setCompilers/conftest.o sh: Executing: /tmp/petsc-3SW45q/config.setCompilers/conftest sh: /tmp/petsc-3SW45q/config.setCompilers/conftest Executing: /tmp/petsc-3SW45q/config.setCompilers/conftest sh: Popping language Cxx ================================================================================ TEST checkCxxPreprocessor from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:773) TESTING: checkCxxPreprocessor from config.setCompilers(config/BuildSystem/config/setCompilers.py:773) Locate a functional Cxx preprocessor Checking for program /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc...found Defined make macro "CXXCPP" to "/apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -E" Pushing language Cxx sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -E -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.cc Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -E -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.cc sh: # 1 "/tmp/petsc-3SW45q/config.setCompilers/conftest.cc" # 1 "/tmp/petsc-3SW45q/config.setCompilers/confdefs.h" 1 # 2 "/tmp/petsc-3SW45q/config.setCompilers/conftest.cc" 2 # 1 "/tmp/petsc-3SW45q/config.setCompilers/conffix.h" 1 extern "C" { } # 3 "/tmp/petsc-3SW45q/config.setCompilers/conftest.cc" 2 # 1 "/usr/include/c++/4.1.2/cstdlib" 1 3 #pragma GCC system_header # 1 "/usr/include/c++/4.1.2/i386-redhat-linux/bits/c++config.h" 1 3 # 1 "/usr/include/c++/4.1.2/i386-redhat-linux/bits/os_defines.h" 1 3 # 1 "/usr/include/features.h" 1 3 # 114 "/usr/include/features.h" 3 # 137 "/usr/include/features.h" 3 # 146 "/usr/include/features.h" 3 # 168 "/usr/include/features.h" 3 # 178 "/usr/include/features.h" 3 # 201 "/usr/include/features.h" 3 # 240 "/usr/include/features.h" 3 # 293 "/usr/include/features.h" 3 # 325 "/usr/include/features.h" 3 # 1 "/usr/include/sys/cdefs.h" 1 3 # 58 "/usr/include/sys/cdefs.h" 3 # 71 "/usr/include/sys/cdefs.h" 3 # 96 "/usr/include/sys/cdefs.h" 3 # 111 "/usr/include/sys/cdefs.h" 3 # 121 "/usr/include/sys/cdefs.h" 3 # 153 "/usr/include/sys/cdefs.h" 3 # 177 "/usr/include/sys/cdefs.h" 3 # 221 "/usr/include/sys/cdefs.h" 3 # 251 "/usr/include/sys/cdefs.h" 3 # 274 "/usr/include/sys/cdefs.h" 3 # 312 "/usr/include/sys/cdefs.h" 3 # 1 "/usr/include/bits/wordsize.h" 1 3 # 314 "/usr/include/sys/cdefs.h" 2 3 # 337 "/usr/include/sys/cdefs.h" 3 # 330 "/usr/include/features.h" 2 3 # 1 "/usr/include/gnu/stubs.h" 1 3 # 1 "/usr/include/bits/wordsize.h" 1 3 # 5 "/usr/include/gnu/stubs.h" 2 3 # 1 "/usr/include/gnu/stubs-32.h" 1 3 # 8 "/usr/include/gnu/stubs.h" 2 3 # 353 "/usr/include/features.h" 2 3 # 40 "/usr/include/c++/4.1.2/i386-redhat-linux/bits/os_defines.h" 2 3 # 36 "/usr/include/c++/4.1.2/i386-redhat-linux/bits/c++config.h" 2 3 # 1 "/usr/include/c++/4.1.2/i386-redhat-linux/bits/cpu_defines.h" 1 3 # 39 "/usr/include/c++/4.1.2/i386-redhat-linux/bits/c++config.h" 2 3 namespace __gnu_debug_def { } namespace __gnu_debug { using namespace __gnu_debug_def; } # 67 "/usr/include/c++/4.1.2/i386-redhat-linux/bits/c++config.h" 3 # 87 "/usr/include/c++/4.1.2/i386-redhat-linux/bits/c++config.h" 3 # 51 "/usr/include/c++/4.1.2/cstdlib" 2 3 # 1 "/usr/include/c++/4.1.2/cstddef" 1 3 #pragma GCC system_header # 1 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 1 3 # 28 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 39 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 typedef int ptrdiff_t; typedef unsigned size_t; # 57 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 51 "/usr/include/c++/4.1.2/cstddef" 2 3 namespace std { using ::ptrdiff_t; using ::size_t; } # 52 "/usr/include/c++/4.1.2/cstdlib" 2 3 # 70 "/usr/include/c++/4.1.2/cstdlib" 3 # 1 "/usr/include/stdlib.h" 1 3 # 1 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 1 3 # 28 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 39 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 57 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 34 "/usr/include/stdlib.h" 2 3 extern "C" { # 1 "/usr/include/bits/waitflags.h" 1 3 # 43 "/usr/include/stdlib.h" 2 3 # 1 "/usr/include/bits/waitstatus.h" 1 3 # 1 "/usr/include/endian.h" 1 3 # 1 "/usr/include/bits/endian.h" 1 3 # 38 "/usr/include/endian.h" 2 3 # 51 "/usr/include/endian.h" 3 # 66 "/usr/include/bits/waitstatus.h" 2 3 union wait { int w_status; struct { unsigned int __w_termsig:7; unsigned int __w_coredump:1; unsigned int __w_retcode:8; unsigned int:16; # 84 "/usr/include/bits/waitstatus.h" 3 } __wait_terminated; struct { unsigned int __w_stopval:8; unsigned int __w_stopsig:8; unsigned int:16; # 97 "/usr/include/bits/waitstatus.h" 3 } __wait_stopped; }; # 44 "/usr/include/stdlib.h" 2 3 # 57 "/usr/include/stdlib.h" 3 # 75 "/usr/include/stdlib.h" 3 # 83 "/usr/include/stdlib.h" 3 # 95 "/usr/include/stdlib.h" 3 typedef struct { int quot; int rem; } div_t; typedef struct { long int quot; long int rem; } ldiv_t; __extension__ typedef struct { long long int quot; long long int rem; } lldiv_t; extern size_t __ctype_get_mb_cur_max (void) throw () ; extern double atof (__const char *__nptr) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; extern int atoi (__const char *__nptr) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; extern long int atol (__const char *__nptr) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int atoll (__const char *__nptr) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; extern double strtod (__const char *__restrict __nptr, char **__restrict __endptr) throw () __attribute__ ((__nonnull__ (1))) ; extern float strtof (__const char *__restrict __nptr, char **__restrict __endptr) throw () __attribute__ ((__nonnull__ (1))) ; extern long double strtold (__const char *__restrict __nptr, char **__restrict __endptr) throw () __attribute__ ((__nonnull__ (1))) ; extern long int strtol (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () __attribute__ ((__nonnull__ (1))) ; extern unsigned long int strtoul (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int strtoq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () __attribute__ ((__nonnull__ (1))) ; __extension__ extern unsigned long long int strtouq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int strtoll (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () __attribute__ ((__nonnull__ (1))) ; __extension__ extern unsigned long long int strtoull (__const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () __attribute__ ((__nonnull__ (1))) ; # 1 "/usr/include/xlocale.h" 1 3 typedef struct __locale_struct { struct locale_data *__locales[13]; const unsigned short int *__ctype_b; const int *__ctype_tolower; const int *__ctype_toupper; const char *__names[13]; } *__locale_t; # 237 "/usr/include/stdlib.h" 2 3 extern long int strtol_l (__const char *__restrict __nptr, char **__restrict __endptr, int __base, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 4))) ; extern unsigned long int strtoul_l (__const char *__restrict __nptr, char **__restrict __endptr, int __base, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 4))) ; __extension__ extern long long int strtoll_l (__const char *__restrict __nptr, char **__restrict __endptr, int __base, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 4))) ; __extension__ extern unsigned long long int strtoull_l (__const char *__restrict __nptr, char **__restrict __endptr, int __base, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 4))) ; extern double strtod_l (__const char *__restrict __nptr, char **__restrict __endptr, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 3))) ; extern float strtof_l (__const char *__restrict __nptr, char **__restrict __endptr, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 3))) ; extern long double strtold_l (__const char *__restrict __nptr, char **__restrict __endptr, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 3))) ; extern double __strtod_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __group) throw () __attribute__ ((__nonnull__ (1))) ; extern float __strtof_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __group) throw () __attribute__ ((__nonnull__ (1))) ; extern long double __strtold_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __group) throw () __attribute__ ((__nonnull__ (1))) ; extern long int __strtol_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __base, int __group) throw () __attribute__ ((__nonnull__ (1))) ; extern unsigned long int __strtoul_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __base, int __group) throw () __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int __strtoll_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __base, int __group) throw () __attribute__ ((__nonnull__ (1))) ; __extension__ extern unsigned long long int __strtoull_internal (__const char * __restrict __nptr, char **__restrict __endptr, int __base, int __group) throw () __attribute__ ((__nonnull__ (1))) ; # 423 "/usr/include/stdlib.h" 3 extern char *l64a (long int __n) throw () ; extern long int a64l (__const char *__s) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; # 1 "/usr/include/sys/types.h" 1 3 extern "C" { # 1 "/usr/include/bits/types.h" 1 3 # 1 "/usr/include/bits/wordsize.h" 1 3 # 29 "/usr/include/bits/types.h" 2 3 # 1 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 1 3 # 28 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 39 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 57 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 32 "/usr/include/bits/types.h" 2 3 typedef unsigned char __u_char; typedef unsigned short int __u_short; typedef unsigned int __u_int; typedef unsigned long int __u_long; typedef signed char __int8_t; typedef unsigned char __uint8_t; typedef signed short int __int16_t; typedef unsigned short int __uint16_t; typedef signed int __int32_t; typedef unsigned int __uint32_t; __extension__ typedef signed long long int __int64_t; __extension__ typedef unsigned long long int __uint64_t; __extension__ typedef long long int __quad_t; __extension__ typedef unsigned long long int __u_quad_t; # 71 "/usr/include/bits/types.h" 3 # 117 "/usr/include/bits/types.h" 3 # 1 "/usr/include/bits/typesizes.h" 1 3 # 61 "/usr/include/bits/typesizes.h" 3 # 135 "/usr/include/bits/types.h" 2 3 __extension__ typedef __u_quad_t __dev_t; __extension__ typedef unsigned int __uid_t; __extension__ typedef unsigned int __gid_t; __extension__ typedef unsigned long int __ino_t; __extension__ typedef __u_quad_t __ino64_t; __extension__ typedef unsigned int __mode_t; __extension__ typedef unsigned int __nlink_t; __extension__ typedef long int __off_t; __extension__ typedef __quad_t __off64_t; __extension__ typedef int __pid_t; __extension__ typedef struct { int __val[2]; } __fsid_t; __extension__ typedef long int __clock_t; __extension__ typedef unsigned long int __rlim_t; __extension__ typedef __u_quad_t __rlim64_t; __extension__ typedef unsigned int __id_t; __extension__ typedef long int __time_t; __extension__ typedef unsigned int __useconds_t; __extension__ typedef long int __suseconds_t; __extension__ typedef int __daddr_t; __extension__ typedef long int __swblk_t; __extension__ typedef int __key_t; __extension__ typedef int __clockid_t; __extension__ typedef void * __timer_t; __extension__ typedef long int __blksize_t; __extension__ typedef long int __blkcnt_t; __extension__ typedef __quad_t __blkcnt64_t; __extension__ typedef unsigned long int __fsblkcnt_t; __extension__ typedef __u_quad_t __fsblkcnt64_t; __extension__ typedef unsigned long int __fsfilcnt_t; __extension__ typedef __u_quad_t __fsfilcnt64_t; __extension__ typedef int __ssize_t; typedef __off64_t __loff_t; typedef __quad_t *__qaddr_t; typedef char *__caddr_t; __extension__ typedef int __intptr_t; __extension__ typedef unsigned int __socklen_t; # 32 "/usr/include/sys/types.h" 2 3 typedef __u_char u_char; typedef __u_short u_short; typedef __u_int u_int; typedef __u_long u_long; typedef __quad_t quad_t; typedef __u_quad_t u_quad_t; typedef __fsid_t fsid_t; typedef __loff_t loff_t; typedef __ino_t ino_t; # 57 "/usr/include/sys/types.h" 3 typedef __ino64_t ino64_t; typedef __dev_t dev_t; typedef __gid_t gid_t; typedef __mode_t mode_t; typedef __nlink_t nlink_t; typedef __uid_t uid_t; typedef __off_t off_t; # 95 "/usr/include/sys/types.h" 3 typedef __off64_t off64_t; typedef __pid_t pid_t; typedef __id_t id_t; typedef __ssize_t ssize_t; typedef __daddr_t daddr_t; typedef __caddr_t caddr_t; typedef __key_t key_t; # 1 "/usr/include/time.h" 1 3 # 34 "/usr/include/time.h" 3 # 53 "/usr/include/time.h" 3 typedef __clock_t clock_t; typedef __time_t time_t; typedef __clockid_t clockid_t; typedef __timer_t timer_t; # 129 "/usr/include/time.h" 3 # 419 "/usr/include/time.h" 3 # 134 "/usr/include/sys/types.h" 2 3 typedef __useconds_t useconds_t; typedef __suseconds_t suseconds_t; # 1 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 1 3 # 28 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 39 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 57 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 148 "/usr/include/sys/types.h" 2 3 typedef unsigned long int ulong; typedef unsigned short int ushort; typedef unsigned int uint; # 186 "/usr/include/sys/types.h" 3 typedef int int8_t __attribute__ ((__mode__ (__QI__))); typedef int int16_t __attribute__ ((__mode__ (__HI__))); typedef int int32_t __attribute__ ((__mode__ (__SI__))); typedef int int64_t __attribute__ ((__mode__ (__DI__))); typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); typedef int register_t __attribute__ ((__mode__ (__word__))); # 1 "/usr/include/sys/select.h" 1 3 # 1 "/usr/include/bits/select.h" 1 3 # 36 "/usr/include/bits/select.h" 3 # 56 "/usr/include/bits/select.h" 3 # 32 "/usr/include/sys/select.h" 2 3 # 1 "/usr/include/bits/sigset.h" 1 3 typedef int __sig_atomic_t; typedef struct { unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; } __sigset_t; # 35 "/usr/include/sys/select.h" 2 3 typedef __sigset_t sigset_t; # 1 "/usr/include/time.h" 1 3 # 34 "/usr/include/time.h" 3 # 53 "/usr/include/time.h" 3 # 69 "/usr/include/time.h" 3 # 85 "/usr/include/time.h" 3 # 97 "/usr/include/time.h" 3 # 109 "/usr/include/time.h" 3 struct timespec { __time_t tv_sec; long int tv_nsec; }; # 419 "/usr/include/time.h" 3 # 45 "/usr/include/sys/select.h" 2 3 # 1 "/usr/include/bits/time.h" 1 3 # 60 "/usr/include/bits/time.h" 3 struct timeval { __time_t tv_sec; __suseconds_t tv_usec; }; # 47 "/usr/include/sys/select.h" 2 3 typedef long int __fd_mask; typedef struct { __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask))]; } fd_set; typedef __fd_mask fd_mask; extern "C" { extern int select (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout); extern int pselect (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, const struct timespec *__restrict __timeout, const __sigset_t *__restrict __sigmask); } # 221 "/usr/include/sys/types.h" 2 3 # 1 "/usr/include/sys/sysmacros.h" 1 3 __extension__ extern __inline unsigned int gnu_dev_major (unsigned long long int __dev) throw (); __extension__ extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev) throw (); __extension__ extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major, unsigned int __minor) throw (); __extension__ extern __inline unsigned int gnu_dev_major (unsigned long long int __dev) throw () { return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff); } __extension__ extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev) throw () { return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff); } __extension__ extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major, unsigned int __minor) throw () { return ((__minor & 0xff) | ((__major & 0xfff) << 8) | (((unsigned long long int) (__minor & ~0xff)) << 12) | (((unsigned long long int) (__major & ~0xfff)) << 32)); } # 224 "/usr/include/sys/types.h" 2 3 typedef __blksize_t blksize_t; typedef __blkcnt_t blkcnt_t; typedef __fsblkcnt_t fsblkcnt_t; typedef __fsfilcnt_t fsfilcnt_t; # 260 "/usr/include/sys/types.h" 3 typedef __blkcnt64_t blkcnt64_t; typedef __fsblkcnt64_t fsblkcnt64_t; typedef __fsfilcnt64_t fsfilcnt64_t; # 1 "/usr/include/bits/pthreadtypes.h" 1 3 # 32 "/usr/include/bits/pthreadtypes.h" 3 typedef unsigned long int pthread_t; typedef union { char __size[36]; long int __align; } pthread_attr_t; typedef struct __pthread_internal_slist { struct __pthread_internal_slist *__next; } __pthread_slist_t; typedef union { struct __pthread_mutex_s { int __lock; unsigned int __count; int __owner; int __kind; unsigned int __nusers; __extension__ union { int __spins; __pthread_slist_t __list; Popping language Cxx ================================================================================ TEST checkFortranCompiler from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:882) TESTING: checkFortranCompiler from config.setCompilers(config/BuildSystem/config/setCompilers.py:882) Locate a functional Fortran compiler Checking for program /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort...found Defined make macro "FC" to "/apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort" Pushing language FC sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.F Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.F sh: Successful compile: Source: program main end sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.F Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.F sh: Successful compile: Source: program main end Pushing language C Popping language C Pushing language CUDA Popping language CUDA Pushing language Cxx Popping language Cxx Pushing language FC Popping language FC Pushing language FC Popping language FC sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -o /tmp/petsc-3SW45q/config.setCompilers/conftest /tmp/petsc-3SW45q/config.setCompilers/conftest.o Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -o /tmp/petsc-3SW45q/config.setCompilers/conftest /tmp/petsc-3SW45q/config.setCompilers/conftest.o sh: sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.F Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.F sh: Successful compile: Source: program main end Pushing language FC Popping language FC sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -o /tmp/petsc-3SW45q/config.setCompilers/conftest /tmp/petsc-3SW45q/config.setCompilers/conftest.o Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -o /tmp/petsc-3SW45q/config.setCompilers/conftest /tmp/petsc-3SW45q/config.setCompilers/conftest.o sh: Executing: /tmp/petsc-3SW45q/config.setCompilers/conftest sh: /tmp/petsc-3SW45q/config.setCompilers/conftest Executing: /tmp/petsc-3SW45q/config.setCompilers/conftest sh: Popping language FC ================================================================================ TEST checkFortranComments from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:901) TESTING: checkFortranComments from config.setCompilers(config/BuildSystem/config/setCompilers.py:901) Make sure fortran comment "!" works Pushing language FC sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.F Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.F sh: Successful compile: Source: ! comment program main end Fortran comments can use ! in column 1 Popping language FC ================================================================================ TEST checkPIC from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:964) TESTING: checkPIC from config.setCompilers(config/BuildSystem/config/setCompilers.py:964) Determine the PIC option for each compiler - There needs to be a test that checks that the functionality is actually working Skip checking PIC options on user request ================================================================================ TEST checkLargeFileIO from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:998) TESTING: checkLargeFileIO from config.setCompilers(config/BuildSystem/config/setCompilers.py:998) ================================================================================ TEST checkArchiver from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:1097) TESTING: checkArchiver from config.setCompilers(config/BuildSystem/config/setCompilers.py:1097) Check that the archiver exists and can make a library usable by the compiler Pushing language C sh: ar -V Executing: ar -V sh: GNU ar 2.17.50.0.6-20.el5 20061020 Copyright 2005 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. sh: ar -V Executing: ar -V sh: GNU ar 2.17.50.0.6-20.el5 20061020 Copyright 2005 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. Defined make macro "FAST_AR_FLAGS" to "Scq" sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" int foo(int a) { return a+1; } Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/ar...not found Checking for program /d/dev01/yikuny/local/jdk/bin/ar...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/ar...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/ar...not found Checking for program /usr/kerberos/bin/ar...not found Checking for program /sbin/ar...not found Checking for program /usr/sbin/ar...not found Checking for program /bin/ar...not found Checking for program /usr/bin/ar...found Defined make macro "AR" to "/usr/bin/ar" Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/ranlib...not found Checking for program /d/dev01/yikuny/local/jdk/bin/ranlib...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/ranlib...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/ranlib...not found Checking for program /usr/kerberos/bin/ranlib...not found Checking for program /sbin/ranlib...not found Checking for program /usr/sbin/ranlib...not found Checking for program /bin/ranlib...not found Checking for program /usr/bin/ranlib...found Defined make macro "RANLIB" to "/usr/bin/ranlib -c" sh: /usr/bin/ar cr /tmp/petsc-3SW45q/config.setCompilers/libconf1.a /tmp/petsc-3SW45q/config.setCompilers/conf1.o Executing: /usr/bin/ar cr /tmp/petsc-3SW45q/config.setCompilers/libconf1.a /tmp/petsc-3SW45q/config.setCompilers/conf1.o sh: sh: /usr/bin/ranlib -c /tmp/petsc-3SW45q/config.setCompilers/libconf1.a Executing: /usr/bin/ranlib -c /tmp/petsc-3SW45q/config.setCompilers/libconf1.a sh: Possible ERROR while running ranlib: ret = 256 error message = {/usr/bin/ranlib: '-c': No such file } Ranlib is not functional with your archiver. Try --with-ranlib=true if ranlib is unnecessary. sh: ar -V Executing: ar -V sh: GNU ar 2.17.50.0.6-20.el5 20061020 Copyright 2005 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. sh: ar -V Executing: ar -V sh: GNU ar 2.17.50.0.6-20.el5 20061020 Copyright 2005 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. Defined make macro "FAST_AR_FLAGS" to "Scq" sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" int foo(int a) { return a+1; } Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/ar...not found Checking for program /d/dev01/yikuny/local/jdk/bin/ar...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/ar...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/ar...not found Checking for program /usr/kerberos/bin/ar...not found Checking for program /sbin/ar...not found Checking for program /usr/sbin/ar...not found Checking for program /bin/ar...not found Checking for program /usr/bin/ar...found Defined make macro "AR" to "/usr/bin/ar" Checking for program /d/dev01/qlu/Lib/Python-2.7.5-32bit/bin/ranlib...not found Checking for program /d/dev01/yikuny/local/jdk/bin/ranlib...not found Checking for program /home/sudanhh/mpich2_4-install_32/bin/ranlib...not found Checking for program /apps/pe/mpich2/mpich2-install/bin/ranlib...not found Checking for program /usr/kerberos/bin/ranlib...not found Checking for program /sbin/ranlib...not found Checking for program /usr/sbin/ranlib...not found Checking for program /bin/ranlib...not found Checking for program /usr/bin/ranlib...found Defined make macro "RANLIB" to "/usr/bin/ranlib" sh: /usr/bin/ar cr /tmp/petsc-3SW45q/config.setCompilers/libconf1.a /tmp/petsc-3SW45q/config.setCompilers/conf1.o Executing: /usr/bin/ar cr /tmp/petsc-3SW45q/config.setCompilers/libconf1.a /tmp/petsc-3SW45q/config.setCompilers/conf1.o sh: sh: /usr/bin/ranlib /tmp/petsc-3SW45q/config.setCompilers/libconf1.a Executing: /usr/bin/ranlib /tmp/petsc-3SW45q/config.setCompilers/libconf1.a sh: sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" extern int foo(int); int main() { int b = foo(1); if (b); ; return 0; } Pushing language C Popping language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.setCompilers/conftest /tmp/petsc-3SW45q/config.setCompilers/conftest.o -L/tmp/petsc-3SW45q/config.setCompilers -lconf1 Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.setCompilers/conftest /tmp/petsc-3SW45q/config.setCompilers/conftest.o -L/tmp/petsc-3SW45q/config.setCompilers -lconf1 sh: Defined make macro "AR_FLAGS" to "cr" Defined make macro "AR_LIB_SUFFIX" to "a" Popping language C ================================================================================ TEST checkSharedLinker from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:1212) TESTING: checkSharedLinker from config.setCompilers(config/BuildSystem/config/setCompilers.py:1212) Check that the linker can produce shared libraries Pushing language C Popping language C Pushing language CUDA Popping language CUDA Pushing language Cxx Popping language Cxx Pushing language FC Popping language FC Checking shared linker /usr/bin/ar using flags [] Checking for program /usr/bin/ar...found Defined make macro "LD_SHARED" to "/usr/bin/ar" sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" #include int foo(void) {printf("hello"); return 0;} Pushing language C Popping language C sh: /usr/bin/ar cr /tmp/petsc-3SW45q/config.setCompilers/libconftest.a /tmp/petsc-3SW45q/config.setCompilers/conftest.o ; /usr/bin/ranlib /tmp/petsc-3SW45q/config.setCompilers/libconftest.a Executing: /usr/bin/ar cr /tmp/petsc-3SW45q/config.setCompilers/libconftest.a /tmp/petsc-3SW45q/config.setCompilers/conftest.o ; /usr/bin/ranlib /tmp/petsc-3SW45q/config.setCompilers/libconftest.a sh: sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" int foo(void); int main() { int ret = foo(); if(ret);; return 0; } Pushing language C Popping language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.setCompilers/conftest /tmp/petsc-3SW45q/config.setCompilers/conftest.o -L/tmp/petsc-3SW45q/config.setCompilers -lconftest Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.setCompilers/conftest /tmp/petsc-3SW45q/config.setCompilers/conftest.o -L/tmp/petsc-3SW45q/config.setCompilers -lconftest sh: Using shared linker /usr/bin/ar with flags [] and library extension a sh: uname -s Executing: uname -s sh: Linux ================================================================================ TEST checkSharedLinkerPaths from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:1290) TESTING: checkSharedLinkerPaths from config.setCompilers(config/BuildSystem/config/setCompilers.py:1290) Determine the shared linker path options - IRIX: -rpath - Linux, OSF: -Wl,-rpath, - Solaris: -R - FreeBSD: -Wl,-R, Pushing language C sh: uname -s Executing: uname -s sh: Linux sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -V Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -V sh: Trying C linker flag -Wl,-rpath, sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" int main() { ; return 0; } Pushing language C Popping language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.setCompilers/conftest -Wl,-rpath,/d/dev01/qlu/Lib/petsc-3.4.2 /tmp/petsc-3SW45q/config.setCompilers/conftest.o Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.setCompilers/conftest -Wl,-rpath,/d/dev01/qlu/Lib/petsc-3.4.2 /tmp/petsc-3SW45q/config.setCompilers/conftest.o sh: Valid C linker flag -Wl,-rpath,/d/dev01/qlu/Lib/petsc-3.4.2 Popping language C Pushing language Cxx sh: uname -s Executing: uname -s sh: Linux sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -V Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -V sh: Trying Cxx linker flag -Wl,-rpath, sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.cc Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.cc sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" int main() { ; return 0; } Pushing language CXX Popping language CXX sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -o /tmp/petsc-3SW45q/config.setCompilers/conftest -Wl,-rpath,/d/dev01/qlu/Lib/petsc-3.4.2 /tmp/petsc-3SW45q/config.setCompilers/conftest.o Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -o /tmp/petsc-3SW45q/config.setCompilers/conftest -Wl,-rpath,/d/dev01/qlu/Lib/petsc-3.4.2 /tmp/petsc-3SW45q/config.setCompilers/conftest.o sh: Valid Cxx linker flag -Wl,-rpath,/d/dev01/qlu/Lib/petsc-3.4.2 Popping language Cxx Pushing language FC sh: uname -s Executing: uname -s sh: Linux sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -V Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -V sh: Trying FC linker flag -Wl,-rpath, sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.F Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers /tmp/petsc-3SW45q/config.setCompilers/conftest.F sh: Successful compile: Source: program main end Pushing language FC Popping language FC sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -o /tmp/petsc-3SW45q/config.setCompilers/conftest -Wl,-rpath,/d/dev01/qlu/Lib/petsc-3.4.2 /tmp/petsc-3SW45q/config.setCompilers/conftest.o Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -o /tmp/petsc-3SW45q/config.setCompilers/conftest -Wl,-rpath,/d/dev01/qlu/Lib/petsc-3.4.2 /tmp/petsc-3SW45q/config.setCompilers/conftest.o sh: Valid FC linker flag -Wl,-rpath,/d/dev01/qlu/Lib/petsc-3.4.2 Popping language FC ================================================================================ TEST checkLibC from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:1325) TESTING: checkLibC from config.setCompilers(config/BuildSystem/config/setCompilers.py:1325) Test whether we need to explicitly include libc in shared linking - Mac OSX requires an explicit reference to libc for shared linking ================================================================================ TEST checkDynamicLinker from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:1374) TESTING: checkDynamicLinker from config.setCompilers(config/BuildSystem/config/setCompilers.py:1374) Check that the linker can dynamicaly load shared libraries Checking for header: dlfcn.h All intermediate test results are stored in /tmp/petsc-3SW45q/config.headers sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -E -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.headers /tmp/petsc-3SW45q/config.headers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -E -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.headers /tmp/petsc-3SW45q/config.headers/conftest.c sh: # 1 "/tmp/petsc-3SW45q/config.headers/conftest.c" # 1 "/tmp/petsc-3SW45q/config.headers/confdefs.h" 1 # 2 "/tmp/petsc-3SW45q/config.headers/conftest.c" 2 # 1 "/tmp/petsc-3SW45q/config.headers/conffix.h" 1 # 3 "/tmp/petsc-3SW45q/config.headers/conftest.c" 2 # 1 "/usr/include/dlfcn.h" 1 3 # 1 "/usr/include/features.h" 1 3 # 114 "/usr/include/features.h" 3 # 137 "/usr/include/features.h" 3 # 146 "/usr/include/features.h" 3 # 168 "/usr/include/features.h" 3 # 178 "/usr/include/features.h" 3 # 201 "/usr/include/features.h" 3 # 240 "/usr/include/features.h" 3 # 293 "/usr/include/features.h" 3 # 325 "/usr/include/features.h" 3 # 1 "/usr/include/sys/cdefs.h" 1 3 # 58 "/usr/include/sys/cdefs.h" 3 # 71 "/usr/include/sys/cdefs.h" 3 # 96 "/usr/include/sys/cdefs.h" 3 # 111 "/usr/include/sys/cdefs.h" 3 # 121 "/usr/include/sys/cdefs.h" 3 # 153 "/usr/include/sys/cdefs.h" 3 # 177 "/usr/include/sys/cdefs.h" 3 # 221 "/usr/include/sys/cdefs.h" 3 # 251 "/usr/include/sys/cdefs.h" 3 # 274 "/usr/include/sys/cdefs.h" 3 # 312 "/usr/include/sys/cdefs.h" 3 # 1 "/usr/include/bits/wordsize.h" 1 3 # 314 "/usr/include/sys/cdefs.h" 2 3 # 337 "/usr/include/sys/cdefs.h" 3 # 330 "/usr/include/features.h" 2 3 # 1 "/usr/include/gnu/stubs.h" 1 3 # 1 "/usr/include/bits/wordsize.h" 1 3 # 5 "/usr/include/gnu/stubs.h" 2 3 # 1 "/usr/include/gnu/stubs-32.h" 1 3 # 8 "/usr/include/gnu/stubs.h" 2 3 # 353 "/usr/include/features.h" 2 3 # 25 "/usr/include/dlfcn.h" 2 3 # 1 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 1 3 # 28 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 # 39 "/apps/compilers/intel/Compiler/11.1/056/include/stddef.h" 3 typedef int ptrdiff_t; typedef unsigned size_t; typedef long int wchar_t; # 27 "/usr/include/dlfcn.h" 2 3 # 1 "/usr/include/bits/dlfcn.h" 1 3 # 30 "/usr/include/dlfcn.h" 2 3 # 52 "/usr/include/dlfcn.h" 3 extern void *dlopen (__const char *__file, int __mode) __attribute__ ((__nothrow__)); extern int dlclose (void *__handle) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern void *dlsym (void *__restrict __handle, __const char *__restrict __name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); # 80 "/usr/include/dlfcn.h" 3 extern char *dlerror (void) __attribute__ ((__nothrow__)); # 188 "/usr/include/dlfcn.h" 3 # 4 "/tmp/petsc-3SW45q/config.headers/conftest.c" 2 Defined "HAVE_DLFCN_H" to "1" Checking for function dlopen in library ['dl'] [] Pushing language C All intermediate test results are stored in /tmp/petsc-3SW45q/config.libraries sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.libraries/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries /tmp/petsc-3SW45q/config.libraries/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.libraries/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries /tmp/petsc-3SW45q/config.libraries/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" /* Override any gcc2 internal prototype to avoid an error. */ char dlopen(); int main() { dlopen() ; return 0; } Pushing language C Popping language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.libraries/conftest /tmp/petsc-3SW45q/config.libraries/conftest.o -ldl Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.libraries/conftest /tmp/petsc-3SW45q/config.libraries/conftest.o -ldl sh: Defined "HAVE_LIBDL" to "1" Popping language C Checking for function dlsym in library ['dl'] [] Pushing language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.libraries/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries /tmp/petsc-3SW45q/config.libraries/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.libraries/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries /tmp/petsc-3SW45q/config.libraries/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" /* Override any gcc2 internal prototype to avoid an error. */ char dlsym(); int main() { dlsym() ; return 0; } Pushing language C Popping language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.libraries/conftest /tmp/petsc-3SW45q/config.libraries/conftest.o -ldl Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.libraries/conftest /tmp/petsc-3SW45q/config.libraries/conftest.o -ldl sh: Defined "HAVE_LIBDL" to "1" Popping language C Checking for function dlclose in library ['dl'] [] Pushing language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.libraries/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries /tmp/petsc-3SW45q/config.libraries/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.libraries/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries /tmp/petsc-3SW45q/config.libraries/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" /* Override any gcc2 internal prototype to avoid an error. */ char dlclose(); int main() { dlclose() ; return 0; } Pushing language C Popping language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.libraries/conftest /tmp/petsc-3SW45q/config.libraries/conftest.o -ldl Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.libraries/conftest /tmp/petsc-3SW45q/config.libraries/conftest.o -ldl sh: Defined "HAVE_LIBDL" to "1" Popping language C Adding ['dl'] to LIBS sh: uname -s Executing: uname -s sh: Linux Checking dynamic linker /usr/bin/ar using flags [] Checking for program /usr/bin/ar...found Defined make macro "DYNAMICLINKER" to "/usr/bin/ar" sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries /tmp/petsc-3SW45q/config.setCompilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries /tmp/petsc-3SW45q/config.setCompilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" #include int foo(void) {printf("test");return 0;} Pushing language C Popping language C Pushing language CUDA Popping language CUDA Pushing language Cxx Popping language Cxx Pushing language FC Popping language FC Pushing language C Popping language C sh: /usr/bin/ar -o /tmp/petsc-3SW45q/config.setCompilers/libconftest.so /tmp/petsc-3SW45q/config.setCompilers/conftest.o -ldl Executing: /usr/bin/ar -o /tmp/petsc-3SW45q/config.setCompilers/libconftest.so /tmp/petsc-3SW45q/config.setCompilers/conftest.o -ldl sh: Possible ERROR while running linker: /usr/bin/ar: no operation specified output: ret = 256 error message = {/usr/bin/ar: no operation specified } Pushing language C Popping language C in /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.setCompilers/conftest /tmp/petsc-3SW45q/config.setCompilers/conftest.o -ldl Source: #include "confdefs.h" #include "conffix.h" #include int foo(void) {printf("test");return 0;} Checking dynamic linker /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc using flags ['-shared'] Checking for program /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc...found Defined make macro "DYNAMICLINKER" to "/apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc" sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries /tmp/petsc-3SW45q/config.setCompilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries /tmp/petsc-3SW45q/config.setCompilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" int main() { ; return 0; } Pushing language C Popping language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.setCompilers/conftest -shared /tmp/petsc-3SW45q/config.setCompilers/conftest.o -ldl Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.setCompilers/conftest -shared /tmp/petsc-3SW45q/config.setCompilers/conftest.o -ldl sh: Valid C linker flag -shared sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries /tmp/petsc-3SW45q/config.setCompilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries /tmp/petsc-3SW45q/config.setCompilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" #include int foo(void) {printf("test");return 0;} Pushing language C Popping language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.setCompilers/libconftest.so -shared /tmp/petsc-3SW45q/config.setCompilers/conftest.o -ldl Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.setCompilers/libconftest.so -shared /tmp/petsc-3SW45q/config.setCompilers/conftest.o -ldl sh: sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries /tmp/petsc-3SW45q/config.setCompilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries /tmp/petsc-3SW45q/config.setCompilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" #include int main() { void *handle = dlopen("/tmp/petsc-3SW45q/config.setCompilers/libconftest.so", 0); int (*foo)(void) = (int (*)(void)) dlsym(handle, "foo"); if (!foo) { printf("Could not load symbol\n"); return -1; } if ((*foo)()) { printf("Invalid return from foo()\n"); return -1; } if (dlclose(handle)) { printf("Could not close library\n"); return -1; } ; return 0; } Pushing language C Popping language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.setCompilers/conftest /tmp/petsc-3SW45q/config.setCompilers/conftest.o -ldl Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.setCompilers/conftest /tmp/petsc-3SW45q/config.setCompilers/conftest.o -ldl sh: Using dynamic linker /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc with flags ['-shared'] and library extension so ================================================================================ TEST output from config.setCompilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py:1420) TESTING: output from config.setCompilers(config/BuildSystem/config/setCompilers.py:1420) Output module data as defines and substitutions Substituting "CC" with "/apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc" Substituting "CFLAGS" with "" Defined make macro "CC_LINKER_SLFLAG" to "-Wl,-rpath," Substituting "CPP" with "/apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -E" Substituting "CPPFLAGS" with "" Substituting "CXX" with "/apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc" Substituting "CXX_CXXFLAGS" with "" Substituting "CXXFLAGS" with "" Substituting "CXX_LINKER_SLFLAG" with "-Wl,-rpath," Substituting "CXXCPP" with "/apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -E" Substituting "CXXCPPFLAGS" with "" Substituting "FC" with "/apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort" Substituting "FFLAGS" with "" Defined make macro "FC_LINKER_SLFLAG" to "-Wl,-rpath," Substituting "LDFLAGS" with "" Substituting "LIBS" with "-ldl " Substituting "SHARED_LIBRARY_FLAG" with "" ================================================================================ TEST configureCompilerFlags from config.compilerFlags(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/compilerFlags.py:65) TESTING: configureCompilerFlags from config.compilerFlags(config/BuildSystem/config/compilerFlags.py:65) Get the default compiler flags Pushing language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc --version Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc --version sh: icc (ICC) 11.1 20090827 Copyright (C) 1985-2009 Intel Corporation. All rights reserved. getCompilerVersion: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc icc (ICC) 11.1 20090827 sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc --help Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc --help sh: Intel(R) C++ Compiler Help ========================== usage: icc [options] file1 [file2 ...] icpc [options] file1 [file2 ...] where options represents zero or more compiler options fileN is a C/C++ source (.C .c .cc .cpp .cxx .c++ .i .ii), assembly (.s .S), object (.o), static library (.a), or other linkable file The icpc command uses the same compiler options as the icc command. Invoking the compiler using icpc compiles .c and .i files as C++. Invoking the compiler using icc compiles .c and .i files as C. Using icpc always links in C++ libraries. Using icc only links in C++ libraries if C++ source is provided on the command line. Commonly used options may be placed in the icc .cfg file. Some options listed are only available on a specific system i32 indicates the feature is available on systems based on IA-32 architecture i64em indicates the feature is available on systems using Intel(R) 64 architecture Compiler Option List -------------------- Optimization ------------ -O1 optimize for maximum speed, but disable some optimizations which increase code size for a small speed benefit -O2 optimize for maximum speed (DEFAULT) -O3 optimize for maximum speed and enable more aggressive optimizations that may not improve performance on some programs -O same as -O2 -Os enable speed optimizations, but disable some optimizations which increase code size for small speed benefit -O0 disable optimizations -fast enable -xHOST -O3 -ipo -no-prec-div -static options set by -fast cannot be overridden with the exception of -xHOST, list options separately to change behavior -fno-alias assume no aliasing in program -fno-fnalias assume no aliasing within functions, but assume aliasing across calls -f[no-]builtin disable inline expansion of intrinsic functions -fno-builtin- disable the intrinsic -ffunction-sections separate functions for the linker (COMDAT) -fdata-sections same as -ffunction-sections -nolib-inline disable inline expansion of intrinsic functions Code Generation --------------- -x[,,...] generate specialized code to run exclusively on processors indicated by as described below Host generate instructions for the highest instruction set and processor available on the compilation host machine SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSE3_ATOM Can generate MOVBE instructions for Intel processors and can optimize for the Intel(R) Atom(TM) processor. SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for SSE4 Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -ax[,,...] generate code specialized for processors specified by while also generating generic IA-32 instructions. includes one or more of the following: SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -mcpu= same as -mtune= -mtune= optimize for a specific pentium3 - optimize for Pentium(R) III processors pentium4 - optimize for Pentium(R) 4 processor (DEFAULT) -march= generate code exclusively for a given pentium3 - streaming SIMD extensions pentium4 - Pentium(R) 4 New Instructions -mia32 generates code which will run on any Intel Pentium or later processor. Disables any default extended instruction settings, and any previously set extended instruction settings. -msse generate code for Intel Pentium III and compatible Intel processors -msse2 generate code for Intel Pentium 4 and compatible Intel processors -msse3 generate code for Intel(R) Core(TM) Duo processors, Intel(R) Core(TM) Solo processors, Intel Pentium 4 and compatible Intel processors with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support -mssse3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) -msse4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions -minstruction= Refine instruction set output for the selected target processor [no]movbe - Do/do not generate MOVBE instructions with SSE3_ATOM (requires -xSSE3_ATOM) -f[no-]omit-frame-pointer enable(DEFAULT)/disable use of EBP as general purpose register. -fno-omit-frame-pointer replaces -fp -f[no-]exceptions enable/disable(DEFAULT) C++ exception handling table generation -fnon-call-exceptions enable/disable(DEFAULT) code that allows exceptions from trapping instructions to be caught Interprocedural Optimization (IPO) ---------------------------------- -[no-]ip enable(DEFAULT)/disable single-file IP optimization within files -ipo[n] enable multi-file IP optimization between files -ipo-c generate a multi-file object file (ipo_out.o) -ipo-S generate a multi-file assembly file (ipo_out.S) -ip-no-inlining disable full and partial inlining -ip-no-pinlining disable partial inlining -ipo-separate create one object file for every source file (overrides -ipo[n]) -ipo-jobs specify the number of jobs to be executed simultaneously during the IPO link phase Advanced Optimizations ---------------------- -unroll[n] set maximum number of times to unroll loops. Omit n to use default heuristics. Use n=0 to disable the loop unroller -[no-]unroll-aggressive enables more aggressive unrolling heuristics -funroll-loops unroll loops based on default heuristics -[no-]scalar-rep enable(DEFAULT)/disable scalar replacement (requires -O3) -[no-]ansi-alias enable/disable(DEFAULT) use of ANSI aliasing rules optimizations; user asserts that the program adheres to these rules -[no-]complex-limited-range enable/disable(DEFAULT) the use of the basic algebraic expansions of some complex arithmetic operations. This can allow for some performance improvement in programs which use a lot of complex arithmetic at the loss of some exponent range. -[no-]alias-const enable/disable(DEFAULT) a heuristic stating that if two arguments to a function have pointer type, a pointer to const does not alias a pointer to non-const. Also known as the input/output buffer rule, it assumes that input and output buffer arguments do not overlap. -fargument-alias arguments may alias each other and may alias global storage -fargument-noalias arguments do not alias each other but may alias global storage -fargument-noalias-global arguments do not alias each other and do not alias global storage -ftls-model= change thread-local storage model, where can be the following: global-dynamic, local-dynamic, initial-exec or local-exec -[no-]opt-multi-version-aggressive enables more aggressive multi-versioning to check for pointer aliasing and scalar replacement -opt-ra-region-strategy[=] select the method that the register allocator uses to partition each routine into regions routine - one region per routine block - one region per block trace - one region per trace loop - one region per loop default - compiler selects best option -[no-]vec enables(DEFAULT)/disables vectorization -[no-]vec-guard-write enables cache/bandwidth optimization for stores under conditionals within vector loops -vec-threshold[n] sets a threshold for the vectorization of loops based on the probability of profitable execution of the vectorized loop in parallel -opt-malloc-options={0|1|2|3|4} specify malloc configuration parameters. Specifying a non-zero value will cause alternate configuration parameters to be set for how malloc allocates and frees memory -opt-calloc enable/disable(DEFAULT) calls to fast calloc function -opt-jump-tables= control the generation of jump tables default - let the compiler decide when a jump table, a series of if-then-else constructs or a combination is generated large - generate jump tables up to a certain pre-defined size (64K entries) - generate jump tables up to in size use -no-opt-jump-tables to lower switch statements as chains of if-then-else constructs -fno-jump-tables do not generate jump tables for switches and if-then-else statements -opt-block-factor= specify blocking factor for loop blocking -ffreestanding compile in a freestanding environment where the standard library may not be present -opt-streaming-stores specifies whether streaming stores are generated always - enables generation of streaming stores under the assumption that the application is memory bound auto - compiler decides when streaming stores are used (DEFAULT) never - disables generation of streaming stores -ipp[=] link some or all of the Intel(R) Integrated Performance Primitives (Intel(R) IPP) libraries and bring in the associated headers common - link using the main libraries set. This is the default value when -ipp is specified crypto - link using the main libraries set and the crypto library nonpic - link using the version of the libraries that do not have position independent code nonpic_crypto - link using the crypto library and the version of the libraries that do not have position independent code -mkl[=] link to the Intel(R) Math Kernel Library (Intel(R) MKL) and bring in the associated headers parallel - link using the threaded Intel(R) MKL libraries. This is the default when -mkl is specified sequential - link using the non-threaded Intel(R) MKL libraries cluster - link using the Intel(R) MKL Cluster libraries plus the sequential Intel(R) MKL libraries -tbb link to the Intel(R) Threading Building Blocks (Intel(R) TBB) libraries and bring in the associated headers -[no-]opt-subscript-in-range assumes no overflows in the intermediate computation of the subscripts -[no-]use-intel-optimized-headers take advantage of the optimized header files Profile Guided Optimization (PGO) --------------------------------- -prof-dir specify directory for profiling output files (*.dyn and *.dpi) -prof-src-root specify project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -prof-src-root-cwd specify the current directory as the project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -[no-]prof-src-dir specify whether directory names of sources should be considered when looking up profile records within the .dpi file -prof-file specify file name for profiling summary file -[no-]prof-data-order enable/disable(DEFAULT) static data ordering with profiling -[no-]prof-func-order enable/disable(DEFAULT) function ordering with profiling -[no-]prof-func-groups enable(DEFAULT with PGO)/disable function grouping -prof-gen[=keyword] instrument program for profiling. Optional keyword may be srcpos or globdata -no-prof-gen disable profiling instrumentation -prof-use[=] enable use of profiling information during optimization weighted - invokes profmerge with -weighted option to scale data based on run durations [no]merge - enable(default)/disable the invocation of the profmerge tool -no-prof-use disable use of profiling information during optimization -opt-prefetch[=n] enable levels of prefetch insertion, where 0 disables. n may be 0 through 4 inclusive. Default is 2. -no-opt-prefetch disable(DEFAULT) prefetch insertion. Equivalent to -opt-prefetch=0 -p compile and link for function profiling with UNIX gprof tool On IA32 and Intel(r)64, -pg is also valid -f[no-]instrument-functions determine whether function entry and exit points are instrumented -prof-hotness-threshold= set the hotness threshold for function grouping and function ordering val indicates percentage of functions to be placed in hot region. This option requires -prof-use and -prof-func-groups or -prof-func-order Optimization Reports -------------------- -vec-report[n] control amount of vectorizer diagnostic information n=0 no diagnostic information n=1 indicate vectorized loops (DEFAULT) n=2 indicate vectorized/non-vectorized loops n=3 indicate vectorized/non-vectorized loops and prohibiting data dependence information n=4 indicate non-vectorized loops n=5 indicate non-vectorized loops and prohibiting data dependence information -opt-report [n] generate an optimization report to stderr 0 disable optimization report output 1 minimum report output 2 medium output (DEFAULT when enabled) 3 maximum report output -opt-report-file= specify the filename for the generated report -opt-report-phase= specify the phase that reports are generated against -opt-report-routine= reports on routines containing the given name -opt-report-help display the optimization phases available for reporting -tcheck [mode] enable analysis of threaded applications (requires Intel(R) Thread Checker; cannot be used with compiler alone) tci - instruments a program to perform a thread-count-independent analysis tcd - instruments a program to perform a thread-count-dependent analysis (DEFAULT when mode is not used) api - instruments a program at the api-imports level -tprofile generate instrumentation to analyze multi-threading performance (requires Intel(R) Thread Profiler; cannot be used with compiler alone) -tcollect[=] inserts instrumentation probes calling the Intel(R) Trace Collector API. The library -l is linked in the default being -lVT (requires Intel(R) Trace Collector) -tcollect-filter file Enable or disable the instrumentation of specified functions. (requires Intel(R) Trace Collector) OpenMP* and Parallel Processing ------------------------------- -openmp enable the compiler to generate multi-threaded code based on the OpenMP* directives -openmp-profile enable analysis of OpenMP application when the Intel(R) Thread Profiler is installed -openmp-stubs enables the user to compile OpenMP programs in sequential mode. The OpenMP directives are ignored and a stub OpenMP library is linked (sequential) -openmp-report{0|1|2} control the OpenMP parallelizer diagnostic level -openmp-lib choose which OpenMP library version to link with compat - use the GNU compatible OpenMP run-time libraries (DEFAULT) -openmp-link choose whether to link with the static or dynamic OpenMP libraries. Default is dynamic. -openmp-task choose which OpenMP tasking model to support omp - support OpenMP 3.0 tasking (DEFAULT) intel - support Intel taskqueuing -openmp-threadprivate choose which threadprivate implementation to use compat - use the GNU compatible thread local storage legacy - use the Intel compatible implementation (DEFAULT) -parallel enable the auto-parallelizer to generate multi-threaded code for loops that can be safely executed in parallel -par-report{0|1|2|3} control the auto-parallelizer diagnostic level -par-threshold[n] set threshold for the auto-parallelization of loops where n is an integer from 0 to 100 -[no-]par-runtime-control enable compiler to generate runtime control code for effective automatic parallelization -par-schedule-static[=n] Specifies a scheduling algorithm for DO loop iteration. Divides iterations into contiguous pieces. Size n if specified, equal sized pieces if not. -par-schedule-static-balanced[=n] Divides iterations into even-sized chunks. Size n if specified, equal sized pieces if not. -par-schedule-static-steal[=n] Divides iterations into even-sized chunks, but allows threads to steal parts of chunks from neighboring threads -par-schedule-dynamic[=n] Specifies a scheduling algorithm for DO loop iteration. Assigns iterations to threads in chunks dynamically. Chunk size is n iterations if specified, otherwise 1. -par-schedule-guided[=n] Specifies a scheduling algorithm for DO loop iteration. Indicates a minimum number of iterations. If specified, n is the minimum number, otherwise 1. -par-schedule-guided-analytical[=n] Divides iterations by using exponential distribution or dynamic distributions. -par-schedule-runtime Specifies a scheduling algorithm for DO loop iteration. Defers the scheduling decision until runtime. -par-schedule-auto Lets the compiler or run-time system determine the scheduling algorithm. -par-affinity=[,...][,][,] tune application performance by setting different thread affinity -par-num-threads= tune application performance by setting different number of threads Floating Point -------------- -fp-model enable floating point model variation [no-]except - enable/disable floating point semantics fast[=1|2] - enables more aggressive floating point optimizations precise - allows value-safe optimizations source - enables intermediates in source precision strict - enables -fp-model precise -fp-model except, disables contractions and enables pragma stdc fenv_access double - rounds intermediates in 53-bit (double) precision extended - rounds intermediates in 64-bit (extended) precision -fp-speculation= enable floating point speculations with the following conditions: fast - speculate floating point operations (DEFAULT) safe - speculate only when safe strict - same as off off - disables speculation of floating-point operations -pc32 set internal FPU precision to 24 bit significand -pc64 set internal FPU precision to 53 bit significand (DEFAULT) -pc80 set internal FPU precision to 64 bit significand -mp1 improve floating-point precision (speed impact less than -mp) -mieee-fp same as -mp, can be disabled with -mno-ieee-fp -[no-]prec-sqrt determine if certain square root optimizations are enabled -[no-]prec-div improve precision of FP divides (some speed impact) -[no-]fast-transcendentals generate a faster version of the transcendental functions -[no-]fp-port round fp results at assignments and casts (some speed impact) -fp-stack-check enable fp stack checking after every function/procedure call -rcd rounding mode to enable fast float-to-int conversions -[no-]ftz enable/disable flush denormal results to zero Inlining -------- -inline-level= control inline expansion: n=0 disable inlining n=1 inline functions declared with __inline, and perform C++ inlining n=2 inline any function, at the compiler's discretion -f[no-]inline inline functions declared with __inline, and perform C++ inlining -f[no-]inline-functions inline any function at the compiler's discretion -finline-limit= set maximum number of statements a function can have and still be considered for inlining -inline-min-size= set size limit for inlining small routines -no-inline-min-size no size limit for inlining small routines -inline-max-size= set size limit for inlining large routines -no-inline-max-size no size limit for inlining large routines -inline-max-total-size= maximum increase in size for inline function expansion -no-inline-max-total-size no size limit for inline function expansion -inline-max-per-routine= maximum number of inline instances in any function -no-inline-max-per-routine no maximum number of inline instances in any function -inline-max-per-compile= maximum number of inline instances in the current compilation -no-inline-max-per-compile no maximum number of inline instances in the current compilation -inline-factor= set inlining upper limits by n percentage -no-inline-factor do not set set inlining upper limits -inline-forceinline treat inline routines as forceinline -inline-calloc directs the compiler to inline calloc() calls as malloc()/memset() Output, Debug, PCH ------------------ -c compile to object (.o) only, do not link -S compile to assembly (.s) only, do not link -fsource-asm produce assembly file with optional source annotations (requires -S) -f[no-]verbose-asm produce assembly file with compiler comments (DEFAULT) (requires -S) -fcode-asm produce assembly file with optional code annotations (requires -S) -use-msasm support Microsoft* style assembly language insertion using MASM style syntax -o name output file -g produce symbolic debug information in object file (implies -O0 when another optimization option is not explicitly set) -debug [keyword] enable debug information and control output of enhanced debug information keywords: all, full, minimal, none, [no]inline-debug-info [no]variable-locations, [no]semantic-stepping, extended parallel [no]expr-source-pos -g0 disable generation of symbolic debug information -gdwarf-2 enable generation of debug information using the DWARF2 format -ftrapuv trap uninitialized variables -map-opts enable option mapping tool -print-multi-lib print information about libraries being used -pch-create create precompiled header file -pch-use use precompiled header file -pch enable automatic precompiled header file creation/usage -pch-dir name precompiled header directory Preprocessor ------------ -A[] create an assertion having value -C do not strip comments -D[=] define macro -U remove predefined macro -E preprocess to stdout -EP preprocess to stdout, omitting #line directives -P preprocess to file, omitting #line directives -I add directory to include file search path -idirafter add directory to the second include file search path (after -I) -isystem add directory to the start of the system include path -X, -nostdinc remove standard directories from include file search path -nostdinc++ remove standard C++ directories from include file search path -iprefix use with -iwithprefix as a prefix -iwithprefix append to the prefix passed in by -iprefix and put it on the include search path at the end of the include directories -iwithprefixbefore similar to -iwithprefix except the include directory is placed in the same place as -I command line include directories -iquote add directory to the front of the include file search path for files included with quotes, but not brackets -imacros treat as an #include file, but throw away all preprocessing while macros defined remain defined -H print include file order -B find libraries, headers and executables in -M generate makefile dependency information -MM similar to -M, but do not include system header files -MG similar to -M, but treat missing header files as generated files -MD preprocess and compile, generating output file containing dependency information ending with extension .d -MMD similar to -MD, but do not include system header files -MF generate makefile dependency information in file (must specify -M or -MM) -MP add a phony target for each dependency -MT change the default target rule for dependency generation -MQ same as -MT, but quotes special Make characters -dM output macro definitions in effect after preprocessing (use with -E) -dD same as -dM, but output #define directives in preprocessed source -dN same as -dD, but #define directives contain only macro names -gcc Predefine the "__GNUC__", "__GNUC_MINOR__", and "__GNUC_PATCHLEVEL__" macros (DEFAULT) -no-gcc Do not predefine GNUC macros listed in -gcc mode. Warning: can prevent correct system header compilation, see -gcc-sys -gcc-sys same as -no-gcc, except that the GNU macros are defined only while preprocessing the system include headers -no-icc do not predefine the "__ICC" and "__INTEL_COMPILER" macros. Warning: can prevent correct Intel header compilation -pragma-optimization-level=[Intel|GCC] process #pragma optimize using Intel (DEFAULT) or GCC syntax Component Control ----------------- -Qoption,, pass options to tool specified by -Qlocation,, set as the location of tool specified by -Qinstall set as root of compiler installation Language -------- -std= enable language support for , as described below c99 enable C99 support for C programs c++0x enable preliminary support for some C++0x features -x all source files found subsequent to -x will be recognized as one of the following types: c - C source file c++ - C++ source file c-header - C header file cpp-output - C pre-processed file c++-cpp-output - C++ pre-processed file assembler - assembly file assembler-with-cpp - assembly file that needs to be preprocessed none - revert to original file extension -ansi equivalent to GNU -ansi -strict-ansi strict ANSI conformance dialect -Zp[n] specify alignment constraint for structures where n=1,2,4,8,16. 16 is the default -fsyntax-only perform syntax and semantic checking only (no object file produced) -fpermissive allows extensions for some non-conformant code -funsigned-char change default char type to unsigned -fshort-enums allocate as many bytes as needed for enumerated types -f[no-]unsigned-bitfields change default bitfield type to unsigned -fno-rtti disable RTTI support -fno-implicit-templates never emit code for non-inline templates which are instantiated implicitly; only emit code for explicit instantiations -fno-implicit-inline-templates do not emit code for implicit instantiations of inline templates -ftemplate-depth-[n] control the depth in which recursive templates are expanded -[no]align analyze and reorder memory layout for variables and arrays -[no-]restrict enable/disable the 'restrict' keyword for disambiguating pointers -[no-]early-template-check enable/disable (DEFAULT) semantic checking of function template prototypes (before instantiation). Requires -gcc-version=340 or later -[no-]check-uninit check for uninitialized variables -export enable the export template feature -export-dir add directory to export template search path -help-pragma output supported pragmas and their usage syntax Compiler Diagnostics -------------------- -w disable all warnings -w control diagnostics n = 0 display errors (same as -w) n = 1 display warnings and errors (DEFAULT) n = 2 display remarks, warnings and errors -Wbrief print brief one-line diagnostics -Werror force warnings to be reported as errors -Werror-all force warnings and remarks to be reported as errors -Wall enable all warnings -Wcheck enable more strict diagnostics -Weffc++ enable effective C++ diagnostic warnings -wo[,,...] issue diagnostics L1 through LN only once -W[no-]fatal-errors ends compilation after the first error encountered -W[no-]format enable argument checking for calls to printf, scanf, etc -W[no-]format-security warn for uses of format strings and specifiers in printf, scanf, etc that may introduce security problems -W[no-]missing-declarations warn for global functions and variables without prior declaration -W[no-]missing-prototypes warn for missing prototypes -W[no-]strict-aliasing warn for code that might violate the optimizer's strict aliasing rules. Warnings are issued only when using -fstrict-aliasing or -ansi-alias. -W[no-]strict-prototypes warn for functions declared or defined without specified argument types -W[no-]pointer-arith warn for questionable pointer arithmetic -W[no-]uninitialized warn if a variable is used before being initialized -Winline enable inline diagnostics -W[no-]deprecated print warnings related to deprecated features -W[no-]abi warn if generated code is not C++ ABI compliant -Wcontext-limit= set maximum number of template instantiation contexts shown in diagnostic -Wcast-qual warn if cast is used to override pointer type qualifier -W[no-]unused-function warn if declared function is not used -W[no-]unknown-pragmas warn if an unknown #pragma directive is used (DEFAULT) -W[no-]main warn if return type of main is not expected -W[no-]comment[s] warn when comment -W[no-]conversion warn for implicit conversions that may alter a value -W[no-]return-type warn when a function uses the default int return type and warn when a return statement is used in a void function -W[no-]extra-tokens warn about extra tokens after prepreprocessor directives -W[no-]pragma-once warn about the use of #pragma once -W[no-]shadow warn when a variable declaration hides a previous declaration -Woverloaded-virtual warn when a function declaration hides virtual functions from a base class -W[no-]trigraphs warn about the recognition and conversion of trigraphs -W[no-]multichar warn if a multicharacter constant ('ABC') is used -W[no-]overflow warn for operations that could result in integer overflow -Wwrite-strings Issues a diagnostic message if const char * is converted to (non-const) char *. -Wp64 print diagnostics for 64-bit porting -W[no-]shorten-64-to-32 warn for values implicitly converted from a 64-bit to a 32-bit type. Similar to -Wp64 -[no]traceback specify whether the compiler generates data to allow for source file traceback information at runtime (only to be used when linking with Fortran programs) -noerror-limit set no maximum number on error-level or fatal-level error messages -diag-enable [,,...] enable the specified diagnostics or diagnostic groups -diag-disable [,,...] disable the specified diagnostics or diagnostic groups where may be individual diagnostic numbers or group names. where group names include: sc[n] - perform source code analysis: n=1 for critical errors, n=2 for all errors and n=3 for all errors and warnings sc-include - perform source code analysis on include files sc-parallel[n] - perform analysis of parallelization in source code: n=1 for critical errors, n=2 for errors, n=3 for all errors and warnings thread - enable diagnostics to aid in thread-enabling source port-win - enable diagnostics for GNU extensions that may cause errors when porting to Windows -diag-error [,,...] output the specified diagnostics or diagnostic groups as errors -diag-warning [,,...] output the specified diagnostics or diagnostic groups as warnings -diag-remark [,,...] output the the specified diagnostics or diagnostic groups as remarks -diag-dump display the currently enabled diagnostic messages to stdout or to a specified diagnostic output file. -diag-file[=] where diagnostics are emitted to. Not specifying this causes messages to be output to stderr -diag-file-append[=] where diagnostics are emitted to. When already exists, output is appended to the file -[no-]diag-id-numbers enable(DEFAULT)/disable the diagnostic specifiers to be output in numeric form -diag-error-limit specify the maximum number of errors emitted -diag-once [,,...] issue diagnostics v1 through vN only once Miscellaneous ------------- -V display compiler version information -dumpversion display the compiler version number only -dumpmachine display the target machine only --version display GCC style version information -[no-]sox enable/disable(DEFAULT) saving of compiler options and version in the executable -save-temps store the intermediate files in current directory and name them based on the source file. Only saves files that are generated by default -dryrun show driver tool commands but do not execute tools -v show driver tool commands and execute tools -[no-]multibyte-chars provide support for multi-byte characters -multiple-processes[=] create multiple processes that can be used to compile large numbers of source files at the same time Data ---- -Zp[n] specify alignment constraint for structures (n=1,2,4,8,16 -Zp16 DEFAULT) -[no]align analyze and reorder memory layout for variables and arrays -fminshared Compilation is for the main executable. Absolute addressing can be used and non-position independent code generated for symbols that are at least protected -fcommon Enables the compiler to treat common variables as if they were defined. That in turn allows the use of gprel addressing of common data variables. -fno-common disables -freg-struct-return return struct and union values in registers when possible -fstack-security-check enable overflow security checks. -f[no-]stack-security-check disables (DEFAULT) -fstack-protector enable stack overflow security checks. -f[no-]stack-protector disables (DEFAULT) -fpic, -fPIC generate position independent code (-fno-pic/-fno-PIC is DEFAULT) -fpie, -fPIE generate position independent code that will be linked into an executable (-fno-pie/-fno-PIE is DEFAULT) -[no-]global-hoist enable(DEFAULT)/disable external globals are load safe -f[no-]keep-static-consts enable/disable(DEFAULT) emission of static const variables even when not referenced -fpack-struct pack structure members together -f[no-]math-errno set ERRNO after calling standard math library functions -no-bss-init disable placement of zero-initialized variables in BSS (use DATA) -falign-functions=[2|16] align the start of functions on a 2 (DEFAULT) or 16 byte boundary -falign-functions align the start of functions to an optimal machine-dependent value. -fno-align-functions (DEFAULT) aligns on a 2-byte boundary -falign-stack= stack alignment method to use on entry to routines default - use default heuristics maintain-16-byte - do not assume any specific alignment, but maintain alignment in case the stack is already aligned assume-16-byte - assume the stack is aligned on 16-byte boundaries -fvisibility=[extern|default|protected|hidden|internal] Global symbols (data and functions) will get the visibility attribute given by default. Symbol visibility attributes explicitly set in the source code or using the symbol visibility attribute file options will override the -fvisibility setting -fvisibility-extern= Space separated symbols listed in the argument will geti visibility set to extern -fvisibility-default= Space separated symbols listed in the argument will get visibility set to default -fvisibility-protected= Space separated symbols listed in the argument will get visibility set to protected -fvisibility-hidden= Space separated symbols listed in the argument will get visibility set to hidden -fvisibility-internal= Space separated symbols listed in the argument will get visibility set to internal -fvisibility-inlines-hidden mark inline member functions as hidden Compatibility ------------- -gcc-name= name and location of gcc if not where expected -gxx-name= name and location of g++ if not where expected -gcc-version= specify the of gcc compatibility. Default value matches gcc version installed. Major/Minor versions listed but patch levels (i.e. 345) are permissible 320 - gcc 3.2.x compatibility 330 - gcc 3.3.x compatibility 340 - gcc 3.4.x compatibility 400 - gcc 4.0.x compatibility 410 - gcc 4.1.x compatibility 420 - gcc 4.2.x compatibility -fabi-version= directs the compiler to select a specific ABI implementation 0 - most recent ABI implementation 1 - g++ 3.2 compatible ABI implementation 2 - most conformant ABI implementation Linking/Linker -------------- -L instruct linker to search for libraries -l instruct the linker to link in the -l library -shared-intel link Intel provided libraries dynamically -static-intel link Intel provided libraries statically -shared-libgcc link libgcc dynamically -static-libgcc link libgcc statically -dynamic-linker select dynamic linker other than the default -no-cxxlib do not link in C++ runtime libraries -cxxlib[=dir] link using C++ run-time libraries provided with gcc dir is an optional top-level location for the gcc binaries and libraries -nodefaultlibs do not use standard libraries when linking -nostartfiles do not use standard startup files when linking -nostdlib do not use standard libraries and startup files when linking -static prevents linking with shared libraries -shared produce a shared object -Bstatic specify following libraries are linked statically -Bdynamic specify following libraries are linked dynamically -pthread use POSIX* thread library for multithreading support -cxxlib- tell the compiler which C++ run-time libraries to use nostd - do not link in standard C++ library -u pretend the is undefined -T direct linker to read link commands from -Xlinker pass directly to the linker for processing -Wa,[,,...] pass options o1, o2, etc. to the assembler -Wl,[,,...] pass options o1, o2, etc. to the linker for processing -Wp,[,,...] pass options o1, o2, etc. to the preprocessor Deprecated Options ------------------ -Ob use -inline-level= -cxxlib-gcc[=dir] use -cxxlib[=dir] -i-dynamic use -shared-intel -i-static use -static-intel -inline-debug-info use -debug inline-debug-info -mp use -fp-model -use-asm no replacement -A- use -U -prefetch use -opt-prefetch -prof-genx use -prof-gen=srcpos -openmp-lib=legacy use -openmp-lib=compat -xB use -xSSE2 (i32 only) -xK use -xSSE (i32 only) -axK No replacement -xW use -msse2 -axW use -msse2 -xN use -xSSE2 -axN use -axSSE2 -xP use -xSSE3 -axP use -axSSE3 -xT use -xSSSE3 -axT use -axSSSE3 -xS use -xSSE4.1 -axS use -axSSE4.1 -xO use -msse3 -func-groups use -prof-func-groups -diag-enable sv use -diag-enable sc -diag-enable sv-include use -diag-enable sc-include -diag-disable sv use -diag-disable sc -diag-sv use -diag-enable sc -diag-sv-error use -diag-disable warning -diag-sv-include use -diag-enable sc-include -diag-sv-level No replacement -diag-sv-sup use -diag-disable [,,...] -alias-args use -fargument-alias -c99 use -std=c99 -create-pch use -pch-create -fwritable-strings no replacement -Kc++ use -x c++ -no-alias-args use -fargument-noalias -use-pch use -pch-use -wn use -diag-error-limit -wd use -diag-disable -we use -diag-error -ww use -diag-warning -wr use -diag-remark -wo use -diag-once -help [category] print full or category help message Valid categories include advanced - Advanced Optimizations codegen - Code Generation compatibility - Compatibility component - Component Control data - Data deprecated - Deprecated Options diagnostics - Compiler Diagnostics float - Floating Point help - Help inline - Inlining ipo - Interprocedural Optimization (IPO) language - Language link - Linking/Linker misc - Miscellaneous opt - Optimization output - Output pgo - Profile Guided Optimization (PGO) preproc - Preprocessor reports - Optimization Reports openmp - OpenMP and Parallel Processing Copyright (C) 1985-2009, Intel Corporation. All rights reserved. * Other brands and names are the property of their respective owners. sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc --help Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc --help sh: Intel(R) C++ Compiler Help ========================== usage: icc [options] file1 [file2 ...] icpc [options] file1 [file2 ...] where options represents zero or more compiler options fileN is a C/C++ source (.C .c .cc .cpp .cxx .c++ .i .ii), assembly (.s .S), object (.o), static library (.a), or other linkable file The icpc command uses the same compiler options as the icc command. Invoking the compiler using icpc compiles .c and .i files as C++. Invoking the compiler using icc compiles .c and .i files as C. Using icpc always links in C++ libraries. Using icc only links in C++ libraries if C++ source is provided on the command line. Commonly used options may be placed in the icc .cfg file. Some options listed are only available on a specific system i32 indicates the feature is available on systems based on IA-32 architecture i64em indicates the feature is available on systems using Intel(R) 64 architecture Compiler Option List -------------------- Optimization ------------ -O1 optimize for maximum speed, but disable some optimizations which increase code size for a small speed benefit -O2 optimize for maximum speed (DEFAULT) -O3 optimize for maximum speed and enable more aggressive optimizations that may not improve performance on some programs -O same as -O2 -Os enable speed optimizations, but disable some optimizations which increase code size for small speed benefit -O0 disable optimizations -fast enable -xHOST -O3 -ipo -no-prec-div -static options set by -fast cannot be overridden with the exception of -xHOST, list options separately to change behavior -fno-alias assume no aliasing in program -fno-fnalias assume no aliasing within functions, but assume aliasing across calls -f[no-]builtin disable inline expansion of intrinsic functions -fno-builtin- disable the intrinsic -ffunction-sections separate functions for the linker (COMDAT) -fdata-sections same as -ffunction-sections -nolib-inline disable inline expansion of intrinsic functions Code Generation --------------- -x[,,...] generate specialized code to run exclusively on processors indicated by as described below Host generate instructions for the highest instruction set and processor available on the compilation host machine SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSE3_ATOM Can generate MOVBE instructions for Intel processors and can optimize for the Intel(R) Atom(TM) processor. SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for SSE4 Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -ax[,,...] generate code specialized for processors specified by while also generating generic IA-32 instructions. includes one or more of the following: SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -mcpu= same as -mtune= -mtune= optimize for a specific pentium3 - optimize for Pentium(R) III processors pentium4 - optimize for Pentium(R) 4 processor (DEFAULT) -march= generate code exclusively for a given pentium3 - streaming SIMD extensions pentium4 - Pentium(R) 4 New Instructions -mia32 generates code which will run on any Intel Pentium or later processor. Disables any default extended instruction settings, and any previously set extended instruction settings. -msse generate code for Intel Pentium III and compatible Intel processors -msse2 generate code for Intel Pentium 4 and compatible Intel processors -msse3 generate code for Intel(R) Core(TM) Duo processors, Intel(R) Core(TM) Solo processors, Intel Pentium 4 and compatible Intel processors with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support -mssse3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) -msse4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions -minstruction= Refine instruction set output for the selected target processor [no]movbe - Do/do not generate MOVBE instructions with SSE3_ATOM (requires -xSSE3_ATOM) -f[no-]omit-frame-pointer enable(DEFAULT)/disable use of EBP as general purpose register. -fno-omit-frame-pointer replaces -fp -f[no-]exceptions enable/disable(DEFAULT) C++ exception handling table generation -fnon-call-exceptions enable/disable(DEFAULT) code that allows exceptions from trapping instructions to be caught Interprocedural Optimization (IPO) ---------------------------------- -[no-]ip enable(DEFAULT)/disable single-file IP optimization within files -ipo[n] enable multi-file IP optimization between files -ipo-c generate a multi-file object file (ipo_out.o) -ipo-S generate a multi-file assembly file (ipo_out.S) -ip-no-inlining disable full and partial inlining -ip-no-pinlining disable partial inlining -ipo-separate create one object file for every source file (overrides -ipo[n]) -ipo-jobs specify the number of jobs to be executed simultaneously during the IPO link phase Advanced Optimizations ---------------------- -unroll[n] set maximum number of times to unroll loops. Omit n to use default heuristics. Use n=0 to disable the loop unroller -[no-]unroll-aggressive enables more aggressive unrolling heuristics -funroll-loops unroll loops based on default heuristics -[no-]scalar-rep enable(DEFAULT)/disable scalar replacement (requires -O3) -[no-]ansi-alias enable/disable(DEFAULT) use of ANSI aliasing rules optimizations; user asserts that the program adheres to these rules -[no-]complex-limited-range enable/disable(DEFAULT) the use of the basic algebraic expansions of some complex arithmetic operations. This can allow for some performance improvement in programs which use a lot of complex arithmetic at the loss of some exponent range. -[no-]alias-const enable/disable(DEFAULT) a heuristic stating that if two arguments to a function have pointer type, a pointer to const does not alias a pointer to non-const. Also known as the input/output buffer rule, it assumes that input and output buffer arguments do not overlap. -fargument-alias arguments may alias each other and may alias global storage -fargument-noalias arguments do not alias each other but may alias global storage -fargument-noalias-global arguments do not alias each other and do not alias global storage -ftls-model= change thread-local storage model, where can be the following: global-dynamic, local-dynamic, initial-exec or local-exec -[no-]opt-multi-version-aggressive enables more aggressive multi-versioning to check for pointer aliasing and scalar replacement -opt-ra-region-strategy[=] select the method that the register allocator uses to partition each routine into regions routine - one region per routine block - one region per block trace - one region per trace loop - one region per loop default - compiler selects best option -[no-]vec enables(DEFAULT)/disables vectorization -[no-]vec-guard-write enables cache/bandwidth optimization for stores under conditionals within vector loops -vec-threshold[n] sets a threshold for the vectorization of loops based on the probability of profitable execution of the vectorized loop in parallel -opt-malloc-options={0|1|2|3|4} specify malloc configuration parameters. Specifying a non-zero value will cause alternate configuration parameters to be set for how malloc allocates and frees memory -opt-calloc enable/disable(DEFAULT) calls to fast calloc function -opt-jump-tables= control the generation of jump tables default - let the compiler decide when a jump table, a series of if-then-else constructs or a combination is generated large - generate jump tables up to a certain pre-defined size (64K entries) - generate jump tables up to in size use -no-opt-jump-tables to lower switch statements as chains of if-then-else constructs -fno-jump-tables do not generate jump tables for switches and if-then-else statements -opt-block-factor= specify blocking factor for loop blocking -ffreestanding compile in a freestanding environment where the standard library may not be present -opt-streaming-stores specifies whether streaming stores are generated always - enables generation of streaming stores under the assumption that the application is memory bound auto - compiler decides when streaming stores are used (DEFAULT) never - disables generation of streaming stores -ipp[=] link some or all of the Intel(R) Integrated Performance Primitives (Intel(R) IPP) libraries and bring in the associated headers common - link using the main libraries set. This is the default value when -ipp is specified crypto - link using the main libraries set and the crypto library nonpic - link using the version of the libraries that do not have position independent code nonpic_crypto - link using the crypto library and the version of the libraries that do not have position independent code -mkl[=] link to the Intel(R) Math Kernel Library (Intel(R) MKL) and bring in the associated headers parallel - link using the threaded Intel(R) MKL libraries. This is the default when -mkl is specified sequential - link using the non-threaded Intel(R) MKL libraries cluster - link using the Intel(R) MKL Cluster libraries plus the sequential Intel(R) MKL libraries -tbb link to the Intel(R) Threading Building Blocks (Intel(R) TBB) libraries and bring in the associated headers -[no-]opt-subscript-in-range assumes no overflows in the intermediate computation of the subscripts -[no-]use-intel-optimized-headers take advantage of the optimized header files Profile Guided Optimization (PGO) --------------------------------- -prof-dir specify directory for profiling output files (*.dyn and *.dpi) -prof-src-root specify project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -prof-src-root-cwd specify the current directory as the project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -[no-]prof-src-dir specify whether directory names of sources should be considered when looking up profile records within the .dpi file -prof-file specify file name for profiling summary file -[no-]prof-data-order enable/disable(DEFAULT) static data ordering with profiling -[no-]prof-func-order enable/disable(DEFAULT) function ordering with profiling -[no-]prof-func-groups enable(DEFAULT with PGO)/disable function grouping -prof-gen[=keyword] instrument program for profiling. Optional keyword may be srcpos or globdata -no-prof-gen disable profiling instrumentation -prof-use[=] enable use of profiling information during optimization weighted - invokes profmerge with -weighted option to scale data based on run durations [no]merge - enable(default)/disable the invocation of the profmerge tool -no-prof-use disable use of profiling information during optimization -opt-prefetch[=n] enable levels of prefetch insertion, where 0 disables. n may be 0 through 4 inclusive. Default is 2. -no-opt-prefetch disable(DEFAULT) prefetch insertion. Equivalent to -opt-prefetch=0 -p compile and link for function profiling with UNIX gprof tool On IA32 and Intel(r)64, -pg is also valid -f[no-]instrument-functions determine whether function entry and exit points are instrumented -prof-hotness-threshold= set the hotness threshold for function grouping and function ordering val indicates percentage of functions to be placed in hot region. This option requires -prof-use and -prof-func-groups or -prof-func-order Optimization Reports -------------------- -vec-report[n] control amount of vectorizer diagnostic information n=0 no diagnostic information n=1 indicate vectorized loops (DEFAULT) n=2 indicate vectorized/non-vectorized loops n=3 indicate vectorized/non-vectorized loops and prohibiting data dependence information n=4 indicate non-vectorized loops n=5 indicate non-vectorized loops and prohibiting data dependence information -opt-report [n] generate an optimization report to stderr 0 disable optimization report output 1 minimum report output 2 medium output (DEFAULT when enabled) 3 maximum report output -opt-report-file= specify the filename for the generated report -opt-report-phase= specify the phase that reports are generated against -opt-report-routine= reports on routines containing the given name -opt-report-help display the optimization phases available for reporting -tcheck [mode] enable analysis of threaded applications (requires Intel(R) Thread Checker; cannot be used with compiler alone) tci - instruments a program to perform a thread-count-independent analysis tcd - instruments a program to perform a thread-count-dependent analysis (DEFAULT when mode is not used) api - instruments a program at the api-imports level -tprofile generate instrumentation to analyze multi-threading performance (requires Intel(R) Thread Profiler; cannot be used with compiler alone) -tcollect[=] inserts instrumentation probes calling the Intel(R) Trace Collector API. The library -l is linked in the default being -lVT (requires Intel(R) Trace Collector) -tcollect-filter file Enable or disable the instrumentation of specified functions. (requires Intel(R) Trace Collector) OpenMP* and Parallel Processing ------------------------------- -openmp enable the compiler to generate multi-threaded code based on the OpenMP* directives -openmp-profile enable analysis of OpenMP application when the Intel(R) Thread Profiler is installed -openmp-stubs enables the user to compile OpenMP programs in sequential mode. The OpenMP directives are ignored and a stub OpenMP library is linked (sequential) -openmp-report{0|1|2} control the OpenMP parallelizer diagnostic level -openmp-lib choose which OpenMP library version to link with compat - use the GNU compatible OpenMP run-time libraries (DEFAULT) -openmp-link choose whether to link with the static or dynamic OpenMP libraries. Default is dynamic. -openmp-task choose which OpenMP tasking model to support omp - support OpenMP 3.0 tasking (DEFAULT) intel - support Intel taskqueuing -openmp-threadprivate choose which threadprivate implementation to use compat - use the GNU compatible thread local storage legacy - use the Intel compatible implementation (DEFAULT) -parallel enable the auto-parallelizer to generate multi-threaded code for loops that can be safely executed in parallel -par-report{0|1|2|3} control the auto-parallelizer diagnostic level -par-threshold[n] set threshold for the auto-parallelization of loops where n is an integer from 0 to 100 -[no-]par-runtime-control enable compiler to generate runtime control code for effective automatic parallelization -par-schedule-static[=n] Specifies a scheduling algorithm for DO loop iteration. Divides iterations into contiguous pieces. Size n if specified, equal sized pieces if not. -par-schedule-static-balanced[=n] Divides iterations into even-sized chunks. Size n if specified, equal sized pieces if not. -par-schedule-static-steal[=n] Divides iterations into even-sized chunks, but allows threads to steal parts of chunks from neighboring threads -par-schedule-dynamic[=n] Specifies a scheduling algorithm for DO loop iteration. Assigns iterations to threads in chunks dynamically. Chunk size is n iterations if specified, otherwise 1. -par-schedule-guided[=n] Specifies a scheduling algorithm for DO loop iteration. Indicates a minimum number of iterations. If specified, n is the minimum number, otherwise 1. -par-schedule-guided-analytical[=n] Divides iterations by using exponential distribution or dynamic distributions. -par-schedule-runtime Specifies a scheduling algorithm for DO loop iteration. Defers the scheduling decision until runtime. -par-schedule-auto Lets the compiler or run-time system determine the scheduling algorithm. -par-affinity=[,...][,][,] tune application performance by setting different thread affinity -par-num-threads= tune application performance by setting different number of threads Floating Point -------------- -fp-model enable floating point model variation [no-]except - enable/disable floating point semantics fast[=1|2] - enables more aggressive floating point optimizations precise - allows value-safe optimizations source - enables intermediates in source precision strict - enables -fp-model precise -fp-model except, disables contractions and enables pragma stdc fenv_access double - rounds intermediates in 53-bit (double) precision extended - rounds intermediates in 64-bit (extended) precision -fp-speculation= enable floating point speculations with the following conditions: fast - speculate floating point operations (DEFAULT) safe - speculate only when safe strict - same as off off - disables speculation of floating-point operations -pc32 set internal FPU precision to 24 bit significand -pc64 set internal FPU precision to 53 bit significand (DEFAULT) -pc80 set internal FPU precision to 64 bit significand -mp1 improve floating-point precision (speed impact less than -mp) -mieee-fp same as -mp, can be disabled with -mno-ieee-fp -[no-]prec-sqrt determine if certain square root optimizations are enabled -[no-]prec-div improve precision of FP divides (some speed impact) -[no-]fast-transcendentals generate a faster version of the transcendental functions -[no-]fp-port round fp results at assignments and casts (some speed impact) -fp-stack-check enable fp stack checking after every function/procedure call -rcd rounding mode to enable fast float-to-int conversions -[no-]ftz enable/disable flush denormal results to zero Inlining -------- -inline-level= control inline expansion: n=0 disable inlining n=1 inline functions declared with __inline, and perform C++ inlining n=2 inline any function, at the compiler's discretion -f[no-]inline inline functions declared with __inline, and perform C++ inlining -f[no-]inline-functions inline any function at the compiler's discretion -finline-limit= set maximum number of statements a function can have and still be considered for inlining -inline-min-size= set size limit for inlining small routines -no-inline-min-size no size limit for inlining small routines -inline-max-size= set size limit for inlining large routines -no-inline-max-size no size limit for inlining large routines -inline-max-total-size= maximum increase in size for inline function expansion -no-inline-max-total-size no size limit for inline function expansion -inline-max-per-routine= maximum number of inline instances in any function -no-inline-max-per-routine no maximum number of inline instances in any function -inline-max-per-compile= maximum number of inline instances in the current compilation -no-inline-max-per-compile no maximum number of inline instances in the current compilation -inline-factor= set inlining upper limits by n percentage -no-inline-factor do not set set inlining upper limits -inline-forceinline treat inline routines as forceinline -inline-calloc directs the compiler to inline calloc() calls as malloc()/memset() Output, Debug, PCH ------------------ -c compile to object (.o) only, do not link -S compile to assembly (.s) only, do not link -fsource-asm produce assembly file with optional source annotations (requires -S) -f[no-]verbose-asm produce assembly file with compiler comments (DEFAULT) (requires -S) -fcode-asm produce assembly file with optional code annotations (requires -S) -use-msasm support Microsoft* style assembly language insertion using MASM style syntax -o name output file -g produce symbolic debug information in object file (implies -O0 when another optimization option is not explicitly set) -debug [keyword] enable debug information and control output of enhanced debug information keywords: all, full, minimal, none, [no]inline-debug-info [no]variable-locations, [no]semantic-stepping, extended parallel [no]expr-source-pos -g0 disable generation of symbolic debug information -gdwarf-2 enable generation of debug information using the DWARF2 format -ftrapuv trap uninitialized variables -map-opts enable option mapping tool -print-multi-lib print information about libraries being used -pch-create create precompiled header file -pch-use use precompiled header file -pch enable automatic precompiled header file creation/usage -pch-dir name precompiled header directory Preprocessor ------------ -A[] create an assertion having value -C do not strip comments -D[=] define macro -U remove predefined macro -E preprocess to stdout -EP preprocess to stdout, omitting #line directives -P preprocess to file, omitting #line directives -I add directory to include file search path -idirafter add directory to the second include file search path (after -I) -isystem add directory to the start of the system include path -X, -nostdinc remove standard directories from include file search path -nostdinc++ remove standard C++ directories from include file search path -iprefix use with -iwithprefix as a prefix -iwithprefix append to the prefix passed in by -iprefix and put it on the include search path at the end of the include directories -iwithprefixbefore similar to -iwithprefix except the include directory is placed in the same place as -I command line include directories -iquote add directory to the front of the include file search path for files included with quotes, but not brackets -imacros treat as an #include file, but throw away all preprocessing while macros defined remain defined -H print include file order -B find libraries, headers and executables in -M generate makefile dependency information -MM similar to -M, but do not include system header files -MG similar to -M, but treat missing header files as generated files -MD preprocess and compile, generating output file containing dependency information ending with extension .d -MMD similar to -MD, but do not include system header files -MF generate makefile dependency information in file (must specify -M or -MM) -MP add a phony target for each dependency -MT change the default target rule for dependency generation -MQ same as -MT, but quotes special Make characters -dM output macro definitions in effect after preprocessing (use with -E) -dD same as -dM, but output #define directives in preprocessed source -dN same as -dD, but #define directives contain only macro names -gcc Predefine the "__GNUC__", "__GNUC_MINOR__", and "__GNUC_PATCHLEVEL__" macros (DEFAULT) -no-gcc Do not predefine GNUC macros listed in -gcc mode. Warning: can prevent correct system header compilation, see -gcc-sys -gcc-sys same as -no-gcc, except that the GNU macros are defined only while preprocessing the system include headers -no-icc do not predefine the "__ICC" and "__INTEL_COMPILER" macros. Warning: can prevent correct Intel header compilation -pragma-optimization-level=[Intel|GCC] process #pragma optimize using Intel (DEFAULT) or GCC syntax Component Control ----------------- -Qoption,, pass options to tool specified by -Qlocation,, set as the location of tool specified by -Qinstall set as root of compiler installation Language -------- -std= enable language support for , as described below c99 enable C99 support for C programs c++0x enable preliminary support for some C++0x features -x all source files found subsequent to -x will be recognized as one of the following types: c - C source file c++ - C++ source file c-header - C header file cpp-output - C pre-processed file c++-cpp-output - C++ pre-processed file assembler - assembly file assembler-with-cpp - assembly file that needs to be preprocessed none - revert to original file extension -ansi equivalent to GNU -ansi -strict-ansi strict ANSI conformance dialect -Zp[n] specify alignment constraint for structures where n=1,2,4,8,16. 16 is the default -fsyntax-only perform syntax and semantic checking only (no object file produced) -fpermissive allows extensions for some non-conformant code -funsigned-char change default char type to unsigned -fshort-enums allocate as many bytes as needed for enumerated types -f[no-]unsigned-bitfields change default bitfield type to unsigned -fno-rtti disable RTTI support -fno-implicit-templates never emit code for non-inline templates which are instantiated implicitly; only emit code for explicit instantiations -fno-implicit-inline-templates do not emit code for implicit instantiations of inline templates -ftemplate-depth-[n] control the depth in which recursive templates are expanded -[no]align analyze and reorder memory layout for variables and arrays -[no-]restrict enable/disable the 'restrict' keyword for disambiguating pointers -[no-]early-template-check enable/disable (DEFAULT) semantic checking of function template prototypes (before instantiation). Requires -gcc-version=340 or later -[no-]check-uninit check for uninitialized variables -export enable the export template feature -export-dir add directory to export template search path -help-pragma output supported pragmas and their usage syntax Compiler Diagnostics -------------------- -w disable all warnings -w control diagnostics n = 0 display errors (same as -w) n = 1 display warnings and errors (DEFAULT) n = 2 display remarks, warnings and errors -Wbrief print brief one-line diagnostics -Werror force warnings to be reported as errors -Werror-all force warnings and remarks to be reported as errors -Wall enable all warnings -Wcheck enable more strict diagnostics -Weffc++ enable effective C++ diagnostic warnings -wo[,,...] issue diagnostics L1 through LN only once -W[no-]fatal-errors ends compilation after the first error encountered -W[no-]format enable argument checking for calls to printf, scanf, etc -W[no-]format-security warn for uses of format strings and specifiers in printf, scanf, etc that may introduce security problems -W[no-]missing-declarations warn for global functions and variables without prior declaration -W[no-]missing-prototypes warn for missing prototypes -W[no-]strict-aliasing warn for code that might violate the optimizer's strict aliasing rules. Warnings are issued only when using -fstrict-aliasing or -ansi-alias. -W[no-]strict-prototypes warn for functions declared or defined without specified argument types -W[no-]pointer-arith warn for questionable pointer arithmetic -W[no-]uninitialized warn if a variable is used before being initialized -Winline enable inline diagnostics -W[no-]deprecated print warnings related to deprecated features -W[no-]abi warn if generated code is not C++ ABI compliant -Wcontext-limit= set maximum number of template instantiation contexts shown in diagnostic -Wcast-qual warn if cast is used to override pointer type qualifier -W[no-]unused-function warn if declared function is not used -W[no-]unknown-pragmas warn if an unknown #pragma directive is used (DEFAULT) -W[no-]main warn if return type of main is not expected -W[no-]comment[s] warn when comment -W[no-]conversion warn for implicit conversions that may alter a value -W[no-]return-type warn when a function uses the default int return type and warn when a return statement is used in a void function -W[no-]extra-tokens warn about extra tokens after prepreprocessor directives -W[no-]pragma-once warn about the use of #pragma once -W[no-]shadow warn when a variable declaration hides a previous declaration -Woverloaded-virtual warn when a function declaration hides virtual functions from a base class -W[no-]trigraphs warn about the recognition and conversion of trigraphs -W[no-]multichar warn if a multicharacter constant ('ABC') is used -W[no-]overflow warn for operations that could result in integer overflow -Wwrite-strings Issues a diagnostic message if const char * is converted to (non-const) char *. -Wp64 print diagnostics for 64-bit porting -W[no-]shorten-64-to-32 warn for values implicitly converted from a 64-bit to a 32-bit type. Similar to -Wp64 -[no]traceback specify whether the compiler generates data to allow for source file traceback information at runtime (only to be used when linking with Fortran programs) -noerror-limit set no maximum number on error-level or fatal-level error messages -diag-enable [,,...] enable the specified diagnostics or diagnostic groups -diag-disable [,,...] disable the specified diagnostics or diagnostic groups where may be individual diagnostic numbers or group names. where group names include: sc[n] - perform source code analysis: n=1 for critical errors, n=2 for all errors and n=3 for all errors and warnings sc-include - perform source code analysis on include files sc-parallel[n] - perform analysis of parallelization in source code: n=1 for critical errors, n=2 for errors, n=3 for all errors and warnings thread - enable diagnostics to aid in thread-enabling source port-win - enable diagnostics for GNU extensions that may cause errors when porting to Windows -diag-error [,,...] output the specified diagnostics or diagnostic groups as errors -diag-warning [,,...] output the specified diagnostics or diagnostic groups as warnings -diag-remark [,,...] output the the specified diagnostics or diagnostic groups as remarks -diag-dump display the currently enabled diagnostic messages to stdout or to a specified diagnostic output file. -diag-file[=] where diagnostics are emitted to. Not specifying this causes messages to be output to stderr -diag-file-append[=] where diagnostics are emitted to. When already exists, output is appended to the file -[no-]diag-id-numbers enable(DEFAULT)/disable the diagnostic specifiers to be output in numeric form -diag-error-limit specify the maximum number of errors emitted -diag-once [,,...] issue diagnostics v1 through vN only once Miscellaneous ------------- -V display compiler version information -dumpversion display the compiler version number only -dumpmachine display the target machine only --version display GCC style version information -[no-]sox enable/disable(DEFAULT) saving of compiler options and version in the executable -save-temps store the intermediate files in current directory and name them based on the source file. Only saves files that are generated by default -dryrun show driver tool commands but do not execute tools -v show driver tool commands and execute tools -[no-]multibyte-chars provide support for multi-byte characters -multiple-processes[=] create multiple processes that can be used to compile large numbers of source files at the same time Data ---- -Zp[n] specify alignment constraint for structures (n=1,2,4,8,16 -Zp16 DEFAULT) -[no]align analyze and reorder memory layout for variables and arrays -fminshared Compilation is for the main executable. Absolute addressing can be used and non-position independent code generated for symbols that are at least protected -fcommon Enables the compiler to treat common variables as if they were defined. That in turn allows the use of gprel addressing of common data variables. -fno-common disables -freg-struct-return return struct and union values in registers when possible -fstack-security-check enable overflow security checks. -f[no-]stack-security-check disables (DEFAULT) -fstack-protector enable stack overflow security checks. -f[no-]stack-protector disables (DEFAULT) -fpic, -fPIC generate position independent code (-fno-pic/-fno-PIC is DEFAULT) -fpie, -fPIE generate position independent code that will be linked into an executable (-fno-pie/-fno-PIE is DEFAULT) -[no-]global-hoist enable(DEFAULT)/disable external globals are load safe -f[no-]keep-static-consts enable/disable(DEFAULT) emission of static const variables even when not referenced -fpack-struct pack structure members together -f[no-]math-errno set ERRNO after calling standard math library functions -no-bss-init disable placement of zero-initialized variables in BSS (use DATA) -falign-functions=[2|16] align the start of functions on a 2 (DEFAULT) or 16 byte boundary -falign-functions align the start of functions to an optimal machine-dependent value. -fno-align-functions (DEFAULT) aligns on a 2-byte boundary -falign-stack= stack alignment method to use on entry to routines default - use default heuristics maintain-16-byte - do not assume any specific alignment, but maintain alignment in case the stack is already aligned assume-16-byte - assume the stack is aligned on 16-byte boundaries -fvisibility=[extern|default|protected|hidden|internal] Global symbols (data and functions) will get the visibility attribute given by default. Symbol visibility attributes explicitly set in the source code or using the symbol visibility attribute file options will override the -fvisibility setting -fvisibility-extern= Space separated symbols listed in the argument will geti visibility set to extern -fvisibility-default= Space separated symbols listed in the argument will get visibility set to default -fvisibility-protected= Space separated symbols listed in the argument will get visibility set to protected -fvisibility-hidden= Space separated symbols listed in the argument will get visibility set to hidden -fvisibility-internal= Space separated symbols listed in the argument will get visibility set to internal -fvisibility-inlines-hidden mark inline member functions as hidden Compatibility ------------- -gcc-name= name and location of gcc if not where expected -gxx-name= name and location of g++ if not where expected -gcc-version= specify the of gcc compatibility. Default value matches gcc version installed. Major/Minor versions listed but patch levels (i.e. 345) are permissible 320 - gcc 3.2.x compatibility 330 - gcc 3.3.x compatibility 340 - gcc 3.4.x compatibility 400 - gcc 4.0.x compatibility 410 - gcc 4.1.x compatibility 420 - gcc 4.2.x compatibility -fabi-version= directs the compiler to select a specific ABI implementation 0 - most recent ABI implementation 1 - g++ 3.2 compatible ABI implementation 2 - most conformant ABI implementation Linking/Linker -------------- -L instruct linker to search for libraries -l instruct the linker to link in the -l library -shared-intel link Intel provided libraries dynamically -static-intel link Intel provided libraries statically -shared-libgcc link libgcc dynamically -static-libgcc link libgcc statically -dynamic-linker select dynamic linker other than the default -no-cxxlib do not link in C++ runtime libraries -cxxlib[=dir] link using C++ run-time libraries provided with gcc dir is an optional top-level location for the gcc binaries and libraries -nodefaultlibs do not use standard libraries when linking -nostartfiles do not use standard startup files when linking -nostdlib do not use standard libraries and startup files when linking -static prevents linking with shared libraries -shared produce a shared object -Bstatic specify following libraries are linked statically -Bdynamic specify following libraries are linked dynamically -pthread use POSIX* thread library for multithreading support -cxxlib- tell the compiler which C++ run-time libraries to use nostd - do not link in standard C++ library -u pretend the is undefined -T direct linker to read link commands from -Xlinker pass directly to the linker for processing -Wa,[,,...] pass options o1, o2, etc. to the assembler -Wl,[,,...] pass options o1, o2, etc. to the linker for processing -Wp,[,,...] pass options o1, o2, etc. to the preprocessor Deprecated Options ------------------ -Ob use -inline-level= -cxxlib-gcc[=dir] use -cxxlib[=dir] -i-dynamic use -shared-intel -i-static use -static-intel -inline-debug-info use -debug inline-debug-info -mp use -fp-model -use-asm no replacement -A- use -U -prefetch use -opt-prefetch -prof-genx use -prof-gen=srcpos -openmp-lib=legacy use -openmp-lib=compat -xB use -xSSE2 (i32 only) -xK use -xSSE (i32 only) -axK No replacement -xW use -msse2 -axW use -msse2 -xN use -xSSE2 -axN use -axSSE2 -xP use -xSSE3 -axP use -axSSE3 -xT use -xSSSE3 -axT use -axSSSE3 -xS use -xSSE4.1 -axS use -axSSE4.1 -xO use -msse3 -func-groups use -prof-func-groups -diag-enable sv use -diag-enable sc -diag-enable sv-include use -diag-enable sc-include -diag-disable sv use -diag-disable sc -diag-sv use -diag-enable sc -diag-sv-error use -diag-disable warning -diag-sv-include use -diag-enable sc-include -diag-sv-level No replacement -diag-sv-sup use -diag-disable [,,...] -alias-args use -fargument-alias -c99 use -std=c99 -create-pch use -pch-create -fwritable-strings no replacement -Kc++ use -x c++ -no-alias-args use -fargument-noalias -use-pch use -pch-use -wn use -diag-error-limit -wd use -diag-disable -we use -diag-error -ww use -diag-warning -wr use -diag-remark -wo use -diag-once -help [category] print full or category help message Valid categories include advanced - Advanced Optimizations codegen - Code Generation compatibility - Compatibility component - Component Control data - Data deprecated - Deprecated Options diagnostics - Compiler Diagnostics float - Floating Point help - Help inline - Inlining ipo - Interprocedural Optimization (IPO) language - Language link - Linking/Linker misc - Miscellaneous opt - Optimization output - Output pgo - Profile Guided Optimization (PGO) preproc - Preprocessor reports - Optimization Reports openmp - OpenMP and Parallel Processing Copyright (C) 1985-2009, Intel Corporation. All rights reserved. * Other brands and names are the property of their respective owners. sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc --help Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc --help sh: Intel(R) C++ Compiler Help ========================== usage: icc [options] file1 [file2 ...] icpc [options] file1 [file2 ...] where options represents zero or more compiler options fileN is a C/C++ source (.C .c .cc .cpp .cxx .c++ .i .ii), assembly (.s .S), object (.o), static library (.a), or other linkable file The icpc command uses the same compiler options as the icc command. Invoking the compiler using icpc compiles .c and .i files as C++. Invoking the compiler using icc compiles .c and .i files as C. Using icpc always links in C++ libraries. Using icc only links in C++ libraries if C++ source is provided on the command line. Commonly used options may be placed in the icc .cfg file. Some options listed are only available on a specific system i32 indicates the feature is available on systems based on IA-32 architecture i64em indicates the feature is available on systems using Intel(R) 64 architecture Compiler Option List -------------------- Optimization ------------ -O1 optimize for maximum speed, but disable some optimizations which increase code size for a small speed benefit -O2 optimize for maximum speed (DEFAULT) -O3 optimize for maximum speed and enable more aggressive optimizations that may not improve performance on some programs -O same as -O2 -Os enable speed optimizations, but disable some optimizations which increase code size for small speed benefit -O0 disable optimizations -fast enable -xHOST -O3 -ipo -no-prec-div -static options set by -fast cannot be overridden with the exception of -xHOST, list options separately to change behavior -fno-alias assume no aliasing in program -fno-fnalias assume no aliasing within functions, but assume aliasing across calls -f[no-]builtin disable inline expansion of intrinsic functions -fno-builtin- disable the intrinsic -ffunction-sections separate functions for the linker (COMDAT) -fdata-sections same as -ffunction-sections -nolib-inline disable inline expansion of intrinsic functions Code Generation --------------- -x[,,...] generate specialized code to run exclusively on processors indicated by as described below Host generate instructions for the highest instruction set and processor available on the compilation host machine SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSE3_ATOM Can generate MOVBE instructions for Intel processors and can optimize for the Intel(R) Atom(TM) processor. SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for SSE4 Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -ax[,,...] generate code specialized for processors specified by while also generating generic IA-32 instructions. includes one or more of the following: SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -mcpu= same as -mtune= -mtune= optimize for a specific pentium3 - optimize for Pentium(R) III processors pentium4 - optimize for Pentium(R) 4 processor (DEFAULT) -march= generate code exclusively for a given pentium3 - streaming SIMD extensions pentium4 - Pentium(R) 4 New Instructions -mia32 generates code which will run on any Intel Pentium or later processor. Disables any default extended instruction settings, and any previously set extended instruction settings. -msse generate code for Intel Pentium III and compatible Intel processors -msse2 generate code for Intel Pentium 4 and compatible Intel processors -msse3 generate code for Intel(R) Core(TM) Duo processors, Intel(R) Core(TM) Solo processors, Intel Pentium 4 and compatible Intel processors with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support -mssse3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) -msse4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions -minstruction= Refine instruction set output for the selected target processor [no]movbe - Do/do not generate MOVBE instructions with SSE3_ATOM (requires -xSSE3_ATOM) -f[no-]omit-frame-pointer enable(DEFAULT)/disable use of EBP as general purpose register. -fno-omit-frame-pointer replaces -fp -f[no-]exceptions enable/disable(DEFAULT) C++ exception handling table generation -fnon-call-exceptions enable/disable(DEFAULT) code that allows exceptions from trapping instructions to be caught Interprocedural Optimization (IPO) ---------------------------------- -[no-]ip enable(DEFAULT)/disable single-file IP optimization within files -ipo[n] enable multi-file IP optimization between files -ipo-c generate a multi-file object file (ipo_out.o) -ipo-S generate a multi-file assembly file (ipo_out.S) -ip-no-inlining disable full and partial inlining -ip-no-pinlining disable partial inlining -ipo-separate create one object file for every source file (overrides -ipo[n]) -ipo-jobs specify the number of jobs to be executed simultaneously during the IPO link phase Advanced Optimizations ---------------------- -unroll[n] set maximum number of times to unroll loops. Omit n to use default heuristics. Use n=0 to disable the loop unroller -[no-]unroll-aggressive enables more aggressive unrolling heuristics -funroll-loops unroll loops based on default heuristics -[no-]scalar-rep enable(DEFAULT)/disable scalar replacement (requires -O3) -[no-]ansi-alias enable/disable(DEFAULT) use of ANSI aliasing rules optimizations; user asserts that the program adheres to these rules -[no-]complex-limited-range enable/disable(DEFAULT) the use of the basic algebraic expansions of some complex arithmetic operations. This can allow for some performance improvement in programs which use a lot of complex arithmetic at the loss of some exponent range. -[no-]alias-const enable/disable(DEFAULT) a heuristic stating that if two arguments to a function have pointer type, a pointer to const does not alias a pointer to non-const. Also known as the input/output buffer rule, it assumes that input and output buffer arguments do not overlap. -fargument-alias arguments may alias each other and may alias global storage -fargument-noalias arguments do not alias each other but may alias global storage -fargument-noalias-global arguments do not alias each other and do not alias global storage -ftls-model= change thread-local storage model, where can be the following: global-dynamic, local-dynamic, initial-exec or local-exec -[no-]opt-multi-version-aggressive enables more aggressive multi-versioning to check for pointer aliasing and scalar replacement -opt-ra-region-strategy[=] select the method that the register allocator uses to partition each routine into regions routine - one region per routine block - one region per block trace - one region per trace loop - one region per loop default - compiler selects best option -[no-]vec enables(DEFAULT)/disables vectorization -[no-]vec-guard-write enables cache/bandwidth optimization for stores under conditionals within vector loops -vec-threshold[n] sets a threshold for the vectorization of loops based on the probability of profitable execution of the vectorized loop in parallel -opt-malloc-options={0|1|2|3|4} specify malloc configuration parameters. Specifying a non-zero value will cause alternate configuration parameters to be set for how malloc allocates and frees memory -opt-calloc enable/disable(DEFAULT) calls to fast calloc function -opt-jump-tables= control the generation of jump tables default - let the compiler decide when a jump table, a series of if-then-else constructs or a combination is generated large - generate jump tables up to a certain pre-defined size (64K entries) - generate jump tables up to in size use -no-opt-jump-tables to lower switch statements as chains of if-then-else constructs -fno-jump-tables do not generate jump tables for switches and if-then-else statements -opt-block-factor= specify blocking factor for loop blocking -ffreestanding compile in a freestanding environment where the standard library may not be present -opt-streaming-stores specifies whether streaming stores are generated always - enables generation of streaming stores under the assumption that the application is memory bound auto - compiler decides when streaming stores are used (DEFAULT) never - disables generation of streaming stores -ipp[=] link some or all of the Intel(R) Integrated Performance Primitives (Intel(R) IPP) libraries and bring in the associated headers common - link using the main libraries set. This is the default value when -ipp is specified crypto - link using the main libraries set and the crypto library nonpic - link using the version of the libraries that do not have position independent code nonpic_crypto - link using the crypto library and the version of the libraries that do not have position independent code -mkl[=] link to the Intel(R) Math Kernel Library (Intel(R) MKL) and bring in the associated headers parallel - link using the threaded Intel(R) MKL libraries. This is the default when -mkl is specified sequential - link using the non-threaded Intel(R) MKL libraries cluster - link using the Intel(R) MKL Cluster libraries plus the sequential Intel(R) MKL libraries -tbb link to the Intel(R) Threading Building Blocks (Intel(R) TBB) libraries and bring in the associated headers -[no-]opt-subscript-in-range assumes no overflows in the intermediate computation of the subscripts -[no-]use-intel-optimized-headers take advantage of the optimized header files Profile Guided Optimization (PGO) --------------------------------- -prof-dir specify directory for profiling output files (*.dyn and *.dpi) -prof-src-root specify project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -prof-src-root-cwd specify the current directory as the project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -[no-]prof-src-dir specify whether directory names of sources should be considered when looking up profile records within the .dpi file -prof-file specify file name for profiling summary file -[no-]prof-data-order enable/disable(DEFAULT) static data ordering with profiling -[no-]prof-func-order enable/disable(DEFAULT) function ordering with profiling -[no-]prof-func-groups enable(DEFAULT with PGO)/disable function grouping -prof-gen[=keyword] instrument program for profiling. Optional keyword may be srcpos or globdata -no-prof-gen disable profiling instrumentation -prof-use[=] enable use of profiling information during optimization weighted - invokes profmerge with -weighted option to scale data based on run durations [no]merge - enable(default)/disable the invocation of the profmerge tool -no-prof-use disable use of profiling information during optimization -opt-prefetch[=n] enable levels of prefetch insertion, where 0 disables. n may be 0 through 4 inclusive. Default is 2. -no-opt-prefetch disable(DEFAULT) prefetch insertion. Equivalent to -opt-prefetch=0 -p compile and link for function profiling with UNIX gprof tool On IA32 and Intel(r)64, -pg is also valid -f[no-]instrument-functions determine whether function entry and exit points are instrumented -prof-hotness-threshold= set the hotness threshold for function grouping and function ordering val indicates percentage of functions to be placed in hot region. This option requires -prof-use and -prof-func-groups or -prof-func-order Optimization Reports -------------------- -vec-report[n] control amount of vectorizer diagnostic information n=0 no diagnostic information n=1 indicate vectorized loops (DEFAULT) n=2 indicate vectorized/non-vectorized loops n=3 indicate vectorized/non-vectorized loops and prohibiting data dependence information n=4 indicate non-vectorized loops n=5 indicate non-vectorized loops and prohibiting data dependence information -opt-report [n] generate an optimization report to stderr 0 disable optimization report output 1 minimum report output 2 medium output (DEFAULT when enabled) 3 maximum report output -opt-report-file= specify the filename for the generated report -opt-report-phase= specify the phase that reports are generated against -opt-report-routine= reports on routines containing the given name -opt-report-help display the optimization phases available for reporting -tcheck [mode] enable analysis of threaded applications (requires Intel(R) Thread Checker; cannot be used with compiler alone) tci - instruments a program to perform a thread-count-independent analysis tcd - instruments a program to perform a thread-count-dependent analysis (DEFAULT when mode is not used) api - instruments a program at the api-imports level -tprofile generate instrumentation to analyze multi-threading performance (requires Intel(R) Thread Profiler; cannot be used with compiler alone) -tcollect[=] inserts instrumentation probes calling the Intel(R) Trace Collector API. The library -l is linked in the default being -lVT (requires Intel(R) Trace Collector) -tcollect-filter file Enable or disable the instrumentation of specified functions. (requires Intel(R) Trace Collector) OpenMP* and Parallel Processing ------------------------------- -openmp enable the compiler to generate multi-threaded code based on the OpenMP* directives -openmp-profile enable analysis of OpenMP application when the Intel(R) Thread Profiler is installed -openmp-stubs enables the user to compile OpenMP programs in sequential mode. The OpenMP directives are ignored and a stub OpenMP library is linked (sequential) -openmp-report{0|1|2} control the OpenMP parallelizer diagnostic level -openmp-lib choose which OpenMP library version to link with compat - use the GNU compatible OpenMP run-time libraries (DEFAULT) -openmp-link choose whether to link with the static or dynamic OpenMP libraries. Default is dynamic. -openmp-task choose which OpenMP tasking model to support omp - support OpenMP 3.0 tasking (DEFAULT) intel - support Intel taskqueuing -openmp-threadprivate choose which threadprivate implementation to use compat - use the GNU compatible thread local storage legacy - use the Intel compatible implementation (DEFAULT) -parallel enable the auto-parallelizer to generate multi-threaded code for loops that can be safely executed in parallel -par-report{0|1|2|3} control the auto-parallelizer diagnostic level -par-threshold[n] set threshold for the auto-parallelization of loops where n is an integer from 0 to 100 -[no-]par-runtime-control enable compiler to generate runtime control code for effective automatic parallelization -par-schedule-static[=n] Specifies a scheduling algorithm for DO loop iteration. Divides iterations into contiguous pieces. Size n if specified, equal sized pieces if not. -par-schedule-static-balanced[=n] Divides iterations into even-sized chunks. Size n if specified, equal sized pieces if not. -par-schedule-static-steal[=n] Divides iterations into even-sized chunks, but allows threads to steal parts of chunks from neighboring threads -par-schedule-dynamic[=n] Specifies a scheduling algorithm for DO loop iteration. Assigns iterations to threads in chunks dynamically. Chunk size is n iterations if specified, otherwise 1. -par-schedule-guided[=n] Specifies a scheduling algorithm for DO loop iteration. Indicates a minimum number of iterations. If specified, n is the minimum number, otherwise 1. -par-schedule-guided-analytical[=n] Divides iterations by using exponential distribution or dynamic distributions. -par-schedule-runtime Specifies a scheduling algorithm for DO loop iteration. Defers the scheduling decision until runtime. -par-schedule-auto Lets the compiler or run-time system determine the scheduling algorithm. -par-affinity=[,...][,][,] tune application performance by setting different thread affinity -par-num-threads= tune application performance by setting different number of threads Floating Point -------------- -fp-model enable floating point model variation [no-]except - enable/disable floating point semantics fast[=1|2] - enables more aggressive floating point optimizations precise - allows value-safe optimizations source - enables intermediates in source precision strict - enables -fp-model precise -fp-model except, disables contractions and enables pragma stdc fenv_access double - rounds intermediates in 53-bit (double) precision extended - rounds intermediates in 64-bit (extended) precision -fp-speculation= enable floating point speculations with the following conditions: fast - speculate floating point operations (DEFAULT) safe - speculate only when safe strict - same as off off - disables speculation of floating-point operations -pc32 set internal FPU precision to 24 bit significand -pc64 set internal FPU precision to 53 bit significand (DEFAULT) -pc80 set internal FPU precision to 64 bit significand -mp1 improve floating-point precision (speed impact less than -mp) -mieee-fp same as -mp, can be disabled with -mno-ieee-fp -[no-]prec-sqrt determine if certain square root optimizations are enabled -[no-]prec-div improve precision of FP divides (some speed impact) -[no-]fast-transcendentals generate a faster version of the transcendental functions -[no-]fp-port round fp results at assignments and casts (some speed impact) -fp-stack-check enable fp stack checking after every function/procedure call -rcd rounding mode to enable fast float-to-int conversions -[no-]ftz enable/disable flush denormal results to zero Inlining -------- -inline-level= control inline expansion: n=0 disable inlining n=1 inline functions declared with __inline, and perform C++ inlining n=2 inline any function, at the compiler's discretion -f[no-]inline inline functions declared with __inline, and perform C++ inlining -f[no-]inline-functions inline any function at the compiler's discretion -finline-limit= set maximum number of statements a function can have and still be considered for inlining -inline-min-size= set size limit for inlining small routines -no-inline-min-size no size limit for inlining small routines -inline-max-size= set size limit for inlining large routines -no-inline-max-size no size limit for inlining large routines -inline-max-total-size= maximum increase in size for inline function expansion -no-inline-max-total-size no size limit for inline function expansion -inline-max-per-routine= maximum number of inline instances in any function -no-inline-max-per-routine no maximum number of inline instances in any function -inline-max-per-compile= maximum number of inline instances in the current compilation -no-inline-max-per-compile no maximum number of inline instances in the current compilation -inline-factor= set inlining upper limits by n percentage -no-inline-factor do not set set inlining upper limits -inline-forceinline treat inline routines as forceinline -inline-calloc directs the compiler to inline calloc() calls as malloc()/memset() Output, Debug, PCH ------------------ -c compile to object (.o) only, do not link -S compile to assembly (.s) only, do not link -fsource-asm produce assembly file with optional source annotations (requires -S) -f[no-]verbose-asm produce assembly file with compiler comments (DEFAULT) (requires -S) -fcode-asm produce assembly file with optional code annotations (requires -S) -use-msasm support Microsoft* style assembly language insertion using MASM style syntax -o name output file -g produce symbolic debug information in object file (implies -O0 when another optimization option is not explicitly set) -debug [keyword] enable debug information and control output of enhanced debug information keywords: all, full, minimal, none, [no]inline-debug-info [no]variable-locations, [no]semantic-stepping, extended parallel [no]expr-source-pos -g0 disable generation of symbolic debug information -gdwarf-2 enable generation of debug information using the DWARF2 format -ftrapuv trap uninitialized variables -map-opts enable option mapping tool -print-multi-lib print information about libraries being used -pch-create create precompiled header file -pch-use use precompiled header file -pch enable automatic precompiled header file creation/usage -pch-dir name precompiled header directory Preprocessor ------------ -A[] create an assertion having value -C do not strip comments -D[=] define macro -U remove predefined macro -E preprocess to stdout -EP preprocess to stdout, omitting #line directives -P preprocess to file, omitting #line directives -I add directory to include file search path -idirafter add directory to the second include file search path (after -I) -isystem add directory to the start of the system include path -X, -nostdinc remove standard directories from include file search path -nostdinc++ remove standard C++ directories from include file search path -iprefix use with -iwithprefix as a prefix -iwithprefix append to the prefix passed in by -iprefix and put it on the include search path at the end of the include directories -iwithprefixbefore similar to -iwithprefix except the include directory is placed in the same place as -I command line include directories -iquote add directory to the front of the include file search path for files included with quotes, but not brackets -imacros treat as an #include file, but throw away all preprocessing while macros defined remain defined -H print include file order -B find libraries, headers and executables in -M generate makefile dependency information -MM similar to -M, but do not include system header files -MG similar to -M, but treat missing header files as generated files -MD preprocess and compile, generating output file containing dependency information ending with extension .d -MMD similar to -MD, but do not include system header files -MF generate makefile dependency information in file (must specify -M or -MM) -MP add a phony target for each dependency -MT change the default target rule for dependency generation -MQ same as -MT, but quotes special Make characters -dM output macro definitions in effect after preprocessing (use with -E) -dD same as -dM, but output #define directives in preprocessed source -dN same as -dD, but #define directives contain only macro names -gcc Predefine the "__GNUC__", "__GNUC_MINOR__", and "__GNUC_PATCHLEVEL__" macros (DEFAULT) -no-gcc Do not predefine GNUC macros listed in -gcc mode. Warning: can prevent correct system header compilation, see -gcc-sys -gcc-sys same as -no-gcc, except that the GNU macros are defined only while preprocessing the system include headers -no-icc do not predefine the "__ICC" and "__INTEL_COMPILER" macros. Warning: can prevent correct Intel header compilation -pragma-optimization-level=[Intel|GCC] process #pragma optimize using Intel (DEFAULT) or GCC syntax Component Control ----------------- -Qoption,, pass options to tool specified by -Qlocation,, set as the location of tool specified by -Qinstall set as root of compiler installation Language -------- -std= enable language support for , as described below c99 enable C99 support for C programs c++0x enable preliminary support for some C++0x features -x all source files found subsequent to -x will be recognized as one of the following types: c - C source file c++ - C++ source file c-header - C header file cpp-output - C pre-processed file c++-cpp-output - C++ pre-processed file assembler - assembly file assembler-with-cpp - assembly file that needs to be preprocessed none - revert to original file extension -ansi equivalent to GNU -ansi -strict-ansi strict ANSI conformance dialect -Zp[n] specify alignment constraint for structures where n=1,2,4,8,16. 16 is the default -fsyntax-only perform syntax and semantic checking only (no object file produced) -fpermissive allows extensions for some non-conformant code -funsigned-char change default char type to unsigned -fshort-enums allocate as many bytes as needed for enumerated types -f[no-]unsigned-bitfields change default bitfield type to unsigned -fno-rtti disable RTTI support -fno-implicit-templates never emit code for non-inline templates which are instantiated implicitly; only emit code for explicit instantiations -fno-implicit-inline-templates do not emit code for implicit instantiations of inline templates -ftemplate-depth-[n] control the depth in which recursive templates are expanded -[no]align analyze and reorder memory layout for variables and arrays -[no-]restrict enable/disable the 'restrict' keyword for disambiguating pointers -[no-]early-template-check enable/disable (DEFAULT) semantic checking of function template prototypes (before instantiation). Requires -gcc-version=340 or later -[no-]check-uninit check for uninitialized variables -export enable the export template feature -export-dir add directory to export template search path -help-pragma output supported pragmas and their usage syntax Compiler Diagnostics -------------------- -w disable all warnings -w control diagnostics n = 0 display errors (same as -w) n = 1 display warnings and errors (DEFAULT) n = 2 display remarks, warnings and errors -Wbrief print brief one-line diagnostics -Werror force warnings to be reported as errors -Werror-all force warnings and remarks to be reported as errors -Wall enable all warnings -Wcheck enable more strict diagnostics -Weffc++ enable effective C++ diagnostic warnings -wo[,,...] issue diagnostics L1 through LN only once -W[no-]fatal-errors ends compilation after the first error encountered -W[no-]format enable argument checking for calls to printf, scanf, etc -W[no-]format-security warn for uses of format strings and specifiers in printf, scanf, etc that may introduce security problems -W[no-]missing-declarations warn for global functions and variables without prior declaration -W[no-]missing-prototypes warn for missing prototypes -W[no-]strict-aliasing warn for code that might violate the optimizer's strict aliasing rules. Warnings are issued only when using -fstrict-aliasing or -ansi-alias. -W[no-]strict-prototypes warn for functions declared or defined without specified argument types -W[no-]pointer-arith warn for questionable pointer arithmetic -W[no-]uninitialized warn if a variable is used before being initialized -Winline enable inline diagnostics -W[no-]deprecated print warnings related to deprecated features -W[no-]abi warn if generated code is not C++ ABI compliant -Wcontext-limit= set maximum number of template instantiation contexts shown in diagnostic -Wcast-qual warn if cast is used to override pointer type qualifier -W[no-]unused-function warn if declared function is not used -W[no-]unknown-pragmas warn if an unknown #pragma directive is used (DEFAULT) -W[no-]main warn if return type of main is not expected -W[no-]comment[s] warn when comment -W[no-]conversion warn for implicit conversions that may alter a value -W[no-]return-type warn when a function uses the default int return type and warn when a return statement is used in a void function -W[no-]extra-tokens warn about extra tokens after prepreprocessor directives -W[no-]pragma-once warn about the use of #pragma once -W[no-]shadow warn when a variable declaration hides a previous declaration -Woverloaded-virtual warn when a function declaration hides virtual functions from a base class -W[no-]trigraphs warn about the recognition and conversion of trigraphs -W[no-]multichar warn if a multicharacter constant ('ABC') is used -W[no-]overflow warn for operations that could result in integer overflow -Wwrite-strings Issues a diagnostic message if const char * is converted to (non-const) char *. -Wp64 print diagnostics for 64-bit porting -W[no-]shorten-64-to-32 warn for values implicitly converted from a 64-bit to a 32-bit type. Similar to -Wp64 -[no]traceback specify whether the compiler generates data to allow for source file traceback information at runtime (only to be used when linking with Fortran programs) -noerror-limit set no maximum number on error-level or fatal-level error messages -diag-enable [,,...] enable the specified diagnostics or diagnostic groups -diag-disable [,,...] disable the specified diagnostics or diagnostic groups where may be individual diagnostic numbers or group names. where group names include: sc[n] - perform source code analysis: n=1 for critical errors, n=2 for all errors and n=3 for all errors and warnings sc-include - perform source code analysis on include files sc-parallel[n] - perform analysis of parallelization in source code: n=1 for critical errors, n=2 for errors, n=3 for all errors and warnings thread - enable diagnostics to aid in thread-enabling source port-win - enable diagnostics for GNU extensions that may cause errors when porting to Windows -diag-error [,,...] output the specified diagnostics or diagnostic groups as errors -diag-warning [,,...] output the specified diagnostics or diagnostic groups as warnings -diag-remark [,,...] output the the specified diagnostics or diagnostic groups as remarks -diag-dump display the currently enabled diagnostic messages to stdout or to a specified diagnostic output file. -diag-file[=] where diagnostics are emitted to. Not specifying this causes messages to be output to stderr -diag-file-append[=] where diagnostics are emitted to. When already exists, output is appended to the file -[no-]diag-id-numbers enable(DEFAULT)/disable the diagnostic specifiers to be output in numeric form -diag-error-limit specify the maximum number of errors emitted -diag-once [,,...] issue diagnostics v1 through vN only once Miscellaneous ------------- -V display compiler version information -dumpversion display the compiler version number only -dumpmachine display the target machine only --version display GCC style version information -[no-]sox enable/disable(DEFAULT) saving of compiler options and version in the executable -save-temps store the intermediate files in current directory and name them based on the source file. Only saves files that are generated by default -dryrun show driver tool commands but do not execute tools -v show driver tool commands and execute tools -[no-]multibyte-chars provide support for multi-byte characters -multiple-processes[=] create multiple processes that can be used to compile large numbers of source files at the same time Data ---- -Zp[n] specify alignment constraint for structures (n=1,2,4,8,16 -Zp16 DEFAULT) -[no]align analyze and reorder memory layout for variables and arrays -fminshared Compilation is for the main executable. Absolute addressing can be used and non-position independent code generated for symbols that are at least protected -fcommon Enables the compiler to treat common variables as if they were defined. That in turn allows the use of gprel addressing of common data variables. -fno-common disables -freg-struct-return return struct and union values in registers when possible -fstack-security-check enable overflow security checks. -f[no-]stack-security-check disables (DEFAULT) -fstack-protector enable stack overflow security checks. -f[no-]stack-protector disables (DEFAULT) -fpic, -fPIC generate position independent code (-fno-pic/-fno-PIC is DEFAULT) -fpie, -fPIE generate position independent code that will be linked into an executable (-fno-pie/-fno-PIE is DEFAULT) -[no-]global-hoist enable(DEFAULT)/disable external globals are load safe -f[no-]keep-static-consts enable/disable(DEFAULT) emission of static const variables even when not referenced -fpack-struct pack structure members together -f[no-]math-errno set ERRNO after calling standard math library functions -no-bss-init disable placement of zero-initialized variables in BSS (use DATA) -falign-functions=[2|16] align the start of functions on a 2 (DEFAULT) or 16 byte boundary -falign-functions align the start of functions to an optimal machine-dependent value. -fno-align-functions (DEFAULT) aligns on a 2-byte boundary -falign-stack= stack alignment method to use on entry to routines default - use default heuristics maintain-16-byte - do not assume any specific alignment, but maintain alignment in case the stack is already aligned assume-16-byte - assume the stack is aligned on 16-byte boundaries -fvisibility=[extern|default|protected|hidden|internal] Global symbols (data and functions) will get the visibility attribute given by default. Symbol visibility attributes explicitly set in the source code or using the symbol visibility attribute file options will override the -fvisibility setting -fvisibility-extern= Space separated symbols listed in the argument will geti visibility set to extern -fvisibility-default= Space separated symbols listed in the argument will get visibility set to default -fvisibility-protected= Space separated symbols listed in the argument will get visibility set to protected -fvisibility-hidden= Space separated symbols listed in the argument will get visibility set to hidden -fvisibility-internal= Space separated symbols listed in the argument will get visibility set to internal -fvisibility-inlines-hidden mark inline member functions as hidden Compatibility ------------- -gcc-name= name and location of gcc if not where expected -gxx-name= name and location of g++ if not where expected -gcc-version= specify the of gcc compatibility. Default value matches gcc version installed. Major/Minor versions listed but patch levels (i.e. 345) are permissible 320 - gcc 3.2.x compatibility 330 - gcc 3.3.x compatibility 340 - gcc 3.4.x compatibility 400 - gcc 4.0.x compatibility 410 - gcc 4.1.x compatibility 420 - gcc 4.2.x compatibility -fabi-version= directs the compiler to select a specific ABI implementation 0 - most recent ABI implementation 1 - g++ 3.2 compatible ABI implementation 2 - most conformant ABI implementation Linking/Linker -------------- -L instruct linker to search for libraries -l instruct the linker to link in the -l library -shared-intel link Intel provided libraries dynamically -static-intel link Intel provided libraries statically -shared-libgcc link libgcc dynamically -static-libgcc link libgcc statically -dynamic-linker select dynamic linker other than the default -no-cxxlib do not link in C++ runtime libraries -cxxlib[=dir] link using C++ run-time libraries provided with gcc dir is an optional top-level location for the gcc binaries and libraries -nodefaultlibs do not use standard libraries when linking -nostartfiles do not use standard startup files when linking -nostdlib do not use standard libraries and startup files when linking -static prevents linking with shared libraries -shared produce a shared object -Bstatic specify following libraries are linked statically -Bdynamic specify following libraries are linked dynamically -pthread use POSIX* thread library for multithreading support -cxxlib- tell the compiler which C++ run-time libraries to use nostd - do not link in standard C++ library -u pretend the is undefined -T direct linker to read link commands from -Xlinker pass directly to the linker for processing -Wa,[,,...] pass options o1, o2, etc. to the assembler -Wl,[,,...] pass options o1, o2, etc. to the linker for processing -Wp,[,,...] pass options o1, o2, etc. to the preprocessor Deprecated Options ------------------ -Ob use -inline-level= -cxxlib-gcc[=dir] use -cxxlib[=dir] -i-dynamic use -shared-intel -i-static use -static-intel -inline-debug-info use -debug inline-debug-info -mp use -fp-model -use-asm no replacement -A- use -U -prefetch use -opt-prefetch -prof-genx use -prof-gen=srcpos -openmp-lib=legacy use -openmp-lib=compat -xB use -xSSE2 (i32 only) -xK use -xSSE (i32 only) -axK No replacement -xW use -msse2 -axW use -msse2 -xN use -xSSE2 -axN use -axSSE2 -xP use -xSSE3 -axP use -axSSE3 -xT use -xSSSE3 -axT use -axSSSE3 -xS use -xSSE4.1 -axS use -axSSE4.1 -xO use -msse3 -func-groups use -prof-func-groups -diag-enable sv use -diag-enable sc -diag-enable sv-include use -diag-enable sc-include -diag-disable sv use -diag-disable sc -diag-sv use -diag-enable sc -diag-sv-error use -diag-disable warning -diag-sv-include use -diag-enable sc-include -diag-sv-level No replacement -diag-sv-sup use -diag-disable [,,...] -alias-args use -fargument-alias -c99 use -std=c99 -create-pch use -pch-create -fwritable-strings no replacement -Kc++ use -x c++ -no-alias-args use -fargument-noalias -use-pch use -pch-use -wn use -diag-error-limit -wd use -diag-disable -we use -diag-error -ww use -diag-warning -wr use -diag-remark -wo use -diag-once -help [category] print full or category help message Valid categories include advanced - Advanced Optimizations codegen - Code Generation compatibility - Compatibility component - Component Control data - Data deprecated - Deprecated Options diagnostics - Compiler Diagnostics float - Floating Point help - Help inline - Inlining ipo - Interprocedural Optimization (IPO) language - Language link - Linking/Linker misc - Miscellaneous opt - Optimization output - Output pgo - Profile Guided Optimization (PGO) preproc - Preprocessor reports - Optimization Reports openmp - OpenMP and Parallel Processing Copyright (C) 1985-2009, Intel Corporation. All rights reserved. * Other brands and names are the property of their respective owners. Trying C compiler flag -wd1572 sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries -wd1572 /tmp/petsc-3SW45q/config.setCompilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries -wd1572 /tmp/petsc-3SW45q/config.setCompilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" int main() { ; return 0; } Added C compiler flag -wd1572 sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc --help Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc --help sh: Intel(R) C++ Compiler Help ========================== usage: icc [options] file1 [file2 ...] icpc [options] file1 [file2 ...] where options represents zero or more compiler options fileN is a C/C++ source (.C .c .cc .cpp .cxx .c++ .i .ii), assembly (.s .S), object (.o), static library (.a), or other linkable file The icpc command uses the same compiler options as the icc command. Invoking the compiler using icpc compiles .c and .i files as C++. Invoking the compiler using icc compiles .c and .i files as C. Using icpc always links in C++ libraries. Using icc only links in C++ libraries if C++ source is provided on the command line. Commonly used options may be placed in the icc .cfg file. Some options listed are only available on a specific system i32 indicates the feature is available on systems based on IA-32 architecture i64em indicates the feature is available on systems using Intel(R) 64 architecture Compiler Option List -------------------- Optimization ------------ -O1 optimize for maximum speed, but disable some optimizations which increase code size for a small speed benefit -O2 optimize for maximum speed (DEFAULT) -O3 optimize for maximum speed and enable more aggressive optimizations that may not improve performance on some programs -O same as -O2 -Os enable speed optimizations, but disable some optimizations which increase code size for small speed benefit -O0 disable optimizations -fast enable -xHOST -O3 -ipo -no-prec-div -static options set by -fast cannot be overridden with the exception of -xHOST, list options separately to change behavior -fno-alias assume no aliasing in program -fno-fnalias assume no aliasing within functions, but assume aliasing across calls -f[no-]builtin disable inline expansion of intrinsic functions -fno-builtin- disable the intrinsic -ffunction-sections separate functions for the linker (COMDAT) -fdata-sections same as -ffunction-sections -nolib-inline disable inline expansion of intrinsic functions Code Generation --------------- -x[,,...] generate specialized code to run exclusively on processors indicated by as described below Host generate instructions for the highest instruction set and processor available on the compilation host machine SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSE3_ATOM Can generate MOVBE instructions for Intel processors and can optimize for the Intel(R) Atom(TM) processor. SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for SSE4 Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -ax[,,...] generate code specialized for processors specified by while also generating generic IA-32 instructions. includes one or more of the following: SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -mcpu= same as -mtune= -mtune= optimize for a specific pentium3 - optimize for Pentium(R) III processors pentium4 - optimize for Pentium(R) 4 processor (DEFAULT) -march= generate code exclusively for a given pentium3 - streaming SIMD extensions pentium4 - Pentium(R) 4 New Instructions -mia32 generates code which will run on any Intel Pentium or later processor. Disables any default extended instruction settings, and any previously set extended instruction settings. -msse generate code for Intel Pentium III and compatible Intel processors -msse2 generate code for Intel Pentium 4 and compatible Intel processors -msse3 generate code for Intel(R) Core(TM) Duo processors, Intel(R) Core(TM) Solo processors, Intel Pentium 4 and compatible Intel processors with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support -mssse3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) -msse4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions -minstruction= Refine instruction set output for the selected target processor [no]movbe - Do/do not generate MOVBE instructions with SSE3_ATOM (requires -xSSE3_ATOM) -f[no-]omit-frame-pointer enable(DEFAULT)/disable use of EBP as general purpose register. -fno-omit-frame-pointer replaces -fp -f[no-]exceptions enable/disable(DEFAULT) C++ exception handling table generation -fnon-call-exceptions enable/disable(DEFAULT) code that allows exceptions from trapping instructions to be caught Interprocedural Optimization (IPO) ---------------------------------- -[no-]ip enable(DEFAULT)/disable single-file IP optimization within files -ipo[n] enable multi-file IP optimization between files -ipo-c generate a multi-file object file (ipo_out.o) -ipo-S generate a multi-file assembly file (ipo_out.S) -ip-no-inlining disable full and partial inlining -ip-no-pinlining disable partial inlining -ipo-separate create one object file for every source file (overrides -ipo[n]) -ipo-jobs specify the number of jobs to be executed simultaneously during the IPO link phase Advanced Optimizations ---------------------- -unroll[n] set maximum number of times to unroll loops. Omit n to use default heuristics. Use n=0 to disable the loop unroller -[no-]unroll-aggressive enables more aggressive unrolling heuristics -funroll-loops unroll loops based on default heuristics -[no-]scalar-rep enable(DEFAULT)/disable scalar replacement (requires -O3) -[no-]ansi-alias enable/disable(DEFAULT) use of ANSI aliasing rules optimizations; user asserts that the program adheres to these rules -[no-]complex-limited-range enable/disable(DEFAULT) the use of the basic algebraic expansions of some complex arithmetic operations. This can allow for some performance improvement in programs which use a lot of complex arithmetic at the loss of some exponent range. -[no-]alias-const enable/disable(DEFAULT) a heuristic stating that if two arguments to a function have pointer type, a pointer to const does not alias a pointer to non-const. Also known as the input/output buffer rule, it assumes that input and output buffer arguments do not overlap. -fargument-alias arguments may alias each other and may alias global storage -fargument-noalias arguments do not alias each other but may alias global storage -fargument-noalias-global arguments do not alias each other and do not alias global storage -ftls-model= change thread-local storage model, where can be the following: global-dynamic, local-dynamic, initial-exec or local-exec -[no-]opt-multi-version-aggressive enables more aggressive multi-versioning to check for pointer aliasing and scalar replacement -opt-ra-region-strategy[=] select the method that the register allocator uses to partition each routine into regions routine - one region per routine block - one region per block trace - one region per trace loop - one region per loop default - compiler selects best option -[no-]vec enables(DEFAULT)/disables vectorization -[no-]vec-guard-write enables cache/bandwidth optimization for stores under conditionals within vector loops -vec-threshold[n] sets a threshold for the vectorization of loops based on the probability of profitable execution of the vectorized loop in parallel -opt-malloc-options={0|1|2|3|4} specify malloc configuration parameters. Specifying a non-zero value will cause alternate configuration parameters to be set for how malloc allocates and frees memory -opt-calloc enable/disable(DEFAULT) calls to fast calloc function -opt-jump-tables= control the generation of jump tables default - let the compiler decide when a jump table, a series of if-then-else constructs or a combination is generated large - generate jump tables up to a certain pre-defined size (64K entries) - generate jump tables up to in size use -no-opt-jump-tables to lower switch statements as chains of if-then-else constructs -fno-jump-tables do not generate jump tables for switches and if-then-else statements -opt-block-factor= specify blocking factor for loop blocking -ffreestanding compile in a freestanding environment where the standard library may not be present -opt-streaming-stores specifies whether streaming stores are generated always - enables generation of streaming stores under the assumption that the application is memory bound auto - compiler decides when streaming stores are used (DEFAULT) never - disables generation of streaming stores -ipp[=] link some or all of the Intel(R) Integrated Performance Primitives (Intel(R) IPP) libraries and bring in the associated headers common - link using the main libraries set. This is the default value when -ipp is specified crypto - link using the main libraries set and the crypto library nonpic - link using the version of the libraries that do not have position independent code nonpic_crypto - link using the crypto library and the version of the libraries that do not have position independent code -mkl[=] link to the Intel(R) Math Kernel Library (Intel(R) MKL) and bring in the associated headers parallel - link using the threaded Intel(R) MKL libraries. This is the default when -mkl is specified sequential - link using the non-threaded Intel(R) MKL libraries cluster - link using the Intel(R) MKL Cluster libraries plus the sequential Intel(R) MKL libraries -tbb link to the Intel(R) Threading Building Blocks (Intel(R) TBB) libraries and bring in the associated headers -[no-]opt-subscript-in-range assumes no overflows in the intermediate computation of the subscripts -[no-]use-intel-optimized-headers take advantage of the optimized header files Profile Guided Optimization (PGO) --------------------------------- -prof-dir specify directory for profiling output files (*.dyn and *.dpi) -prof-src-root specify project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -prof-src-root-cwd specify the current directory as the project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -[no-]prof-src-dir specify whether directory names of sources should be considered when looking up profile records within the .dpi file -prof-file specify file name for profiling summary file -[no-]prof-data-order enable/disable(DEFAULT) static data ordering with profiling -[no-]prof-func-order enable/disable(DEFAULT) function ordering with profiling -[no-]prof-func-groups enable(DEFAULT with PGO)/disable function grouping -prof-gen[=keyword] instrument program for profiling. Optional keyword may be srcpos or globdata -no-prof-gen disable profiling instrumentation -prof-use[=] enable use of profiling information during optimization weighted - invokes profmerge with -weighted option to scale data based on run durations [no]merge - enable(default)/disable the invocation of the profmerge tool -no-prof-use disable use of profiling information during optimization -opt-prefetch[=n] enable levels of prefetch insertion, where 0 disables. n may be 0 through 4 inclusive. Default is 2. -no-opt-prefetch disable(DEFAULT) prefetch insertion. Equivalent to -opt-prefetch=0 -p compile and link for function profiling with UNIX gprof tool On IA32 and Intel(r)64, -pg is also valid -f[no-]instrument-functions determine whether function entry and exit points are instrumented -prof-hotness-threshold= set the hotness threshold for function grouping and function ordering val indicates percentage of functions to be placed in hot region. This option requires -prof-use and -prof-func-groups or -prof-func-order Optimization Reports -------------------- -vec-report[n] control amount of vectorizer diagnostic information n=0 no diagnostic information n=1 indicate vectorized loops (DEFAULT) n=2 indicate vectorized/non-vectorized loops n=3 indicate vectorized/non-vectorized loops and prohibiting data dependence information n=4 indicate non-vectorized loops n=5 indicate non-vectorized loops and prohibiting data dependence information -opt-report [n] generate an optimization report to stderr 0 disable optimization report output 1 minimum report output 2 medium output (DEFAULT when enabled) 3 maximum report output -opt-report-file= specify the filename for the generated report -opt-report-phase= specify the phase that reports are generated against -opt-report-routine= reports on routines containing the given name -opt-report-help display the optimization phases available for reporting -tcheck [mode] enable analysis of threaded applications (requires Intel(R) Thread Checker; cannot be used with compiler alone) tci - instruments a program to perform a thread-count-independent analysis tcd - instruments a program to perform a thread-count-dependent analysis (DEFAULT when mode is not used) api - instruments a program at the api-imports level -tprofile generate instrumentation to analyze multi-threading performance (requires Intel(R) Thread Profiler; cannot be used with compiler alone) -tcollect[=] inserts instrumentation probes calling the Intel(R) Trace Collector API. The library -l is linked in the default being -lVT (requires Intel(R) Trace Collector) -tcollect-filter file Enable or disable the instrumentation of specified functions. (requires Intel(R) Trace Collector) OpenMP* and Parallel Processing ------------------------------- -openmp enable the compiler to generate multi-threaded code based on the OpenMP* directives -openmp-profile enable analysis of OpenMP application when the Intel(R) Thread Profiler is installed -openmp-stubs enables the user to compile OpenMP programs in sequential mode. The OpenMP directives are ignored and a stub OpenMP library is linked (sequential) -openmp-report{0|1|2} control the OpenMP parallelizer diagnostic level -openmp-lib choose which OpenMP library version to link with compat - use the GNU compatible OpenMP run-time libraries (DEFAULT) -openmp-link choose whether to link with the static or dynamic OpenMP libraries. Default is dynamic. -openmp-task choose which OpenMP tasking model to support omp - support OpenMP 3.0 tasking (DEFAULT) intel - support Intel taskqueuing -openmp-threadprivate choose which threadprivate implementation to use compat - use the GNU compatible thread local storage legacy - use the Intel compatible implementation (DEFAULT) -parallel enable the auto-parallelizer to generate multi-threaded code for loops that can be safely executed in parallel -par-report{0|1|2|3} control the auto-parallelizer diagnostic level -par-threshold[n] set threshold for the auto-parallelization of loops where n is an integer from 0 to 100 -[no-]par-runtime-control enable compiler to generate runtime control code for effective automatic parallelization -par-schedule-static[=n] Specifies a scheduling algorithm for DO loop iteration. Divides iterations into contiguous pieces. Size n if specified, equal sized pieces if not. -par-schedule-static-balanced[=n] Divides iterations into even-sized chunks. Size n if specified, equal sized pieces if not. -par-schedule-static-steal[=n] Divides iterations into even-sized chunks, but allows threads to steal parts of chunks from neighboring threads -par-schedule-dynamic[=n] Specifies a scheduling algorithm for DO loop iteration. Assigns iterations to threads in chunks dynamically. Chunk size is n iterations if specified, otherwise 1. -par-schedule-guided[=n] Specifies a scheduling algorithm for DO loop iteration. Indicates a minimum number of iterations. If specified, n is the minimum number, otherwise 1. -par-schedule-guided-analytical[=n] Divides iterations by using exponential distribution or dynamic distributions. -par-schedule-runtime Specifies a scheduling algorithm for DO loop iteration. Defers the scheduling decision until runtime. -par-schedule-auto Lets the compiler or run-time system determine the scheduling algorithm. -par-affinity=[,...][,][,] tune application performance by setting different thread affinity -par-num-threads= tune application performance by setting different number of threads Floating Point -------------- -fp-model enable floating point model variation [no-]except - enable/disable floating point semantics fast[=1|2] - enables more aggressive floating point optimizations precise - allows value-safe optimizations source - enables intermediates in source precision strict - enables -fp-model precise -fp-model except, disables contractions and enables pragma stdc fenv_access double - rounds intermediates in 53-bit (double) precision extended - rounds intermediates in 64-bit (extended) precision -fp-speculation= enable floating point speculations with the following conditions: fast - speculate floating point operations (DEFAULT) safe - speculate only when safe strict - same as off off - disables speculation of floating-point operations -pc32 set internal FPU precision to 24 bit significand -pc64 set internal FPU precision to 53 bit significand (DEFAULT) -pc80 set internal FPU precision to 64 bit significand -mp1 improve floating-point precision (speed impact less than -mp) -mieee-fp same as -mp, can be disabled with -mno-ieee-fp -[no-]prec-sqrt determine if certain square root optimizations are enabled -[no-]prec-div improve precision of FP divides (some speed impact) -[no-]fast-transcendentals generate a faster version of the transcendental functions -[no-]fp-port round fp results at assignments and casts (some speed impact) -fp-stack-check enable fp stack checking after every function/procedure call -rcd rounding mode to enable fast float-to-int conversions -[no-]ftz enable/disable flush denormal results to zero Inlining -------- -inline-level= control inline expansion: n=0 disable inlining n=1 inline functions declared with __inline, and perform C++ inlining n=2 inline any function, at the compiler's discretion -f[no-]inline inline functions declared with __inline, and perform C++ inlining -f[no-]inline-functions inline any function at the compiler's discretion -finline-limit= set maximum number of statements a function can have and still be considered for inlining -inline-min-size= set size limit for inlining small routines -no-inline-min-size no size limit for inlining small routines -inline-max-size= set size limit for inlining large routines -no-inline-max-size no size limit for inlining large routines -inline-max-total-size= maximum increase in size for inline function expansion -no-inline-max-total-size no size limit for inline function expansion -inline-max-per-routine= maximum number of inline instances in any function -no-inline-max-per-routine no maximum number of inline instances in any function -inline-max-per-compile= maximum number of inline instances in the current compilation -no-inline-max-per-compile no maximum number of inline instances in the current compilation -inline-factor= set inlining upper limits by n percentage -no-inline-factor do not set set inlining upper limits -inline-forceinline treat inline routines as forceinline -inline-calloc directs the compiler to inline calloc() calls as malloc()/memset() Output, Debug, PCH ------------------ -c compile to object (.o) only, do not link -S compile to assembly (.s) only, do not link -fsource-asm produce assembly file with optional source annotations (requires -S) -f[no-]verbose-asm produce assembly file with compiler comments (DEFAULT) (requires -S) -fcode-asm produce assembly file with optional code annotations (requires -S) -use-msasm support Microsoft* style assembly language insertion using MASM style syntax -o name output file -g produce symbolic debug information in object file (implies -O0 when another optimization option is not explicitly set) -debug [keyword] enable debug information and control output of enhanced debug information keywords: all, full, minimal, none, [no]inline-debug-info [no]variable-locations, [no]semantic-stepping, extended parallel [no]expr-source-pos -g0 disable generation of symbolic debug information -gdwarf-2 enable generation of debug information using the DWARF2 format -ftrapuv trap uninitialized variables -map-opts enable option mapping tool -print-multi-lib print information about libraries being used -pch-create create precompiled header file -pch-use use precompiled header file -pch enable automatic precompiled header file creation/usage -pch-dir name precompiled header directory Preprocessor ------------ -A[] create an assertion having value -C do not strip comments -D[=] define macro -U remove predefined macro -E preprocess to stdout -EP preprocess to stdout, omitting #line directives -P preprocess to file, omitting #line directives -I add directory to include file search path -idirafter add directory to the second include file search path (after -I) -isystem add directory to the start of the system include path -X, -nostdinc remove standard directories from include file search path -nostdinc++ remove standard C++ directories from include file search path -iprefix use with -iwithprefix as a prefix -iwithprefix append to the prefix passed in by -iprefix and put it on the include search path at the end of the include directories -iwithprefixbefore similar to -iwithprefix except the include directory is placed in the same place as -I command line include directories -iquote add directory to the front of the include file search path for files included with quotes, but not brackets -imacros treat as an #include file, but throw away all preprocessing while macros defined remain defined -H print include file order -B find libraries, headers and executables in -M generate makefile dependency information -MM similar to -M, but do not include system header files -MG similar to -M, but treat missing header files as generated files -MD preprocess and compile, generating output file containing dependency information ending with extension .d -MMD similar to -MD, but do not include system header files -MF generate makefile dependency information in file (must specify -M or -MM) -MP add a phony target for each dependency -MT change the default target rule for dependency generation -MQ same as -MT, but quotes special Make characters -dM output macro definitions in effect after preprocessing (use with -E) -dD same as -dM, but output #define directives in preprocessed source -dN same as -dD, but #define directives contain only macro names -gcc Predefine the "__GNUC__", "__GNUC_MINOR__", and "__GNUC_PATCHLEVEL__" macros (DEFAULT) -no-gcc Do not predefine GNUC macros listed in -gcc mode. Warning: can prevent correct system header compilation, see -gcc-sys -gcc-sys same as -no-gcc, except that the GNU macros are defined only while preprocessing the system include headers -no-icc do not predefine the "__ICC" and "__INTEL_COMPILER" macros. Warning: can prevent correct Intel header compilation -pragma-optimization-level=[Intel|GCC] process #pragma optimize using Intel (DEFAULT) or GCC syntax Component Control ----------------- -Qoption,, pass options to tool specified by -Qlocation,, set as the location of tool specified by -Qinstall set as root of compiler installation Language -------- -std= enable language support for , as described below c99 enable C99 support for C programs c++0x enable preliminary support for some C++0x features -x all source files found subsequent to -x will be recognized as one of the following types: c - C source file c++ - C++ source file c-header - C header file cpp-output - C pre-processed file c++-cpp-output - C++ pre-processed file assembler - assembly file assembler-with-cpp - assembly file that needs to be preprocessed none - revert to original file extension -ansi equivalent to GNU -ansi -strict-ansi strict ANSI conformance dialect -Zp[n] specify alignment constraint for structures where n=1,2,4,8,16. 16 is the default -fsyntax-only perform syntax and semantic checking only (no object file produced) -fpermissive allows extensions for some non-conformant code -funsigned-char change default char type to unsigned -fshort-enums allocate as many bytes as needed for enumerated types -f[no-]unsigned-bitfields change default bitfield type to unsigned -fno-rtti disable RTTI support -fno-implicit-templates never emit code for non-inline templates which are instantiated implicitly; only emit code for explicit instantiations -fno-implicit-inline-templates do not emit code for implicit instantiations of inline templates -ftemplate-depth-[n] control the depth in which recursive templates are expanded -[no]align analyze and reorder memory layout for variables and arrays -[no-]restrict enable/disable the 'restrict' keyword for disambiguating pointers -[no-]early-template-check enable/disable (DEFAULT) semantic checking of function template prototypes (before instantiation). Requires -gcc-version=340 or later -[no-]check-uninit check for uninitialized variables -export enable the export template feature -export-dir add directory to export template search path -help-pragma output supported pragmas and their usage syntax Compiler Diagnostics -------------------- -w disable all warnings -w control diagnostics n = 0 display errors (same as -w) n = 1 display warnings and errors (DEFAULT) n = 2 display remarks, warnings and errors -Wbrief print brief one-line diagnostics -Werror force warnings to be reported as errors -Werror-all force warnings and remarks to be reported as errors -Wall enable all warnings -Wcheck enable more strict diagnostics -Weffc++ enable effective C++ diagnostic warnings -wo[,,...] issue diagnostics L1 through LN only once -W[no-]fatal-errors ends compilation after the first error encountered -W[no-]format enable argument checking for calls to printf, scanf, etc -W[no-]format-security warn for uses of format strings and specifiers in printf, scanf, etc that may introduce security problems -W[no-]missing-declarations warn for global functions and variables without prior declaration -W[no-]missing-prototypes warn for missing prototypes -W[no-]strict-aliasing warn for code that might violate the optimizer's strict aliasing rules. Warnings are issued only when using -fstrict-aliasing or -ansi-alias. -W[no-]strict-prototypes warn for functions declared or defined without specified argument types -W[no-]pointer-arith warn for questionable pointer arithmetic -W[no-]uninitialized warn if a variable is used before being initialized -Winline enable inline diagnostics -W[no-]deprecated print warnings related to deprecated features -W[no-]abi warn if generated code is not C++ ABI compliant -Wcontext-limit= set maximum number of template instantiation contexts shown in diagnostic -Wcast-qual warn if cast is used to override pointer type qualifier -W[no-]unused-function warn if declared function is not used -W[no-]unknown-pragmas warn if an unknown #pragma directive is used (DEFAULT) -W[no-]main warn if return type of main is not expected -W[no-]comment[s] warn when comment -W[no-]conversion warn for implicit conversions that may alter a value -W[no-]return-type warn when a function uses the default int return type and warn when a return statement is used in a void function -W[no-]extra-tokens warn about extra tokens after prepreprocessor directives -W[no-]pragma-once warn about the use of #pragma once -W[no-]shadow warn when a variable declaration hides a previous declaration -Woverloaded-virtual warn when a function declaration hides virtual functions from a base class -W[no-]trigraphs warn about the recognition and conversion of trigraphs -W[no-]multichar warn if a multicharacter constant ('ABC') is used -W[no-]overflow warn for operations that could result in integer overflow -Wwrite-strings Issues a diagnostic message if const char * is converted to (non-const) char *. -Wp64 print diagnostics for 64-bit porting -W[no-]shorten-64-to-32 warn for values implicitly converted from a 64-bit to a 32-bit type. Similar to -Wp64 -[no]traceback specify whether the compiler generates data to allow for source file traceback information at runtime (only to be used when linking with Fortran programs) -noerror-limit set no maximum number on error-level or fatal-level error messages -diag-enable [,,...] enable the specified diagnostics or diagnostic groups -diag-disable [,,...] disable the specified diagnostics or diagnostic groups where may be individual diagnostic numbers or group names. where group names include: sc[n] - perform source code analysis: n=1 for critical errors, n=2 for all errors and n=3 for all errors and warnings sc-include - perform source code analysis on include files sc-parallel[n] - perform analysis of parallelization in source code: n=1 for critical errors, n=2 for errors, n=3 for all errors and warnings thread - enable diagnostics to aid in thread-enabling source port-win - enable diagnostics for GNU extensions that may cause errors when porting to Windows -diag-error [,,...] output the specified diagnostics or diagnostic groups as errors -diag-warning [,,...] output the specified diagnostics or diagnostic groups as warnings -diag-remark [,,...] output the the specified diagnostics or diagnostic groups as remarks -diag-dump display the currently enabled diagnostic messages to stdout or to a specified diagnostic output file. -diag-file[=] where diagnostics are emitted to. Not specifying this causes messages to be output to stderr -diag-file-append[=] where diagnostics are emitted to. When already exists, output is appended to the file -[no-]diag-id-numbers enable(DEFAULT)/disable the diagnostic specifiers to be output in numeric form -diag-error-limit specify the maximum number of errors emitted -diag-once [,,...] issue diagnostics v1 through vN only once Miscellaneous ------------- -V display compiler version information -dumpversion display the compiler version number only -dumpmachine display the target machine only --version display GCC style version information -[no-]sox enable/disable(DEFAULT) saving of compiler options and version in the executable -save-temps store the intermediate files in current directory and name them based on the source file. Only saves files that are generated by default -dryrun show driver tool commands but do not execute tools -v show driver tool commands and execute tools -[no-]multibyte-chars provide support for multi-byte characters -multiple-processes[=] create multiple processes that can be used to compile large numbers of source files at the same time Data ---- -Zp[n] specify alignment constraint for structures (n=1,2,4,8,16 -Zp16 DEFAULT) -[no]align analyze and reorder memory layout for variables and arrays -fminshared Compilation is for the main executable. Absolute addressing can be used and non-position independent code generated for symbols that are at least protected -fcommon Enables the compiler to treat common variables as if they were defined. That in turn allows the use of gprel addressing of common data variables. -fno-common disables -freg-struct-return return struct and union values in registers when possible -fstack-security-check enable overflow security checks. -f[no-]stack-security-check disables (DEFAULT) -fstack-protector enable stack overflow security checks. -f[no-]stack-protector disables (DEFAULT) -fpic, -fPIC generate position independent code (-fno-pic/-fno-PIC is DEFAULT) -fpie, -fPIE generate position independent code that will be linked into an executable (-fno-pie/-fno-PIE is DEFAULT) -[no-]global-hoist enable(DEFAULT)/disable external globals are load safe -f[no-]keep-static-consts enable/disable(DEFAULT) emission of static const variables even when not referenced -fpack-struct pack structure members together -f[no-]math-errno set ERRNO after calling standard math library functions -no-bss-init disable placement of zero-initialized variables in BSS (use DATA) -falign-functions=[2|16] align the start of functions on a 2 (DEFAULT) or 16 byte boundary -falign-functions align the start of functions to an optimal machine-dependent value. -fno-align-functions (DEFAULT) aligns on a 2-byte boundary -falign-stack= stack alignment method to use on entry to routines default - use default heuristics maintain-16-byte - do not assume any specific alignment, but maintain alignment in case the stack is already aligned assume-16-byte - assume the stack is aligned on 16-byte boundaries -fvisibility=[extern|default|protected|hidden|internal] Global symbols (data and functions) will get the visibility attribute given by default. Symbol visibility attributes explicitly set in the source code or using the symbol visibility attribute file options will override the -fvisibility setting -fvisibility-extern= Space separated symbols listed in the argument will geti visibility set to extern -fvisibility-default= Space separated symbols listed in the argument will get visibility set to default -fvisibility-protected= Space separated symbols listed in the argument will get visibility set to protected -fvisibility-hidden= Space separated symbols listed in the argument will get visibility set to hidden -fvisibility-internal= Space separated symbols listed in the argument will get visibility set to internal -fvisibility-inlines-hidden mark inline member functions as hidden Compatibility ------------- -gcc-name= name and location of gcc if not where expected -gxx-name= name and location of g++ if not where expected -gcc-version= specify the of gcc compatibility. Default value matches gcc version installed. Major/Minor versions listed but patch levels (i.e. 345) are permissible 320 - gcc 3.2.x compatibility 330 - gcc 3.3.x compatibility 340 - gcc 3.4.x compatibility 400 - gcc 4.0.x compatibility 410 - gcc 4.1.x compatibility 420 - gcc 4.2.x compatibility -fabi-version= directs the compiler to select a specific ABI implementation 0 - most recent ABI implementation 1 - g++ 3.2 compatible ABI implementation 2 - most conformant ABI implementation Linking/Linker -------------- -L instruct linker to search for libraries -l instruct the linker to link in the -l library -shared-intel link Intel provided libraries dynamically -static-intel link Intel provided libraries statically -shared-libgcc link libgcc dynamically -static-libgcc link libgcc statically -dynamic-linker select dynamic linker other than the default -no-cxxlib do not link in C++ runtime libraries -cxxlib[=dir] link using C++ run-time libraries provided with gcc dir is an optional top-level location for the gcc binaries and libraries -nodefaultlibs do not use standard libraries when linking -nostartfiles do not use standard startup files when linking -nostdlib do not use standard libraries and startup files when linking -static prevents linking with shared libraries -shared produce a shared object -Bstatic specify following libraries are linked statically -Bdynamic specify following libraries are linked dynamically -pthread use POSIX* thread library for multithreading support -cxxlib- tell the compiler which C++ run-time libraries to use nostd - do not link in standard C++ library -u pretend the is undefined -T direct linker to read link commands from -Xlinker pass directly to the linker for processing -Wa,[,,...] pass options o1, o2, etc. to the assembler -Wl,[,,...] pass options o1, o2, etc. to the linker for processing -Wp,[,,...] pass options o1, o2, etc. to the preprocessor Deprecated Options ------------------ -Ob use -inline-level= -cxxlib-gcc[=dir] use -cxxlib[=dir] -i-dynamic use -shared-intel -i-static use -static-intel -inline-debug-info use -debug inline-debug-info -mp use -fp-model -use-asm no replacement -A- use -U -prefetch use -opt-prefetch -prof-genx use -prof-gen=srcpos -openmp-lib=legacy use -openmp-lib=compat -xB use -xSSE2 (i32 only) -xK use -xSSE (i32 only) -axK No replacement -xW use -msse2 -axW use -msse2 -xN use -xSSE2 -axN use -axSSE2 -xP use -xSSE3 -axP use -axSSE3 -xT use -xSSSE3 -axT use -axSSSE3 -xS use -xSSE4.1 -axS use -axSSE4.1 -xO use -msse3 -func-groups use -prof-func-groups -diag-enable sv use -diag-enable sc -diag-enable sv-include use -diag-enable sc-include -diag-disable sv use -diag-disable sc -diag-sv use -diag-enable sc -diag-sv-error use -diag-disable warning -diag-sv-include use -diag-enable sc-include -diag-sv-level No replacement -diag-sv-sup use -diag-disable [,,...] -alias-args use -fargument-alias -c99 use -std=c99 -create-pch use -pch-create -fwritable-strings no replacement -Kc++ use -x c++ -no-alias-args use -fargument-noalias -use-pch use -pch-use -wn use -diag-error-limit -wd use -diag-disable -we use -diag-error -ww use -diag-warning -wr use -diag-remark -wo use -diag-once -help [category] print full or category help message Valid categories include advanced - Advanced Optimizations codegen - Code Generation compatibility - Compatibility component - Component Control data - Data deprecated - Deprecated Options diagnostics - Compiler Diagnostics float - Floating Point help - Help inline - Inlining ipo - Interprocedural Optimization (IPO) language - Language link - Linking/Linker misc - Miscellaneous opt - Optimization output - Output pgo - Profile Guided Optimization (PGO) preproc - Preprocessor reports - Optimization Reports openmp - OpenMP and Parallel Processing Copyright (C) 1985-2009, Intel Corporation. All rights reserved. * Other brands and names are the property of their respective owners. sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc --help Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc --help sh: Intel(R) C++ Compiler Help ========================== usage: icc [options] file1 [file2 ...] icpc [options] file1 [file2 ...] where options represents zero or more compiler options fileN is a C/C++ source (.C .c .cc .cpp .cxx .c++ .i .ii), assembly (.s .S), object (.o), static library (.a), or other linkable file The icpc command uses the same compiler options as the icc command. Invoking the compiler using icpc compiles .c and .i files as C++. Invoking the compiler using icc compiles .c and .i files as C. Using icpc always links in C++ libraries. Using icc only links in C++ libraries if C++ source is provided on the command line. Commonly used options may be placed in the icc .cfg file. Some options listed are only available on a specific system i32 indicates the feature is available on systems based on IA-32 architecture i64em indicates the feature is available on systems using Intel(R) 64 architecture Compiler Option List -------------------- Optimization ------------ -O1 optimize for maximum speed, but disable some optimizations which increase code size for a small speed benefit -O2 optimize for maximum speed (DEFAULT) -O3 optimize for maximum speed and enable more aggressive optimizations that may not improve performance on some programs -O same as -O2 -Os enable speed optimizations, but disable some optimizations which increase code size for small speed benefit -O0 disable optimizations -fast enable -xHOST -O3 -ipo -no-prec-div -static options set by -fast cannot be overridden with the exception of -xHOST, list options separately to change behavior -fno-alias assume no aliasing in program -fno-fnalias assume no aliasing within functions, but assume aliasing across calls -f[no-]builtin disable inline expansion of intrinsic functions -fno-builtin- disable the intrinsic -ffunction-sections separate functions for the linker (COMDAT) -fdata-sections same as -ffunction-sections -nolib-inline disable inline expansion of intrinsic functions Code Generation --------------- -x[,,...] generate specialized code to run exclusively on processors indicated by as described below Host generate instructions for the highest instruction set and processor available on the compilation host machine SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSE3_ATOM Can generate MOVBE instructions for Intel processors and can optimize for the Intel(R) Atom(TM) processor. SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for SSE4 Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -ax[,,...] generate code specialized for processors specified by while also generating generic IA-32 instructions. includes one or more of the following: SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -mcpu= same as -mtune= -mtune= optimize for a specific pentium3 - optimize for Pentium(R) III processors pentium4 - optimize for Pentium(R) 4 processor (DEFAULT) -march= generate code exclusively for a given pentium3 - streaming SIMD extensions pentium4 - Pentium(R) 4 New Instructions -mia32 generates code which will run on any Intel Pentium or later processor. Disables any default extended instruction settings, and any previously set extended instruction settings. -msse generate code for Intel Pentium III and compatible Intel processors -msse2 generate code for Intel Pentium 4 and compatible Intel processors -msse3 generate code for Intel(R) Core(TM) Duo processors, Intel(R) Core(TM) Solo processors, Intel Pentium 4 and compatible Intel processors with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support -mssse3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) -msse4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions -minstruction= Refine instruction set output for the selected target processor [no]movbe - Do/do not generate MOVBE instructions with SSE3_ATOM (requires -xSSE3_ATOM) -f[no-]omit-frame-pointer enable(DEFAULT)/disable use of EBP as general purpose register. -fno-omit-frame-pointer replaces -fp -f[no-]exceptions enable/disable(DEFAULT) C++ exception handling table generation -fnon-call-exceptions enable/disable(DEFAULT) code that allows exceptions from trapping instructions to be caught Interprocedural Optimization (IPO) ---------------------------------- -[no-]ip enable(DEFAULT)/disable single-file IP optimization within files -ipo[n] enable multi-file IP optimization between files -ipo-c generate a multi-file object file (ipo_out.o) -ipo-S generate a multi-file assembly file (ipo_out.S) -ip-no-inlining disable full and partial inlining -ip-no-pinlining disable partial inlining -ipo-separate create one object file for every source file (overrides -ipo[n]) -ipo-jobs specify the number of jobs to be executed simultaneously during the IPO link phase Advanced Optimizations ---------------------- -unroll[n] set maximum number of times to unroll loops. Omit n to use default heuristics. Use n=0 to disable the loop unroller -[no-]unroll-aggressive enables more aggressive unrolling heuristics -funroll-loops unroll loops based on default heuristics -[no-]scalar-rep enable(DEFAULT)/disable scalar replacement (requires -O3) -[no-]ansi-alias enable/disable(DEFAULT) use of ANSI aliasing rules optimizations; user asserts that the program adheres to these rules -[no-]complex-limited-range enable/disable(DEFAULT) the use of the basic algebraic expansions of some complex arithmetic operations. This can allow for some performance improvement in programs which use a lot of complex arithmetic at the loss of some exponent range. -[no-]alias-const enable/disable(DEFAULT) a heuristic stating that if two arguments to a function have pointer type, a pointer to const does not alias a pointer to non-const. Also known as the input/output buffer rule, it assumes that input and output buffer arguments do not overlap. -fargument-alias arguments may alias each other and may alias global storage -fargument-noalias arguments do not alias each other but may alias global storage -fargument-noalias-global arguments do not alias each other and do not alias global storage -ftls-model= change thread-local storage model, where can be the following: global-dynamic, local-dynamic, initial-exec or local-exec -[no-]opt-multi-version-aggressive enables more aggressive multi-versioning to check for pointer aliasing and scalar replacement -opt-ra-region-strategy[=] select the method that the register allocator uses to partition each routine into regions routine - one region per routine block - one region per block trace - one region per trace loop - one region per loop default - compiler selects best option -[no-]vec enables(DEFAULT)/disables vectorization -[no-]vec-guard-write enables cache/bandwidth optimization for stores under conditionals within vector loops -vec-threshold[n] sets a threshold for the vectorization of loops based on the probability of profitable execution of the vectorized loop in parallel -opt-malloc-options={0|1|2|3|4} specify malloc configuration parameters. Specifying a non-zero value will cause alternate configuration parameters to be set for how malloc allocates and frees memory -opt-calloc enable/disable(DEFAULT) calls to fast calloc function -opt-jump-tables= control the generation of jump tables default - let the compiler decide when a jump table, a series of if-then-else constructs or a combination is generated large - generate jump tables up to a certain pre-defined size (64K entries) - generate jump tables up to in size use -no-opt-jump-tables to lower switch statements as chains of if-then-else constructs -fno-jump-tables do not generate jump tables for switches and if-then-else statements -opt-block-factor= specify blocking factor for loop blocking -ffreestanding compile in a freestanding environment where the standard library may not be present -opt-streaming-stores specifies whether streaming stores are generated always - enables generation of streaming stores under the assumption that the application is memory bound auto - compiler decides when streaming stores are used (DEFAULT) never - disables generation of streaming stores -ipp[=] link some or all of the Intel(R) Integrated Performance Primitives (Intel(R) IPP) libraries and bring in the associated headers common - link using the main libraries set. This is the default value when -ipp is specified crypto - link using the main libraries set and the crypto library nonpic - link using the version of the libraries that do not have position independent code nonpic_crypto - link using the crypto library and the version of the libraries that do not have position independent code -mkl[=] link to the Intel(R) Math Kernel Library (Intel(R) MKL) and bring in the associated headers parallel - link using the threaded Intel(R) MKL libraries. This is the default when -mkl is specified sequential - link using the non-threaded Intel(R) MKL libraries cluster - link using the Intel(R) MKL Cluster libraries plus the sequential Intel(R) MKL libraries -tbb link to the Intel(R) Threading Building Blocks (Intel(R) TBB) libraries and bring in the associated headers -[no-]opt-subscript-in-range assumes no overflows in the intermediate computation of the subscripts -[no-]use-intel-optimized-headers take advantage of the optimized header files Profile Guided Optimization (PGO) --------------------------------- -prof-dir specify directory for profiling output files (*.dyn and *.dpi) -prof-src-root specify project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -prof-src-root-cwd specify the current directory as the project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -[no-]prof-src-dir specify whether directory names of sources should be considered when looking up profile records within the .dpi file -prof-file specify file name for profiling summary file -[no-]prof-data-order enable/disable(DEFAULT) static data ordering with profiling -[no-]prof-func-order enable/disable(DEFAULT) function ordering with profiling -[no-]prof-func-groups enable(DEFAULT with PGO)/disable function grouping -prof-gen[=keyword] instrument program for profiling. Optional keyword may be srcpos or globdata -no-prof-gen disable profiling instrumentation -prof-use[=] enable use of profiling information during optimization weighted - invokes profmerge with -weighted option to scale data based on run durations [no]merge - enable(default)/disable the invocation of the profmerge tool -no-prof-use disable use of profiling information during optimization -opt-prefetch[=n] enable levels of prefetch insertion, where 0 disables. n may be 0 through 4 inclusive. Default is 2. -no-opt-prefetch disable(DEFAULT) prefetch insertion. Equivalent to -opt-prefetch=0 -p compile and link for function profiling with UNIX gprof tool On IA32 and Intel(r)64, -pg is also valid -f[no-]instrument-functions determine whether function entry and exit points are instrumented -prof-hotness-threshold= set the hotness threshold for function grouping and function ordering val indicates percentage of functions to be placed in hot region. This option requires -prof-use and -prof-func-groups or -prof-func-order Optimization Reports -------------------- -vec-report[n] control amount of vectorizer diagnostic information n=0 no diagnostic information n=1 indicate vectorized loops (DEFAULT) n=2 indicate vectorized/non-vectorized loops n=3 indicate vectorized/non-vectorized loops and prohibiting data dependence information n=4 indicate non-vectorized loops n=5 indicate non-vectorized loops and prohibiting data dependence information -opt-report [n] generate an optimization report to stderr 0 disable optimization report output 1 minimum report output 2 medium output (DEFAULT when enabled) 3 maximum report output -opt-report-file= specify the filename for the generated report -opt-report-phase= specify the phase that reports are generated against -opt-report-routine= reports on routines containing the given name -opt-report-help display the optimization phases available for reporting -tcheck [mode] enable analysis of threaded applications (requires Intel(R) Thread Checker; cannot be used with compiler alone) tci - instruments a program to perform a thread-count-independent analysis tcd - instruments a program to perform a thread-count-dependent analysis (DEFAULT when mode is not used) api - instruments a program at the api-imports level -tprofile generate instrumentation to analyze multi-threading performance (requires Intel(R) Thread Profiler; cannot be used with compiler alone) -tcollect[=] inserts instrumentation probes calling the Intel(R) Trace Collector API. The library -l is linked in the default being -lVT (requires Intel(R) Trace Collector) -tcollect-filter file Enable or disable the instrumentation of specified functions. (requires Intel(R) Trace Collector) OpenMP* and Parallel Processing ------------------------------- -openmp enable the compiler to generate multi-threaded code based on the OpenMP* directives -openmp-profile enable analysis of OpenMP application when the Intel(R) Thread Profiler is installed -openmp-stubs enables the user to compile OpenMP programs in sequential mode. The OpenMP directives are ignored and a stub OpenMP library is linked (sequential) -openmp-report{0|1|2} control the OpenMP parallelizer diagnostic level -openmp-lib choose which OpenMP library version to link with compat - use the GNU compatible OpenMP run-time libraries (DEFAULT) -openmp-link choose whether to link with the static or dynamic OpenMP libraries. Default is dynamic. -openmp-task choose which OpenMP tasking model to support omp - support OpenMP 3.0 tasking (DEFAULT) intel - support Intel taskqueuing -openmp-threadprivate choose which threadprivate implementation to use compat - use the GNU compatible thread local storage legacy - use the Intel compatible implementation (DEFAULT) -parallel enable the auto-parallelizer to generate multi-threaded code for loops that can be safely executed in parallel -par-report{0|1|2|3} control the auto-parallelizer diagnostic level -par-threshold[n] set threshold for the auto-parallelization of loops where n is an integer from 0 to 100 -[no-]par-runtime-control enable compiler to generate runtime control code for effective automatic parallelization -par-schedule-static[=n] Specifies a scheduling algorithm for DO loop iteration. Divides iterations into contiguous pieces. Size n if specified, equal sized pieces if not. -par-schedule-static-balanced[=n] Divides iterations into even-sized chunks. Size n if specified, equal sized pieces if not. -par-schedule-static-steal[=n] Divides iterations into even-sized chunks, but allows threads to steal parts of chunks from neighboring threads -par-schedule-dynamic[=n] Specifies a scheduling algorithm for DO loop iteration. Assigns iterations to threads in chunks dynamically. Chunk size is n iterations if specified, otherwise 1. -par-schedule-guided[=n] Specifies a scheduling algorithm for DO loop iteration. Indicates a minimum number of iterations. If specified, n is the minimum number, otherwise 1. -par-schedule-guided-analytical[=n] Divides iterations by using exponential distribution or dynamic distributions. -par-schedule-runtime Specifies a scheduling algorithm for DO loop iteration. Defers the scheduling decision until runtime. -par-schedule-auto Lets the compiler or run-time system determine the scheduling algorithm. -par-affinity=[,...][,][,] tune application performance by setting different thread affinity -par-num-threads= tune application performance by setting different number of threads Floating Point -------------- -fp-model enable floating point model variation [no-]except - enable/disable floating point semantics fast[=1|2] - enables more aggressive floating point optimizations precise - allows value-safe optimizations source - enables intermediates in source precision strict - enables -fp-model precise -fp-model except, disables contractions and enables pragma stdc fenv_access double - rounds intermediates in 53-bit (double) precision extended - rounds intermediates in 64-bit (extended) precision -fp-speculation= enable floating point speculations with the following conditions: fast - speculate floating point operations (DEFAULT) safe - speculate only when safe strict - same as off off - disables speculation of floating-point operations -pc32 set internal FPU precision to 24 bit significand -pc64 set internal FPU precision to 53 bit significand (DEFAULT) -pc80 set internal FPU precision to 64 bit significand -mp1 improve floating-point precision (speed impact less than -mp) -mieee-fp same as -mp, can be disabled with -mno-ieee-fp -[no-]prec-sqrt determine if certain square root optimizations are enabled -[no-]prec-div improve precision of FP divides (some speed impact) -[no-]fast-transcendentals generate a faster version of the transcendental functions -[no-]fp-port round fp results at assignments and casts (some speed impact) -fp-stack-check enable fp stack checking after every function/procedure call -rcd rounding mode to enable fast float-to-int conversions -[no-]ftz enable/disable flush denormal results to zero Inlining -------- -inline-level= control inline expansion: n=0 disable inlining n=1 inline functions declared with __inline, and perform C++ inlining n=2 inline any function, at the compiler's discretion -f[no-]inline inline functions declared with __inline, and perform C++ inlining -f[no-]inline-functions inline any function at the compiler's discretion -finline-limit= set maximum number of statements a function can have and still be considered for inlining -inline-min-size= set size limit for inlining small routines -no-inline-min-size no size limit for inlining small routines -inline-max-size= set size limit for inlining large routines -no-inline-max-size no size limit for inlining large routines -inline-max-total-size= maximum increase in size for inline function expansion -no-inline-max-total-size no size limit for inline function expansion -inline-max-per-routine= maximum number of inline instances in any function -no-inline-max-per-routine no maximum number of inline instances in any function -inline-max-per-compile= maximum number of inline instances in the current compilation -no-inline-max-per-compile no maximum number of inline instances in the current compilation -inline-factor= set inlining upper limits by n percentage -no-inline-factor do not set set inlining upper limits -inline-forceinline treat inline routines as forceinline -inline-calloc directs the compiler to inline calloc() calls as malloc()/memset() Output, Debug, PCH ------------------ -c compile to object (.o) only, do not link -S compile to assembly (.s) only, do not link -fsource-asm produce assembly file with optional source annotations (requires -S) -f[no-]verbose-asm produce assembly file with compiler comments (DEFAULT) (requires -S) -fcode-asm produce assembly file with optional code annotations (requires -S) -use-msasm support Microsoft* style assembly language insertion using MASM style syntax -o name output file -g produce symbolic debug information in object file (implies -O0 when another optimization option is not explicitly set) -debug [keyword] enable debug information and control output of enhanced debug information keywords: all, full, minimal, none, [no]inline-debug-info [no]variable-locations, [no]semantic-stepping, extended parallel [no]expr-source-pos -g0 disable generation of symbolic debug information -gdwarf-2 enable generation of debug information using the DWARF2 format -ftrapuv trap uninitialized variables -map-opts enable option mapping tool -print-multi-lib print information about libraries being used -pch-create create precompiled header file -pch-use use precompiled header file -pch enable automatic precompiled header file creation/usage -pch-dir name precompiled header directory Preprocessor ------------ -A[] create an assertion having value -C do not strip comments -D[=] define macro -U remove predefined macro -E preprocess to stdout -EP preprocess to stdout, omitting #line directives -P preprocess to file, omitting #line directives -I add directory to include file search path -idirafter add directory to the second include file search path (after -I) -isystem add directory to the start of the system include path -X, -nostdinc remove standard directories from include file search path -nostdinc++ remove standard C++ directories from include file search path -iprefix use with -iwithprefix as a prefix -iwithprefix append to the prefix passed in by -iprefix and put it on the include search path at the end of the include directories -iwithprefixbefore similar to -iwithprefix except the include directory is placed in the same place as -I command line include directories -iquote add directory to the front of the include file search path for files included with quotes, but not brackets -imacros treat as an #include file, but throw away all preprocessing while macros defined remain defined -H print include file order -B find libraries, headers and executables in -M generate makefile dependency information -MM similar to -M, but do not include system header files -MG similar to -M, but treat missing header files as generated files -MD preprocess and compile, generating output file containing dependency information ending with extension .d -MMD similar to -MD, but do not include system header files -MF generate makefile dependency information in file (must specify -M or -MM) -MP add a phony target for each dependency -MT change the default target rule for dependency generation -MQ same as -MT, but quotes special Make characters -dM output macro definitions in effect after preprocessing (use with -E) -dD same as -dM, but output #define directives in preprocessed source -dN same as -dD, but #define directives contain only macro names -gcc Predefine the "__GNUC__", "__GNUC_MINOR__", and "__GNUC_PATCHLEVEL__" macros (DEFAULT) -no-gcc Do not predefine GNUC macros listed in -gcc mode. Warning: can prevent correct system header compilation, see -gcc-sys -gcc-sys same as -no-gcc, except that the GNU macros are defined only while preprocessing the system include headers -no-icc do not predefine the "__ICC" and "__INTEL_COMPILER" macros. Warning: can prevent correct Intel header compilation -pragma-optimization-level=[Intel|GCC] process #pragma optimize using Intel (DEFAULT) or GCC syntax Component Control ----------------- -Qoption,, pass options to tool specified by -Qlocation,, set as the location of tool specified by -Qinstall set as root of compiler installation Language -------- -std= enable language support for , as described below c99 enable C99 support for C programs c++0x enable preliminary support for some C++0x features -x all source files found subsequent to -x will be recognized as one of the following types: c - C source file c++ - C++ source file c-header - C header file cpp-output - C pre-processed file c++-cpp-output - C++ pre-processed file assembler - assembly file assembler-with-cpp - assembly file that needs to be preprocessed none - revert to original file extension -ansi equivalent to GNU -ansi -strict-ansi strict ANSI conformance dialect -Zp[n] specify alignment constraint for structures where n=1,2,4,8,16. 16 is the default -fsyntax-only perform syntax and semantic checking only (no object file produced) -fpermissive allows extensions for some non-conformant code -funsigned-char change default char type to unsigned -fshort-enums allocate as many bytes as needed for enumerated types -f[no-]unsigned-bitfields change default bitfield type to unsigned -fno-rtti disable RTTI support -fno-implicit-templates never emit code for non-inline templates which are instantiated implicitly; only emit code for explicit instantiations -fno-implicit-inline-templates do not emit code for implicit instantiations of inline templates -ftemplate-depth-[n] control the depth in which recursive templates are expanded -[no]align analyze and reorder memory layout for variables and arrays -[no-]restrict enable/disable the 'restrict' keyword for disambiguating pointers -[no-]early-template-check enable/disable (DEFAULT) semantic checking of function template prototypes (before instantiation). Requires -gcc-version=340 or later -[no-]check-uninit check for uninitialized variables -export enable the export template feature -export-dir add directory to export template search path -help-pragma output supported pragmas and their usage syntax Compiler Diagnostics -------------------- -w disable all warnings -w control diagnostics n = 0 display errors (same as -w) n = 1 display warnings and errors (DEFAULT) n = 2 display remarks, warnings and errors -Wbrief print brief one-line diagnostics -Werror force warnings to be reported as errors -Werror-all force warnings and remarks to be reported as errors -Wall enable all warnings -Wcheck enable more strict diagnostics -Weffc++ enable effective C++ diagnostic warnings -wo[,,...] issue diagnostics L1 through LN only once -W[no-]fatal-errors ends compilation after the first error encountered -W[no-]format enable argument checking for calls to printf, scanf, etc -W[no-]format-security warn for uses of format strings and specifiers in printf, scanf, etc that may introduce security problems -W[no-]missing-declarations warn for global functions and variables without prior declaration -W[no-]missing-prototypes warn for missing prototypes -W[no-]strict-aliasing warn for code that might violate the optimizer's strict aliasing rules. Warnings are issued only when using -fstrict-aliasing or -ansi-alias. -W[no-]strict-prototypes warn for functions declared or defined without specified argument types -W[no-]pointer-arith warn for questionable pointer arithmetic -W[no-]uninitialized warn if a variable is used before being initialized -Winline enable inline diagnostics -W[no-]deprecated print warnings related to deprecated features -W[no-]abi warn if generated code is not C++ ABI compliant -Wcontext-limit= set maximum number of template instantiation contexts shown in diagnostic -Wcast-qual warn if cast is used to override pointer type qualifier -W[no-]unused-function warn if declared function is not used -W[no-]unknown-pragmas warn if an unknown #pragma directive is used (DEFAULT) -W[no-]main warn if return type of main is not expected -W[no-]comment[s] warn when comment -W[no-]conversion warn for implicit conversions that may alter a value -W[no-]return-type warn when a function uses the default int return type and warn when a return statement is used in a void function -W[no-]extra-tokens warn about extra tokens after prepreprocessor directives -W[no-]pragma-once warn about the use of #pragma once -W[no-]shadow warn when a variable declaration hides a previous declaration -Woverloaded-virtual warn when a function declaration hides virtual functions from a base class -W[no-]trigraphs warn about the recognition and conversion of trigraphs -W[no-]multichar warn if a multicharacter constant ('ABC') is used -W[no-]overflow warn for operations that could result in integer overflow -Wwrite-strings Issues a diagnostic message if const char * is converted to (non-const) char *. -Wp64 print diagnostics for 64-bit porting -W[no-]shorten-64-to-32 warn for values implicitly converted from a 64-bit to a 32-bit type. Similar to -Wp64 -[no]traceback specify whether the compiler generates data to allow for source file traceback information at runtime (only to be used when linking with Fortran programs) -noerror-limit set no maximum number on error-level or fatal-level error messages -diag-enable [,,...] enable the specified diagnostics or diagnostic groups -diag-disable [,,...] disable the specified diagnostics or diagnostic groups where may be individual diagnostic numbers or group names. where group names include: sc[n] - perform source code analysis: n=1 for critical errors, n=2 for all errors and n=3 for all errors and warnings sc-include - perform source code analysis on include files sc-parallel[n] - perform analysis of parallelization in source code: n=1 for critical errors, n=2 for errors, n=3 for all errors and warnings thread - enable diagnostics to aid in thread-enabling source port-win - enable diagnostics for GNU extensions that may cause errors when porting to Windows -diag-error [,,...] output the specified diagnostics or diagnostic groups as errors -diag-warning [,,...] output the specified diagnostics or diagnostic groups as warnings -diag-remark [,,...] output the the specified diagnostics or diagnostic groups as remarks -diag-dump display the currently enabled diagnostic messages to stdout or to a specified diagnostic output file. -diag-file[=] where diagnostics are emitted to. Not specifying this causes messages to be output to stderr -diag-file-append[=] where diagnostics are emitted to. When already exists, output is appended to the file -[no-]diag-id-numbers enable(DEFAULT)/disable the diagnostic specifiers to be output in numeric form -diag-error-limit specify the maximum number of errors emitted -diag-once [,,...] issue diagnostics v1 through vN only once Miscellaneous ------------- -V display compiler version information -dumpversion display the compiler version number only -dumpmachine display the target machine only --version display GCC style version information -[no-]sox enable/disable(DEFAULT) saving of compiler options and version in the executable -save-temps store the intermediate files in current directory and name them based on the source file. Only saves files that are generated by default -dryrun show driver tool commands but do not execute tools -v show driver tool commands and execute tools -[no-]multibyte-chars provide support for multi-byte characters -multiple-processes[=] create multiple processes that can be used to compile large numbers of source files at the same time Data ---- -Zp[n] specify alignment constraint for structures (n=1,2,4,8,16 -Zp16 DEFAULT) -[no]align analyze and reorder memory layout for variables and arrays -fminshared Compilation is for the main executable. Absolute addressing can be used and non-position independent code generated for symbols that are at least protected -fcommon Enables the compiler to treat common variables as if they were defined. That in turn allows the use of gprel addressing of common data variables. -fno-common disables -freg-struct-return return struct and union values in registers when possible -fstack-security-check enable overflow security checks. -f[no-]stack-security-check disables (DEFAULT) -fstack-protector enable stack overflow security checks. -f[no-]stack-protector disables (DEFAULT) -fpic, -fPIC generate position independent code (-fno-pic/-fno-PIC is DEFAULT) -fpie, -fPIE generate position independent code that will be linked into an executable (-fno-pie/-fno-PIE is DEFAULT) -[no-]global-hoist enable(DEFAULT)/disable external globals are load safe -f[no-]keep-static-consts enable/disable(DEFAULT) emission of static const variables even when not referenced -fpack-struct pack structure members together -f[no-]math-errno set ERRNO after calling standard math library functions -no-bss-init disable placement of zero-initialized variables in BSS (use DATA) -falign-functions=[2|16] align the start of functions on a 2 (DEFAULT) or 16 byte boundary -falign-functions align the start of functions to an optimal machine-dependent value. -fno-align-functions (DEFAULT) aligns on a 2-byte boundary -falign-stack= stack alignment method to use on entry to routines default - use default heuristics maintain-16-byte - do not assume any specific alignment, but maintain alignment in case the stack is already aligned assume-16-byte - assume the stack is aligned on 16-byte boundaries -fvisibility=[extern|default|protected|hidden|internal] Global symbols (data and functions) will get the visibility attribute given by default. Symbol visibility attributes explicitly set in the source code or using the symbol visibility attribute file options will override the -fvisibility setting -fvisibility-extern= Space separated symbols listed in the argument will geti visibility set to extern -fvisibility-default= Space separated symbols listed in the argument will get visibility set to default -fvisibility-protected= Space separated symbols listed in the argument will get visibility set to protected -fvisibility-hidden= Space separated symbols listed in the argument will get visibility set to hidden -fvisibility-internal= Space separated symbols listed in the argument will get visibility set to internal -fvisibility-inlines-hidden mark inline member functions as hidden Compatibility ------------- -gcc-name= name and location of gcc if not where expected -gxx-name= name and location of g++ if not where expected -gcc-version= specify the of gcc compatibility. Default value matches gcc version installed. Major/Minor versions listed but patch levels (i.e. 345) are permissible 320 - gcc 3.2.x compatibility 330 - gcc 3.3.x compatibility 340 - gcc 3.4.x compatibility 400 - gcc 4.0.x compatibility 410 - gcc 4.1.x compatibility 420 - gcc 4.2.x compatibility -fabi-version= directs the compiler to select a specific ABI implementation 0 - most recent ABI implementation 1 - g++ 3.2 compatible ABI implementation 2 - most conformant ABI implementation Linking/Linker -------------- -L instruct linker to search for libraries -l instruct the linker to link in the -l library -shared-intel link Intel provided libraries dynamically -static-intel link Intel provided libraries statically -shared-libgcc link libgcc dynamically -static-libgcc link libgcc statically -dynamic-linker select dynamic linker other than the default -no-cxxlib do not link in C++ runtime libraries -cxxlib[=dir] link using C++ run-time libraries provided with gcc dir is an optional top-level location for the gcc binaries and libraries -nodefaultlibs do not use standard libraries when linking -nostartfiles do not use standard startup files when linking -nostdlib do not use standard libraries and startup files when linking -static prevents linking with shared libraries -shared produce a shared object -Bstatic specify following libraries are linked statically -Bdynamic specify following libraries are linked dynamically -pthread use POSIX* thread library for multithreading support -cxxlib- tell the compiler which C++ run-time libraries to use nostd - do not link in standard C++ library -u pretend the is undefined -T direct linker to read link commands from -Xlinker pass directly to the linker for processing -Wa,[,,...] pass options o1, o2, etc. to the assembler -Wl,[,,...] pass options o1, o2, etc. to the linker for processing -Wp,[,,...] pass options o1, o2, etc. to the preprocessor Deprecated Options ------------------ -Ob use -inline-level= -cxxlib-gcc[=dir] use -cxxlib[=dir] -i-dynamic use -shared-intel -i-static use -static-intel -inline-debug-info use -debug inline-debug-info -mp use -fp-model -use-asm no replacement -A- use -U -prefetch use -opt-prefetch -prof-genx use -prof-gen=srcpos -openmp-lib=legacy use -openmp-lib=compat -xB use -xSSE2 (i32 only) -xK use -xSSE (i32 only) -axK No replacement -xW use -msse2 -axW use -msse2 -xN use -xSSE2 -axN use -axSSE2 -xP use -xSSE3 -axP use -axSSE3 -xT use -xSSSE3 -axT use -axSSSE3 -xS use -xSSE4.1 -axS use -axSSE4.1 -xO use -msse3 -func-groups use -prof-func-groups -diag-enable sv use -diag-enable sc -diag-enable sv-include use -diag-enable sc-include -diag-disable sv use -diag-disable sc -diag-sv use -diag-enable sc -diag-sv-error use -diag-disable warning -diag-sv-include use -diag-enable sc-include -diag-sv-level No replacement -diag-sv-sup use -diag-disable [,,...] -alias-args use -fargument-alias -c99 use -std=c99 -create-pch use -pch-create -fwritable-strings no replacement -Kc++ use -x c++ -no-alias-args use -fargument-noalias -use-pch use -pch-use -wn use -diag-error-limit -wd use -diag-disable -we use -diag-error -ww use -diag-warning -wr use -diag-remark -wo use -diag-once -help [category] print full or category help message Valid categories include advanced - Advanced Optimizations codegen - Code Generation compatibility - Compatibility component - Component Control data - Data deprecated - Deprecated Options diagnostics - Compiler Diagnostics float - Floating Point help - Help inline - Inlining ipo - Interprocedural Optimization (IPO) language - Language link - Linking/Linker misc - Miscellaneous opt - Optimization output - Output pgo - Profile Guided Optimization (PGO) preproc - Preprocessor reports - Optimization Reports openmp - OpenMP and Parallel Processing Copyright (C) 1985-2009, Intel Corporation. All rights reserved. * Other brands and names are the property of their respective owners. sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc --help Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc --help sh: Intel(R) C++ Compiler Help ========================== usage: icc [options] file1 [file2 ...] icpc [options] file1 [file2 ...] where options represents zero or more compiler options fileN is a C/C++ source (.C .c .cc .cpp .cxx .c++ .i .ii), assembly (.s .S), object (.o), static library (.a), or other linkable file The icpc command uses the same compiler options as the icc command. Invoking the compiler using icpc compiles .c and .i files as C++. Invoking the compiler using icc compiles .c and .i files as C. Using icpc always links in C++ libraries. Using icc only links in C++ libraries if C++ source is provided on the command line. Commonly used options may be placed in the icc .cfg file. Some options listed are only available on a specific system i32 indicates the feature is available on systems based on IA-32 architecture i64em indicates the feature is available on systems using Intel(R) 64 architecture Compiler Option List -------------------- Optimization ------------ -O1 optimize for maximum speed, but disable some optimizations which increase code size for a small speed benefit -O2 optimize for maximum speed (DEFAULT) -O3 optimize for maximum speed and enable more aggressive optimizations that may not improve performance on some programs -O same as -O2 -Os enable speed optimizations, but disable some optimizations which increase code size for small speed benefit -O0 disable optimizations -fast enable -xHOST -O3 -ipo -no-prec-div -static options set by -fast cannot be overridden with the exception of -xHOST, list options separately to change behavior -fno-alias assume no aliasing in program -fno-fnalias assume no aliasing within functions, but assume aliasing across calls -f[no-]builtin disable inline expansion of intrinsic functions -fno-builtin- disable the intrinsic -ffunction-sections separate functions for the linker (COMDAT) -fdata-sections same as -ffunction-sections -nolib-inline disable inline expansion of intrinsic functions Code Generation --------------- -x[,,...] generate specialized code to run exclusively on processors indicated by as described below Host generate instructions for the highest instruction set and processor available on the compilation host machine SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSE3_ATOM Can generate MOVBE instructions for Intel processors and can optimize for the Intel(R) Atom(TM) processor. SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for SSE4 Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -ax[,,...] generate code specialized for processors specified by while also generating generic IA-32 instructions. includes one or more of the following: SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -mcpu= same as -mtune= -mtune= optimize for a specific pentium3 - optimize for Pentium(R) III processors pentium4 - optimize for Pentium(R) 4 processor (DEFAULT) -march= generate code exclusively for a given pentium3 - streaming SIMD extensions pentium4 - Pentium(R) 4 New Instructions -mia32 generates code which will run on any Intel Pentium or later processor. Disables any default extended instruction settings, and any previously set extended instruction settings. -msse generate code for Intel Pentium III and compatible Intel processors -msse2 generate code for Intel Pentium 4 and compatible Intel processors -msse3 generate code for Intel(R) Core(TM) Duo processors, Intel(R) Core(TM) Solo processors, Intel Pentium 4 and compatible Intel processors with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support -mssse3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) -msse4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions -minstruction= Refine instruction set output for the selected target processor [no]movbe - Do/do not generate MOVBE instructions with SSE3_ATOM (requires -xSSE3_ATOM) -f[no-]omit-frame-pointer enable(DEFAULT)/disable use of EBP as general purpose register. -fno-omit-frame-pointer replaces -fp -f[no-]exceptions enable/disable(DEFAULT) C++ exception handling table generation -fnon-call-exceptions enable/disable(DEFAULT) code that allows exceptions from trapping instructions to be caught Interprocedural Optimization (IPO) ---------------------------------- -[no-]ip enable(DEFAULT)/disable single-file IP optimization within files -ipo[n] enable multi-file IP optimization between files -ipo-c generate a multi-file object file (ipo_out.o) -ipo-S generate a multi-file assembly file (ipo_out.S) -ip-no-inlining disable full and partial inlining -ip-no-pinlining disable partial inlining -ipo-separate create one object file for every source file (overrides -ipo[n]) -ipo-jobs specify the number of jobs to be executed simultaneously during the IPO link phase Advanced Optimizations ---------------------- -unroll[n] set maximum number of times to unroll loops. Omit n to use default heuristics. Use n=0 to disable the loop unroller -[no-]unroll-aggressive enables more aggressive unrolling heuristics -funroll-loops unroll loops based on default heuristics -[no-]scalar-rep enable(DEFAULT)/disable scalar replacement (requires -O3) -[no-]ansi-alias enable/disable(DEFAULT) use of ANSI aliasing rules optimizations; user asserts that the program adheres to these rules -[no-]complex-limited-range enable/disable(DEFAULT) the use of the basic algebraic expansions of some complex arithmetic operations. This can allow for some performance improvement in programs which use a lot of complex arithmetic at the loss of some exponent range. -[no-]alias-const enable/disable(DEFAULT) a heuristic stating that if two arguments to a function have pointer type, a pointer to const does not alias a pointer to non-const. Also known as the input/output buffer rule, it assumes that input and output buffer arguments do not overlap. -fargument-alias arguments may alias each other and may alias global storage -fargument-noalias arguments do not alias each other but may alias global storage -fargument-noalias-global arguments do not alias each other and do not alias global storage -ftls-model= change thread-local storage model, where can be the following: global-dynamic, local-dynamic, initial-exec or local-exec -[no-]opt-multi-version-aggressive enables more aggressive multi-versioning to check for pointer aliasing and scalar replacement -opt-ra-region-strategy[=] select the method that the register allocator uses to partition each routine into regions routine - one region per routine block - one region per block trace - one region per trace loop - one region per loop default - compiler selects best option -[no-]vec enables(DEFAULT)/disables vectorization -[no-]vec-guard-write enables cache/bandwidth optimization for stores under conditionals within vector loops -vec-threshold[n] sets a threshold for the vectorization of loops based on the probability of profitable execution of the vectorized loop in parallel -opt-malloc-options={0|1|2|3|4} specify malloc configuration parameters. Specifying a non-zero value will cause alternate configuration parameters to be set for how malloc allocates and frees memory -opt-calloc enable/disable(DEFAULT) calls to fast calloc function -opt-jump-tables= control the generation of jump tables default - let the compiler decide when a jump table, a series of if-then-else constructs or a combination is generated large - generate jump tables up to a certain pre-defined size (64K entries) - generate jump tables up to in size use -no-opt-jump-tables to lower switch statements as chains of if-then-else constructs -fno-jump-tables do not generate jump tables for switches and if-then-else statements -opt-block-factor= specify blocking factor for loop blocking -ffreestanding compile in a freestanding environment where the standard library may not be present -opt-streaming-stores specifies whether streaming stores are generated always - enables generation of streaming stores under the assumption that the application is memory bound auto - compiler decides when streaming stores are used (DEFAULT) never - disables generation of streaming stores -ipp[=] link some or all of the Intel(R) Integrated Performance Primitives (Intel(R) IPP) libraries and bring in the associated headers common - link using the main libraries set. This is the default value when -ipp is specified crypto - link using the main libraries set and the crypto library nonpic - link using the version of the libraries that do not have position independent code nonpic_crypto - link using the crypto library and the version of the libraries that do not have position independent code -mkl[=] link to the Intel(R) Math Kernel Library (Intel(R) MKL) and bring in the associated headers parallel - link using the threaded Intel(R) MKL libraries. This is the default when -mkl is specified sequential - link using the non-threaded Intel(R) MKL libraries cluster - link using the Intel(R) MKL Cluster libraries plus the sequential Intel(R) MKL libraries -tbb link to the Intel(R) Threading Building Blocks (Intel(R) TBB) libraries and bring in the associated headers -[no-]opt-subscript-in-range assumes no overflows in the intermediate computation of the subscripts -[no-]use-intel-optimized-headers take advantage of the optimized header files Profile Guided Optimization (PGO) --------------------------------- -prof-dir specify directory for profiling output files (*.dyn and *.dpi) -prof-src-root specify project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -prof-src-root-cwd specify the current directory as the project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -[no-]prof-src-dir specify whether directory names of sources should be considered when looking up profile records within the .dpi file -prof-file specify file name for profiling summary file -[no-]prof-data-order enable/disable(DEFAULT) static data ordering with profiling -[no-]prof-func-order enable/disable(DEFAULT) function ordering with profiling -[no-]prof-func-groups enable(DEFAULT with PGO)/disable function grouping -prof-gen[=keyword] instrument program for profiling. Optional keyword may be srcpos or globdata -no-prof-gen disable profiling instrumentation -prof-use[=] enable use of profiling information during optimization weighted - invokes profmerge with -weighted option to scale data based on run durations [no]merge - enable(default)/disable the invocation of the profmerge tool -no-prof-use disable use of profiling information during optimization -opt-prefetch[=n] enable levels of prefetch insertion, where 0 disables. n may be 0 through 4 inclusive. Default is 2. -no-opt-prefetch disable(DEFAULT) prefetch insertion. Equivalent to -opt-prefetch=0 -p compile and link for function profiling with UNIX gprof tool On IA32 and Intel(r)64, -pg is also valid -f[no-]instrument-functions determine whether function entry and exit points are instrumented -prof-hotness-threshold= set the hotness threshold for function grouping and function ordering val indicates percentage of functions to be placed in hot region. This option requires -prof-use and -prof-func-groups or -prof-func-order Optimization Reports -------------------- -vec-report[n] control amount of vectorizer diagnostic information n=0 no diagnostic information n=1 indicate vectorized loops (DEFAULT) n=2 indicate vectorized/non-vectorized loops n=3 indicate vectorized/non-vectorized loops and prohibiting data dependence information n=4 indicate non-vectorized loops n=5 indicate non-vectorized loops and prohibiting data dependence information -opt-report [n] generate an optimization report to stderr 0 disable optimization report output 1 minimum report output 2 medium output (DEFAULT when enabled) 3 maximum report output -opt-report-file= specify the filename for the generated report -opt-report-phase= specify the phase that reports are generated against -opt-report-routine= reports on routines containing the given name -opt-report-help display the optimization phases available for reporting -tcheck [mode] enable analysis of threaded applications (requires Intel(R) Thread Checker; cannot be used with compiler alone) tci - instruments a program to perform a thread-count-independent analysis tcd - instruments a program to perform a thread-count-dependent analysis (DEFAULT when mode is not used) api - instruments a program at the api-imports level -tprofile generate instrumentation to analyze multi-threading performance (requires Intel(R) Thread Profiler; cannot be used with compiler alone) -tcollect[=] inserts instrumentation probes calling the Intel(R) Trace Collector API. The library -l is linked in the default being -lVT (requires Intel(R) Trace Collector) -tcollect-filter file Enable or disable the instrumentation of specified functions. (requires Intel(R) Trace Collector) OpenMP* and Parallel Processing ------------------------------- -openmp enable the compiler to generate multi-threaded code based on the OpenMP* directives -openmp-profile enable analysis of OpenMP application when the Intel(R) Thread Profiler is installed -openmp-stubs enables the user to compile OpenMP programs in sequential mode. The OpenMP directives are ignored and a stub OpenMP library is linked (sequential) -openmp-report{0|1|2} control the OpenMP parallelizer diagnostic level -openmp-lib choose which OpenMP library version to link with compat - use the GNU compatible OpenMP run-time libraries (DEFAULT) -openmp-link choose whether to link with the static or dynamic OpenMP libraries. Default is dynamic. -openmp-task choose which OpenMP tasking model to support omp - support OpenMP 3.0 tasking (DEFAULT) intel - support Intel taskqueuing -openmp-threadprivate choose which threadprivate implementation to use compat - use the GNU compatible thread local storage legacy - use the Intel compatible implementation (DEFAULT) -parallel enable the auto-parallelizer to generate multi-threaded code for loops that can be safely executed in parallel -par-report{0|1|2|3} control the auto-parallelizer diagnostic level -par-threshold[n] set threshold for the auto-parallelization of loops where n is an integer from 0 to 100 -[no-]par-runtime-control enable compiler to generate runtime control code for effective automatic parallelization -par-schedule-static[=n] Specifies a scheduling algorithm for DO loop iteration. Divides iterations into contiguous pieces. Size n if specified, equal sized pieces if not. -par-schedule-static-balanced[=n] Divides iterations into even-sized chunks. Size n if specified, equal sized pieces if not. -par-schedule-static-steal[=n] Divides iterations into even-sized chunks, but allows threads to steal parts of chunks from neighboring threads -par-schedule-dynamic[=n] Specifies a scheduling algorithm for DO loop iteration. Assigns iterations to threads in chunks dynamically. Chunk size is n iterations if specified, otherwise 1. -par-schedule-guided[=n] Specifies a scheduling algorithm for DO loop iteration. Indicates a minimum number of iterations. If specified, n is the minimum number, otherwise 1. -par-schedule-guided-analytical[=n] Divides iterations by using exponential distribution or dynamic distributions. -par-schedule-runtime Specifies a scheduling algorithm for DO loop iteration. Defers the scheduling decision until runtime. -par-schedule-auto Lets the compiler or run-time system determine the scheduling algorithm. -par-affinity=[,...][,][,] tune application performance by setting different thread affinity -par-num-threads= tune application performance by setting different number of threads Floating Point -------------- -fp-model enable floating point model variation [no-]except - enable/disable floating point semantics fast[=1|2] - enables more aggressive floating point optimizations precise - allows value-safe optimizations source - enables intermediates in source precision strict - enables -fp-model precise -fp-model except, disables contractions and enables pragma stdc fenv_access double - rounds intermediates in 53-bit (double) precision extended - rounds intermediates in 64-bit (extended) precision -fp-speculation= enable floating point speculations with the following conditions: fast - speculate floating point operations (DEFAULT) safe - speculate only when safe strict - same as off off - disables speculation of floating-point operations -pc32 set internal FPU precision to 24 bit significand -pc64 set internal FPU precision to 53 bit significand (DEFAULT) -pc80 set internal FPU precision to 64 bit significand -mp1 improve floating-point precision (speed impact less than -mp) -mieee-fp same as -mp, can be disabled with -mno-ieee-fp -[no-]prec-sqrt determine if certain square root optimizations are enabled -[no-]prec-div improve precision of FP divides (some speed impact) -[no-]fast-transcendentals generate a faster version of the transcendental functions -[no-]fp-port round fp results at assignments and casts (some speed impact) -fp-stack-check enable fp stack checking after every function/procedure call -rcd rounding mode to enable fast float-to-int conversions -[no-]ftz enable/disable flush denormal results to zero Inlining -------- -inline-level= control inline expansion: n=0 disable inlining n=1 inline functions declared with __inline, and perform C++ inlining n=2 inline any function, at the compiler's discretion -f[no-]inline inline functions declared with __inline, and perform C++ inlining -f[no-]inline-functions inline any function at the compiler's discretion -finline-limit= set maximum number of statements a function can have and still be considered for inlining -inline-min-size= set size limit for inlining small routines -no-inline-min-size no size limit for inlining small routines -inline-max-size= set size limit for inlining large routines -no-inline-max-size no size limit for inlining large routines -inline-max-total-size= maximum increase in size for inline function expansion -no-inline-max-total-size no size limit for inline function expansion -inline-max-per-routine= maximum number of inline instances in any function -no-inline-max-per-routine no maximum number of inline instances in any function -inline-max-per-compile= maximum number of inline instances in the current compilation -no-inline-max-per-compile no maximum number of inline instances in the current compilation -inline-factor= set inlining upper limits by n percentage -no-inline-factor do not set set inlining upper limits -inline-forceinline treat inline routines as forceinline -inline-calloc directs the compiler to inline calloc() calls as malloc()/memset() Output, Debug, PCH ------------------ -c compile to object (.o) only, do not link -S compile to assembly (.s) only, do not link -fsource-asm produce assembly file with optional source annotations (requires -S) -f[no-]verbose-asm produce assembly file with compiler comments (DEFAULT) (requires -S) -fcode-asm produce assembly file with optional code annotations (requires -S) -use-msasm support Microsoft* style assembly language insertion using MASM style syntax -o name output file -g produce symbolic debug information in object file (implies -O0 when another optimization option is not explicitly set) -debug [keyword] enable debug information and control output of enhanced debug information keywords: all, full, minimal, none, [no]inline-debug-info [no]variable-locations, [no]semantic-stepping, extended parallel [no]expr-source-pos -g0 disable generation of symbolic debug information -gdwarf-2 enable generation of debug information using the DWARF2 format -ftrapuv trap uninitialized variables -map-opts enable option mapping tool -print-multi-lib print information about libraries being used -pch-create create precompiled header file -pch-use use precompiled header file -pch enable automatic precompiled header file creation/usage -pch-dir name precompiled header directory Preprocessor ------------ -A[] create an assertion having value -C do not strip comments -D[=] define macro -U remove predefined macro -E preprocess to stdout -EP preprocess to stdout, omitting #line directives -P preprocess to file, omitting #line directives -I add directory to include file search path -idirafter add directory to the second include file search path (after -I) -isystem add directory to the start of the system include path -X, -nostdinc remove standard directories from include file search path -nostdinc++ remove standard C++ directories from include file search path -iprefix use with -iwithprefix as a prefix -iwithprefix append to the prefix passed in by -iprefix and put it on the include search path at the end of the include directories -iwithprefixbefore similar to -iwithprefix except the include directory is placed in the same place as -I command line include directories -iquote add directory to the front of the include file search path for files included with quotes, but not brackets -imacros treat as an #include file, but throw away all preprocessing while macros defined remain defined -H print include file order -B find libraries, headers and executables in -M generate makefile dependency information -MM similar to -M, but do not include system header files -MG similar to -M, but treat missing header files as generated files -MD preprocess and compile, generating output file containing dependency information ending with extension .d -MMD similar to -MD, but do not include system header files -MF generate makefile dependency information in file (must specify -M or -MM) -MP add a phony target for each dependency -MT change the default target rule for dependency generation -MQ same as -MT, but quotes special Make characters -dM output macro definitions in effect after preprocessing (use with -E) -dD same as -dM, but output #define directives in preprocessed source -dN same as -dD, but #define directives contain only macro names -gcc Predefine the "__GNUC__", "__GNUC_MINOR__", and "__GNUC_PATCHLEVEL__" macros (DEFAULT) -no-gcc Do not predefine GNUC macros listed in -gcc mode. Warning: can prevent correct system header compilation, see -gcc-sys -gcc-sys same as -no-gcc, except that the GNU macros are defined only while preprocessing the system include headers -no-icc do not predefine the "__ICC" and "__INTEL_COMPILER" macros. Warning: can prevent correct Intel header compilation -pragma-optimization-level=[Intel|GCC] process #pragma optimize using Intel (DEFAULT) or GCC syntax Component Control ----------------- -Qoption,, pass options to tool specified by -Qlocation,, set as the location of tool specified by -Qinstall set as root of compiler installation Language -------- -std= enable language support for , as described below c99 enable C99 support for C programs c++0x enable preliminary support for some C++0x features -x all source files found subsequent to -x will be recognized as one of the following types: c - C source file c++ - C++ source file c-header - C header file cpp-output - C pre-processed file c++-cpp-output - C++ pre-processed file assembler - assembly file assembler-with-cpp - assembly file that needs to be preprocessed none - revert to original file extension -ansi equivalent to GNU -ansi -strict-ansi strict ANSI conformance dialect -Zp[n] specify alignment constraint for structures where n=1,2,4,8,16. 16 is the default -fsyntax-only perform syntax and semantic checking only (no object file produced) -fpermissive allows extensions for some non-conformant code -funsigned-char change default char type to unsigned -fshort-enums allocate as many bytes as needed for enumerated types -f[no-]unsigned-bitfields change default bitfield type to unsigned -fno-rtti disable RTTI support -fno-implicit-templates never emit code for non-inline templates which are instantiated implicitly; only emit code for explicit instantiations -fno-implicit-inline-templates do not emit code for implicit instantiations of inline templates -ftemplate-depth-[n] control the depth in which recursive templates are expanded -[no]align analyze and reorder memory layout for variables and arrays -[no-]restrict enable/disable the 'restrict' keyword for disambiguating pointers -[no-]early-template-check enable/disable (DEFAULT) semantic checking of function template prototypes (before instantiation). Requires -gcc-version=340 or later -[no-]check-uninit check for uninitialized variables -export enable the export template feature -export-dir add directory to export template search path -help-pragma output supported pragmas and their usage syntax Compiler Diagnostics -------------------- -w disable all warnings -w control diagnostics n = 0 display errors (same as -w) n = 1 display warnings and errors (DEFAULT) n = 2 display remarks, warnings and errors -Wbrief print brief one-line diagnostics -Werror force warnings to be reported as errors -Werror-all force warnings and remarks to be reported as errors -Wall enable all warnings -Wcheck enable more strict diagnostics -Weffc++ enable effective C++ diagnostic warnings -wo[,,...] issue diagnostics L1 through LN only once -W[no-]fatal-errors ends compilation after the first error encountered -W[no-]format enable argument checking for calls to printf, scanf, etc -W[no-]format-security warn for uses of format strings and specifiers in printf, scanf, etc that may introduce security problems -W[no-]missing-declarations warn for global functions and variables without prior declaration -W[no-]missing-prototypes warn for missing prototypes -W[no-]strict-aliasing warn for code that might violate the optimizer's strict aliasing rules. Warnings are issued only when using -fstrict-aliasing or -ansi-alias. -W[no-]strict-prototypes warn for functions declared or defined without specified argument types -W[no-]pointer-arith warn for questionable pointer arithmetic -W[no-]uninitialized warn if a variable is used before being initialized -Winline enable inline diagnostics -W[no-]deprecated print warnings related to deprecated features -W[no-]abi warn if generated code is not C++ ABI compliant -Wcontext-limit= set maximum number of template instantiation contexts shown in diagnostic -Wcast-qual warn if cast is used to override pointer type qualifier -W[no-]unused-function warn if declared function is not used -W[no-]unknown-pragmas warn if an unknown #pragma directive is used (DEFAULT) -W[no-]main warn if return type of main is not expected -W[no-]comment[s] warn when comment -W[no-]conversion warn for implicit conversions that may alter a value -W[no-]return-type warn when a function uses the default int return type and warn when a return statement is used in a void function -W[no-]extra-tokens warn about extra tokens after prepreprocessor directives -W[no-]pragma-once warn about the use of #pragma once -W[no-]shadow warn when a variable declaration hides a previous declaration -Woverloaded-virtual warn when a function declaration hides virtual functions from a base class -W[no-]trigraphs warn about the recognition and conversion of trigraphs -W[no-]multichar warn if a multicharacter constant ('ABC') is used -W[no-]overflow warn for operations that could result in integer overflow -Wwrite-strings Issues a diagnostic message if const char * is converted to (non-const) char *. -Wp64 print diagnostics for 64-bit porting -W[no-]shorten-64-to-32 warn for values implicitly converted from a 64-bit to a 32-bit type. Similar to -Wp64 -[no]traceback specify whether the compiler generates data to allow for source file traceback information at runtime (only to be used when linking with Fortran programs) -noerror-limit set no maximum number on error-level or fatal-level error messages -diag-enable [,,...] enable the specified diagnostics or diagnostic groups -diag-disable [,,...] disable the specified diagnostics or diagnostic groups where may be individual diagnostic numbers or group names. where group names include: sc[n] - perform source code analysis: n=1 for critical errors, n=2 for all errors and n=3 for all errors and warnings sc-include - perform source code analysis on include files sc-parallel[n] - perform analysis of parallelization in source code: n=1 for critical errors, n=2 for errors, n=3 for all errors and warnings thread - enable diagnostics to aid in thread-enabling source port-win - enable diagnostics for GNU extensions that may cause errors when porting to Windows -diag-error [,,...] output the specified diagnostics or diagnostic groups as errors -diag-warning [,,...] output the specified diagnostics or diagnostic groups as warnings -diag-remark [,,...] output the the specified diagnostics or diagnostic groups as remarks -diag-dump display the currently enabled diagnostic messages to stdout or to a specified diagnostic output file. -diag-file[=] where diagnostics are emitted to. Not specifying this causes messages to be output to stderr -diag-file-append[=] where diagnostics are emitted to. When already exists, output is appended to the file -[no-]diag-id-numbers enable(DEFAULT)/disable the diagnostic specifiers to be output in numeric form -diag-error-limit specify the maximum number of errors emitted -diag-once [,,...] issue diagnostics v1 through vN only once Miscellaneous ------------- -V display compiler version information -dumpversion display the compiler version number only -dumpmachine display the target machine only --version display GCC style version information -[no-]sox enable/disable(DEFAULT) saving of compiler options and version in the executable -save-temps store the intermediate files in current directory and name them based on the source file. Only saves files that are generated by default -dryrun show driver tool commands but do not execute tools -v show driver tool commands and execute tools -[no-]multibyte-chars provide support for multi-byte characters -multiple-processes[=] create multiple processes that can be used to compile large numbers of source files at the same time Data ---- -Zp[n] specify alignment constraint for structures (n=1,2,4,8,16 -Zp16 DEFAULT) -[no]align analyze and reorder memory layout for variables and arrays -fminshared Compilation is for the main executable. Absolute addressing can be used and non-position independent code generated for symbols that are at least protected -fcommon Enables the compiler to treat common variables as if they were defined. That in turn allows the use of gprel addressing of common data variables. -fno-common disables -freg-struct-return return struct and union values in registers when possible -fstack-security-check enable overflow security checks. -f[no-]stack-security-check disables (DEFAULT) -fstack-protector enable stack overflow security checks. -f[no-]stack-protector disables (DEFAULT) -fpic, -fPIC generate position independent code (-fno-pic/-fno-PIC is DEFAULT) -fpie, -fPIE generate position independent code that will be linked into an executable (-fno-pie/-fno-PIE is DEFAULT) -[no-]global-hoist enable(DEFAULT)/disable external globals are load safe -f[no-]keep-static-consts enable/disable(DEFAULT) emission of static const variables even when not referenced -fpack-struct pack structure members together -f[no-]math-errno set ERRNO after calling standard math library functions -no-bss-init disable placement of zero-initialized variables in BSS (use DATA) -falign-functions=[2|16] align the start of functions on a 2 (DEFAULT) or 16 byte boundary -falign-functions align the start of functions to an optimal machine-dependent value. -fno-align-functions (DEFAULT) aligns on a 2-byte boundary -falign-stack= stack alignment method to use on entry to routines default - use default heuristics maintain-16-byte - do not assume any specific alignment, but maintain alignment in case the stack is already aligned assume-16-byte - assume the stack is aligned on 16-byte boundaries -fvisibility=[extern|default|protected|hidden|internal] Global symbols (data and functions) will get the visibility attribute given by default. Symbol visibility attributes explicitly set in the source code or using the symbol visibility attribute file options will override the -fvisibility setting -fvisibility-extern= Space separated symbols listed in the argument will geti visibility set to extern -fvisibility-default= Space separated symbols listed in the argument will get visibility set to default -fvisibility-protected= Space separated symbols listed in the argument will get visibility set to protected -fvisibility-hidden= Space separated symbols listed in the argument will get visibility set to hidden -fvisibility-internal= Space separated symbols listed in the argument will get visibility set to internal -fvisibility-inlines-hidden mark inline member functions as hidden Compatibility ------------- -gcc-name= name and location of gcc if not where expected -gxx-name= name and location of g++ if not where expected -gcc-version= specify the of gcc compatibility. Default value matches gcc version installed. Major/Minor versions listed but patch levels (i.e. 345) are permissible 320 - gcc 3.2.x compatibility 330 - gcc 3.3.x compatibility 340 - gcc 3.4.x compatibility 400 - gcc 4.0.x compatibility 410 - gcc 4.1.x compatibility 420 - gcc 4.2.x compatibility -fabi-version= directs the compiler to select a specific ABI implementation 0 - most recent ABI implementation 1 - g++ 3.2 compatible ABI implementation 2 - most conformant ABI implementation Linking/Linker -------------- -L instruct linker to search for libraries -l instruct the linker to link in the -l library -shared-intel link Intel provided libraries dynamically -static-intel link Intel provided libraries statically -shared-libgcc link libgcc dynamically -static-libgcc link libgcc statically -dynamic-linker select dynamic linker other than the default -no-cxxlib do not link in C++ runtime libraries -cxxlib[=dir] link using C++ run-time libraries provided with gcc dir is an optional top-level location for the gcc binaries and libraries -nodefaultlibs do not use standard libraries when linking -nostartfiles do not use standard startup files when linking -nostdlib do not use standard libraries and startup files when linking -static prevents linking with shared libraries -shared produce a shared object -Bstatic specify following libraries are linked statically -Bdynamic specify following libraries are linked dynamically -pthread use POSIX* thread library for multithreading support -cxxlib- tell the compiler which C++ run-time libraries to use nostd - do not link in standard C++ library -u pretend the is undefined -T direct linker to read link commands from -Xlinker pass directly to the linker for processing -Wa,[,,...] pass options o1, o2, etc. to the assembler -Wl,[,,...] pass options o1, o2, etc. to the linker for processing -Wp,[,,...] pass options o1, o2, etc. to the preprocessor Deprecated Options ------------------ -Ob use -inline-level= -cxxlib-gcc[=dir] use -cxxlib[=dir] -i-dynamic use -shared-intel -i-static use -static-intel -inline-debug-info use -debug inline-debug-info -mp use -fp-model -use-asm no replacement -A- use -U -prefetch use -opt-prefetch -prof-genx use -prof-gen=srcpos -openmp-lib=legacy use -openmp-lib=compat -xB use -xSSE2 (i32 only) -xK use -xSSE (i32 only) -axK No replacement -xW use -msse2 -axW use -msse2 -xN use -xSSE2 -axN use -axSSE2 -xP use -xSSE3 -axP use -axSSE3 -xT use -xSSSE3 -axT use -axSSSE3 -xS use -xSSE4.1 -axS use -axSSE4.1 -xO use -msse3 -func-groups use -prof-func-groups -diag-enable sv use -diag-enable sc -diag-enable sv-include use -diag-enable sc-include -diag-disable sv use -diag-disable sc -diag-sv use -diag-enable sc -diag-sv-error use -diag-disable warning -diag-sv-include use -diag-enable sc-include -diag-sv-level No replacement -diag-sv-sup use -diag-disable [,,...] -alias-args use -fargument-alias -c99 use -std=c99 -create-pch use -pch-create -fwritable-strings no replacement -Kc++ use -x c++ -no-alias-args use -fargument-noalias -use-pch use -pch-use -wn use -diag-error-limit -wd use -diag-disable -we use -diag-error -ww use -diag-warning -wr use -diag-remark -wo use -diag-once -help [category] print full or category help message Valid categories include advanced - Advanced Optimizations codegen - Code Generation compatibility - Compatibility component - Component Control data - Data deprecated - Deprecated Options diagnostics - Compiler Diagnostics float - Floating Point help - Help inline - Inlining ipo - Interprocedural Optimization (IPO) language - Language link - Linking/Linker misc - Miscellaneous opt - Optimization output - Output pgo - Profile Guided Optimization (PGO) preproc - Preprocessor reports - Optimization Reports openmp - OpenMP and Parallel Processing Copyright (C) 1985-2009, Intel Corporation. All rights reserved. * Other brands and names are the property of their respective owners. Trying C compiler flag -O3 sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries -wd1572 -O3 /tmp/petsc-3SW45q/config.setCompilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries -wd1572 -O3 /tmp/petsc-3SW45q/config.setCompilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" int main() { ; return 0; } Added C compiler flag -O3 Popping language C Pushing language Cxx sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc --version Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc --version sh: icpc (ICC) 11.1 20090827 Copyright (C) 1985-2009 Intel Corporation. All rights reserved. getCompilerVersion: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc icpc (ICC) 11.1 20090827 sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc --help Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc --help sh: Intel(R) C++ Compiler Help ========================== usage: icc [options] file1 [file2 ...] icpc [options] file1 [file2 ...] where options represents zero or more compiler options fileN is a C/C++ source (.C .c .cc .cpp .cxx .c++ .i .ii), assembly (.s .S), object (.o), static library (.a), or other linkable file The icpc command uses the same compiler options as the icc command. Invoking the compiler using icpc compiles .c and .i files as C++. Invoking the compiler using icc compiles .c and .i files as C. Using icpc always links in C++ libraries. Using icc only links in C++ libraries if C++ source is provided on the command line. Commonly used options may be placed in the icc .cfg file. Some options listed are only available on a specific system i32 indicates the feature is available on systems based on IA-32 architecture i64em indicates the feature is available on systems using Intel(R) 64 architecture Compiler Option List -------------------- Optimization ------------ -O1 optimize for maximum speed, but disable some optimizations which increase code size for a small speed benefit -O2 optimize for maximum speed (DEFAULT) -O3 optimize for maximum speed and enable more aggressive optimizations that may not improve performance on some programs -O same as -O2 -Os enable speed optimizations, but disable some optimizations which increase code size for small speed benefit -O0 disable optimizations -fast enable -xHOST -O3 -ipo -no-prec-div -static options set by -fast cannot be overridden with the exception of -xHOST, list options separately to change behavior -fno-alias assume no aliasing in program -fno-fnalias assume no aliasing within functions, but assume aliasing across calls -f[no-]builtin disable inline expansion of intrinsic functions -fno-builtin- disable the intrinsic -ffunction-sections separate functions for the linker (COMDAT) -fdata-sections same as -ffunction-sections -nolib-inline disable inline expansion of intrinsic functions Code Generation --------------- -x[,,...] generate specialized code to run exclusively on processors indicated by as described below Host generate instructions for the highest instruction set and processor available on the compilation host machine SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSE3_ATOM Can generate MOVBE instructions for Intel processors and can optimize for the Intel(R) Atom(TM) processor. SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for SSE4 Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -ax[,,...] generate code specialized for processors specified by while also generating generic IA-32 instructions. includes one or more of the following: SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -mcpu= same as -mtune= -mtune= optimize for a specific pentium3 - optimize for Pentium(R) III processors pentium4 - optimize for Pentium(R) 4 processor (DEFAULT) -march= generate code exclusively for a given pentium3 - streaming SIMD extensions pentium4 - Pentium(R) 4 New Instructions -mia32 generates code which will run on any Intel Pentium or later processor. Disables any default extended instruction settings, and any previously set extended instruction settings. -msse generate code for Intel Pentium III and compatible Intel processors -msse2 generate code for Intel Pentium 4 and compatible Intel processors -msse3 generate code for Intel(R) Core(TM) Duo processors, Intel(R) Core(TM) Solo processors, Intel Pentium 4 and compatible Intel processors with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support -mssse3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) -msse4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions -minstruction= Refine instruction set output for the selected target processor [no]movbe - Do/do not generate MOVBE instructions with SSE3_ATOM (requires -xSSE3_ATOM) -f[no-]omit-frame-pointer enable(DEFAULT)/disable use of EBP as general purpose register. -fno-omit-frame-pointer replaces -fp -f[no-]exceptions enable/disable(DEFAULT) C++ exception handling table generation -fnon-call-exceptions enable/disable(DEFAULT) code that allows exceptions from trapping instructions to be caught Interprocedural Optimization (IPO) ---------------------------------- -[no-]ip enable(DEFAULT)/disable single-file IP optimization within files -ipo[n] enable multi-file IP optimization between files -ipo-c generate a multi-file object file (ipo_out.o) -ipo-S generate a multi-file assembly file (ipo_out.S) -ip-no-inlining disable full and partial inlining -ip-no-pinlining disable partial inlining -ipo-separate create one object file for every source file (overrides -ipo[n]) -ipo-jobs specify the number of jobs to be executed simultaneously during the IPO link phase Advanced Optimizations ---------------------- -unroll[n] set maximum number of times to unroll loops. Omit n to use default heuristics. Use n=0 to disable the loop unroller -[no-]unroll-aggressive enables more aggressive unrolling heuristics -funroll-loops unroll loops based on default heuristics -[no-]scalar-rep enable(DEFAULT)/disable scalar replacement (requires -O3) -[no-]ansi-alias enable/disable(DEFAULT) use of ANSI aliasing rules optimizations; user asserts that the program adheres to these rules -[no-]complex-limited-range enable/disable(DEFAULT) the use of the basic algebraic expansions of some complex arithmetic operations. This can allow for some performance improvement in programs which use a lot of complex arithmetic at the loss of some exponent range. -[no-]alias-const enable/disable(DEFAULT) a heuristic stating that if two arguments to a function have pointer type, a pointer to const does not alias a pointer to non-const. Also known as the input/output buffer rule, it assumes that input and output buffer arguments do not overlap. -fargument-alias arguments may alias each other and may alias global storage -fargument-noalias arguments do not alias each other but may alias global storage -fargument-noalias-global arguments do not alias each other and do not alias global storage -ftls-model= change thread-local storage model, where can be the following: global-dynamic, local-dynamic, initial-exec or local-exec -[no-]opt-multi-version-aggressive enables more aggressive multi-versioning to check for pointer aliasing and scalar replacement -opt-ra-region-strategy[=] select the method that the register allocator uses to partition each routine into regions routine - one region per routine block - one region per block trace - one region per trace loop - one region per loop default - compiler selects best option -[no-]vec enables(DEFAULT)/disables vectorization -[no-]vec-guard-write enables cache/bandwidth optimization for stores under conditionals within vector loops -vec-threshold[n] sets a threshold for the vectorization of loops based on the probability of profitable execution of the vectorized loop in parallel -opt-malloc-options={0|1|2|3|4} specify malloc configuration parameters. Specifying a non-zero value will cause alternate configuration parameters to be set for how malloc allocates and frees memory -opt-calloc enable/disable(DEFAULT) calls to fast calloc function -opt-jump-tables= control the generation of jump tables default - let the compiler decide when a jump table, a series of if-then-else constructs or a combination is generated large - generate jump tables up to a certain pre-defined size (64K entries) - generate jump tables up to in size use -no-opt-jump-tables to lower switch statements as chains of if-then-else constructs -fno-jump-tables do not generate jump tables for switches and if-then-else statements -opt-block-factor= specify blocking factor for loop blocking -ffreestanding compile in a freestanding environment where the standard library may not be present -opt-streaming-stores specifies whether streaming stores are generated always - enables generation of streaming stores under the assumption that the application is memory bound auto - compiler decides when streaming stores are used (DEFAULT) never - disables generation of streaming stores -ipp[=] link some or all of the Intel(R) Integrated Performance Primitives (Intel(R) IPP) libraries and bring in the associated headers common - link using the main libraries set. This is the default value when -ipp is specified crypto - link using the main libraries set and the crypto library nonpic - link using the version of the libraries that do not have position independent code nonpic_crypto - link using the crypto library and the version of the libraries that do not have position independent code -mkl[=] link to the Intel(R) Math Kernel Library (Intel(R) MKL) and bring in the associated headers parallel - link using the threaded Intel(R) MKL libraries. This is the default when -mkl is specified sequential - link using the non-threaded Intel(R) MKL libraries cluster - link using the Intel(R) MKL Cluster libraries plus the sequential Intel(R) MKL libraries -tbb link to the Intel(R) Threading Building Blocks (Intel(R) TBB) libraries and bring in the associated headers -[no-]opt-subscript-in-range assumes no overflows in the intermediate computation of the subscripts -[no-]use-intel-optimized-headers take advantage of the optimized header files Profile Guided Optimization (PGO) --------------------------------- -prof-dir specify directory for profiling output files (*.dyn and *.dpi) -prof-src-root specify project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -prof-src-root-cwd specify the current directory as the project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -[no-]prof-src-dir specify whether directory names of sources should be considered when looking up profile records within the .dpi file -prof-file specify file name for profiling summary file -[no-]prof-data-order enable/disable(DEFAULT) static data ordering with profiling -[no-]prof-func-order enable/disable(DEFAULT) function ordering with profiling -[no-]prof-func-groups enable(DEFAULT with PGO)/disable function grouping -prof-gen[=keyword] instrument program for profiling. Optional keyword may be srcpos or globdata -no-prof-gen disable profiling instrumentation -prof-use[=] enable use of profiling information during optimization weighted - invokes profmerge with -weighted option to scale data based on run durations [no]merge - enable(default)/disable the invocation of the profmerge tool -no-prof-use disable use of profiling information during optimization -opt-prefetch[=n] enable levels of prefetch insertion, where 0 disables. n may be 0 through 4 inclusive. Default is 2. -no-opt-prefetch disable(DEFAULT) prefetch insertion. Equivalent to -opt-prefetch=0 -p compile and link for function profiling with UNIX gprof tool On IA32 and Intel(r)64, -pg is also valid -f[no-]instrument-functions determine whether function entry and exit points are instrumented -prof-hotness-threshold= set the hotness threshold for function grouping and function ordering val indicates percentage of functions to be placed in hot region. This option requires -prof-use and -prof-func-groups or -prof-func-order Optimization Reports -------------------- -vec-report[n] control amount of vectorizer diagnostic information n=0 no diagnostic information n=1 indicate vectorized loops (DEFAULT) n=2 indicate vectorized/non-vectorized loops n=3 indicate vectorized/non-vectorized loops and prohibiting data dependence information n=4 indicate non-vectorized loops n=5 indicate non-vectorized loops and prohibiting data dependence information -opt-report [n] generate an optimization report to stderr 0 disable optimization report output 1 minimum report output 2 medium output (DEFAULT when enabled) 3 maximum report output -opt-report-file= specify the filename for the generated report -opt-report-phase= specify the phase that reports are generated against -opt-report-routine= reports on routines containing the given name -opt-report-help display the optimization phases available for reporting -tcheck [mode] enable analysis of threaded applications (requires Intel(R) Thread Checker; cannot be used with compiler alone) tci - instruments a program to perform a thread-count-independent analysis tcd - instruments a program to perform a thread-count-dependent analysis (DEFAULT when mode is not used) api - instruments a program at the api-imports level -tprofile generate instrumentation to analyze multi-threading performance (requires Intel(R) Thread Profiler; cannot be used with compiler alone) -tcollect[=] inserts instrumentation probes calling the Intel(R) Trace Collector API. The library -l is linked in the default being -lVT (requires Intel(R) Trace Collector) -tcollect-filter file Enable or disable the instrumentation of specified functions. (requires Intel(R) Trace Collector) OpenMP* and Parallel Processing ------------------------------- -openmp enable the compiler to generate multi-threaded code based on the OpenMP* directives -openmp-profile enable analysis of OpenMP application when the Intel(R) Thread Profiler is installed -openmp-stubs enables the user to compile OpenMP programs in sequential mode. The OpenMP directives are ignored and a stub OpenMP library is linked (sequential) -openmp-report{0|1|2} control the OpenMP parallelizer diagnostic level -openmp-lib choose which OpenMP library version to link with compat - use the GNU compatible OpenMP run-time libraries (DEFAULT) -openmp-link choose whether to link with the static or dynamic OpenMP libraries. Default is dynamic. -openmp-task choose which OpenMP tasking model to support omp - support OpenMP 3.0 tasking (DEFAULT) intel - support Intel taskqueuing -openmp-threadprivate choose which threadprivate implementation to use compat - use the GNU compatible thread local storage legacy - use the Intel compatible implementation (DEFAULT) -parallel enable the auto-parallelizer to generate multi-threaded code for loops that can be safely executed in parallel -par-report{0|1|2|3} control the auto-parallelizer diagnostic level -par-threshold[n] set threshold for the auto-parallelization of loops where n is an integer from 0 to 100 -[no-]par-runtime-control enable compiler to generate runtime control code for effective automatic parallelization -par-schedule-static[=n] Specifies a scheduling algorithm for DO loop iteration. Divides iterations into contiguous pieces. Size n if specified, equal sized pieces if not. -par-schedule-static-balanced[=n] Divides iterations into even-sized chunks. Size n if specified, equal sized pieces if not. -par-schedule-static-steal[=n] Divides iterations into even-sized chunks, but allows threads to steal parts of chunks from neighboring threads -par-schedule-dynamic[=n] Specifies a scheduling algorithm for DO loop iteration. Assigns iterations to threads in chunks dynamically. Chunk size is n iterations if specified, otherwise 1. -par-schedule-guided[=n] Specifies a scheduling algorithm for DO loop iteration. Indicates a minimum number of iterations. If specified, n is the minimum number, otherwise 1. -par-schedule-guided-analytical[=n] Divides iterations by using exponential distribution or dynamic distributions. -par-schedule-runtime Specifies a scheduling algorithm for DO loop iteration. Defers the scheduling decision until runtime. -par-schedule-auto Lets the compiler or run-time system determine the scheduling algorithm. -par-affinity=[,...][,][,] tune application performance by setting different thread affinity -par-num-threads= tune application performance by setting different number of threads Floating Point -------------- -fp-model enable floating point model variation [no-]except - enable/disable floating point semantics fast[=1|2] - enables more aggressive floating point optimizations precise - allows value-safe optimizations source - enables intermediates in source precision strict - enables -fp-model precise -fp-model except, disables contractions and enables pragma stdc fenv_access double - rounds intermediates in 53-bit (double) precision extended - rounds intermediates in 64-bit (extended) precision -fp-speculation= enable floating point speculations with the following conditions: fast - speculate floating point operations (DEFAULT) safe - speculate only when safe strict - same as off off - disables speculation of floating-point operations -pc32 set internal FPU precision to 24 bit significand -pc64 set internal FPU precision to 53 bit significand (DEFAULT) -pc80 set internal FPU precision to 64 bit significand -mp1 improve floating-point precision (speed impact less than -mp) -mieee-fp same as -mp, can be disabled with -mno-ieee-fp -[no-]prec-sqrt determine if certain square root optimizations are enabled -[no-]prec-div improve precision of FP divides (some speed impact) -[no-]fast-transcendentals generate a faster version of the transcendental functions -[no-]fp-port round fp results at assignments and casts (some speed impact) -fp-stack-check enable fp stack checking after every function/procedure call -rcd rounding mode to enable fast float-to-int conversions -[no-]ftz enable/disable flush denormal results to zero Inlining -------- -inline-level= control inline expansion: n=0 disable inlining n=1 inline functions declared with __inline, and perform C++ inlining n=2 inline any function, at the compiler's discretion -f[no-]inline inline functions declared with __inline, and perform C++ inlining -f[no-]inline-functions inline any function at the compiler's discretion -finline-limit= set maximum number of statements a function can have and still be considered for inlining -inline-min-size= set size limit for inlining small routines -no-inline-min-size no size limit for inlining small routines -inline-max-size= set size limit for inlining large routines -no-inline-max-size no size limit for inlining large routines -inline-max-total-size= maximum increase in size for inline function expansion -no-inline-max-total-size no size limit for inline function expansion -inline-max-per-routine= maximum number of inline instances in any function -no-inline-max-per-routine no maximum number of inline instances in any function -inline-max-per-compile= maximum number of inline instances in the current compilation -no-inline-max-per-compile no maximum number of inline instances in the current compilation -inline-factor= set inlining upper limits by n percentage -no-inline-factor do not set set inlining upper limits -inline-forceinline treat inline routines as forceinline -inline-calloc directs the compiler to inline calloc() calls as malloc()/memset() Output, Debug, PCH ------------------ -c compile to object (.o) only, do not link -S compile to assembly (.s) only, do not link -fsource-asm produce assembly file with optional source annotations (requires -S) -f[no-]verbose-asm produce assembly file with compiler comments (DEFAULT) (requires -S) -fcode-asm produce assembly file with optional code annotations (requires -S) -use-msasm support Microsoft* style assembly language insertion using MASM style syntax -o name output file -g produce symbolic debug information in object file (implies -O0 when another optimization option is not explicitly set) -debug [keyword] enable debug information and control output of enhanced debug information keywords: all, full, minimal, none, [no]inline-debug-info [no]variable-locations, [no]semantic-stepping, extended parallel [no]expr-source-pos -g0 disable generation of symbolic debug information -gdwarf-2 enable generation of debug information using the DWARF2 format -ftrapuv trap uninitialized variables -map-opts enable option mapping tool -print-multi-lib print information about libraries being used -pch-create create precompiled header file -pch-use use precompiled header file -pch enable automatic precompiled header file creation/usage -pch-dir name precompiled header directory Preprocessor ------------ -A[] create an assertion having value -C do not strip comments -D[=] define macro -U remove predefined macro -E preprocess to stdout -EP preprocess to stdout, omitting #line directives -P preprocess to file, omitting #line directives -I add directory to include file search path -idirafter add directory to the second include file search path (after -I) -isystem add directory to the start of the system include path -X, -nostdinc remove standard directories from include file search path -nostdinc++ remove standard C++ directories from include file search path -iprefix use with -iwithprefix as a prefix -iwithprefix append to the prefix passed in by -iprefix and put it on the include search path at the end of the include directories -iwithprefixbefore similar to -iwithprefix except the include directory is placed in the same place as -I command line include directories -iquote add directory to the front of the include file search path for files included with quotes, but not brackets -imacros treat as an #include file, but throw away all preprocessing while macros defined remain defined -H print include file order -B find libraries, headers and executables in -M generate makefile dependency information -MM similar to -M, but do not include system header files -MG similar to -M, but treat missing header files as generated files -MD preprocess and compile, generating output file containing dependency information ending with extension .d -MMD similar to -MD, but do not include system header files -MF generate makefile dependency information in file (must specify -M or -MM) -MP add a phony target for each dependency -MT change the default target rule for dependency generation -MQ same as -MT, but quotes special Make characters -dM output macro definitions in effect after preprocessing (use with -E) -dD same as -dM, but output #define directives in preprocessed source -dN same as -dD, but #define directives contain only macro names -gcc Predefine the "__GNUC__", "__GNUC_MINOR__", and "__GNUC_PATCHLEVEL__" macros (DEFAULT) -no-gcc Do not predefine GNUC macros listed in -gcc mode. Warning: can prevent correct system header compilation, see -gcc-sys -gcc-sys same as -no-gcc, except that the GNU macros are defined only while preprocessing the system include headers -no-icc do not predefine the "__ICC" and "__INTEL_COMPILER" macros. Warning: can prevent correct Intel header compilation -pragma-optimization-level=[Intel|GCC] process #pragma optimize using Intel (DEFAULT) or GCC syntax Component Control ----------------- -Qoption,, pass options to tool specified by -Qlocation,, set as the location of tool specified by -Qinstall set as root of compiler installation Language -------- -std= enable language support for , as described below c99 enable C99 support for C programs c++0x enable preliminary support for some C++0x features -x all source files found subsequent to -x will be recognized as one of the following types: c - C source file c++ - C++ source file c-header - C header file cpp-output - C pre-processed file c++-cpp-output - C++ pre-processed file assembler - assembly file assembler-with-cpp - assembly file that needs to be preprocessed none - revert to original file extension -ansi equivalent to GNU -ansi -strict-ansi strict ANSI conformance dialect -Zp[n] specify alignment constraint for structures where n=1,2,4,8,16. 16 is the default -fsyntax-only perform syntax and semantic checking only (no object file produced) -fpermissive allows extensions for some non-conformant code -funsigned-char change default char type to unsigned -fshort-enums allocate as many bytes as needed for enumerated types -f[no-]unsigned-bitfields change default bitfield type to unsigned -fno-rtti disable RTTI support -fno-implicit-templates never emit code for non-inline templates which are instantiated implicitly; only emit code for explicit instantiations -fno-implicit-inline-templates do not emit code for implicit instantiations of inline templates -ftemplate-depth-[n] control the depth in which recursive templates are expanded -[no]align analyze and reorder memory layout for variables and arrays -[no-]restrict enable/disable the 'restrict' keyword for disambiguating pointers -[no-]early-template-check enable/disable (DEFAULT) semantic checking of function template prototypes (before instantiation). Requires -gcc-version=340 or later -[no-]check-uninit check for uninitialized variables -export enable the export template feature -export-dir add directory to export template search path -help-pragma output supported pragmas and their usage syntax Compiler Diagnostics -------------------- -w disable all warnings -w control diagnostics n = 0 display errors (same as -w) n = 1 display warnings and errors (DEFAULT) n = 2 display remarks, warnings and errors -Wbrief print brief one-line diagnostics -Werror force warnings to be reported as errors -Werror-all force warnings and remarks to be reported as errors -Wall enable all warnings -Wcheck enable more strict diagnostics -Weffc++ enable effective C++ diagnostic warnings -wo[,,...] issue diagnostics L1 through LN only once -W[no-]fatal-errors ends compilation after the first error encountered -W[no-]format enable argument checking for calls to printf, scanf, etc -W[no-]format-security warn for uses of format strings and specifiers in printf, scanf, etc that may introduce security problems -W[no-]missing-declarations warn for global functions and variables without prior declaration -W[no-]missing-prototypes warn for missing prototypes -W[no-]strict-aliasing warn for code that might violate the optimizer's strict aliasing rules. Warnings are issued only when using -fstrict-aliasing or -ansi-alias. -W[no-]strict-prototypes warn for functions declared or defined without specified argument types -W[no-]pointer-arith warn for questionable pointer arithmetic -W[no-]uninitialized warn if a variable is used before being initialized -Winline enable inline diagnostics -W[no-]deprecated print warnings related to deprecated features -W[no-]abi warn if generated code is not C++ ABI compliant -Wcontext-limit= set maximum number of template instantiation contexts shown in diagnostic -Wcast-qual warn if cast is used to override pointer type qualifier -W[no-]unused-function warn if declared function is not used -W[no-]unknown-pragmas warn if an unknown #pragma directive is used (DEFAULT) -W[no-]main warn if return type of main is not expected -W[no-]comment[s] warn when comment -W[no-]conversion warn for implicit conversions that may alter a value -W[no-]return-type warn when a function uses the default int return type and warn when a return statement is used in a void function -W[no-]extra-tokens warn about extra tokens after prepreprocessor directives -W[no-]pragma-once warn about the use of #pragma once -W[no-]shadow warn when a variable declaration hides a previous declaration -Woverloaded-virtual warn when a function declaration hides virtual functions from a base class -W[no-]trigraphs warn about the recognition and conversion of trigraphs -W[no-]multichar warn if a multicharacter constant ('ABC') is used -W[no-]overflow warn for operations that could result in integer overflow -Wwrite-strings Issues a diagnostic message if const char * is converted to (non-const) char *. -Wp64 print diagnostics for 64-bit porting -W[no-]shorten-64-to-32 warn for values implicitly converted from a 64-bit to a 32-bit type. Similar to -Wp64 -[no]traceback specify whether the compiler generates data to allow for source file traceback information at runtime (only to be used when linking with Fortran programs) -noerror-limit set no maximum number on error-level or fatal-level error messages -diag-enable [,,...] enable the specified diagnostics or diagnostic groups -diag-disable [,,...] disable the specified diagnostics or diagnostic groups where may be individual diagnostic numbers or group names. where group names include: sc[n] - perform source code analysis: n=1 for critical errors, n=2 for all errors and n=3 for all errors and warnings sc-include - perform source code analysis on include files sc-parallel[n] - perform analysis of parallelization in source code: n=1 for critical errors, n=2 for errors, n=3 for all errors and warnings thread - enable diagnostics to aid in thread-enabling source port-win - enable diagnostics for GNU extensions that may cause errors when porting to Windows -diag-error [,,...] output the specified diagnostics or diagnostic groups as errors -diag-warning [,,...] output the specified diagnostics or diagnostic groups as warnings -diag-remark [,,...] output the the specified diagnostics or diagnostic groups as remarks -diag-dump display the currently enabled diagnostic messages to stdout or to a specified diagnostic output file. -diag-file[=] where diagnostics are emitted to. Not specifying this causes messages to be output to stderr -diag-file-append[=] where diagnostics are emitted to. When already exists, output is appended to the file -[no-]diag-id-numbers enable(DEFAULT)/disable the diagnostic specifiers to be output in numeric form -diag-error-limit specify the maximum number of errors emitted -diag-once [,,...] issue diagnostics v1 through vN only once Miscellaneous ------------- -V display compiler version information -dumpversion display the compiler version number only -dumpmachine display the target machine only --version display GCC style version information -[no-]sox enable/disable(DEFAULT) saving of compiler options and version in the executable -save-temps store the intermediate files in current directory and name them based on the source file. Only saves files that are generated by default -dryrun show driver tool commands but do not execute tools -v show driver tool commands and execute tools -[no-]multibyte-chars provide support for multi-byte characters -multiple-processes[=] create multiple processes that can be used to compile large numbers of source files at the same time Data ---- -Zp[n] specify alignment constraint for structures (n=1,2,4,8,16 -Zp16 DEFAULT) -[no]align analyze and reorder memory layout for variables and arrays -fminshared Compilation is for the main executable. Absolute addressing can be used and non-position independent code generated for symbols that are at least protected -fcommon Enables the compiler to treat common variables as if they were defined. That in turn allows the use of gprel addressing of common data variables. -fno-common disables -freg-struct-return return struct and union values in registers when possible -fstack-security-check enable overflow security checks. -f[no-]stack-security-check disables (DEFAULT) -fstack-protector enable stack overflow security checks. -f[no-]stack-protector disables (DEFAULT) -fpic, -fPIC generate position independent code (-fno-pic/-fno-PIC is DEFAULT) -fpie, -fPIE generate position independent code that will be linked into an executable (-fno-pie/-fno-PIE is DEFAULT) -[no-]global-hoist enable(DEFAULT)/disable external globals are load safe -f[no-]keep-static-consts enable/disable(DEFAULT) emission of static const variables even when not referenced -fpack-struct pack structure members together -f[no-]math-errno set ERRNO after calling standard math library functions -no-bss-init disable placement of zero-initialized variables in BSS (use DATA) -falign-functions=[2|16] align the start of functions on a 2 (DEFAULT) or 16 byte boundary -falign-functions align the start of functions to an optimal machine-dependent value. -fno-align-functions (DEFAULT) aligns on a 2-byte boundary -falign-stack= stack alignment method to use on entry to routines default - use default heuristics maintain-16-byte - do not assume any specific alignment, but maintain alignment in case the stack is already aligned assume-16-byte - assume the stack is aligned on 16-byte boundaries -fvisibility=[extern|default|protected|hidden|internal] Global symbols (data and functions) will get the visibility attribute given by default. Symbol visibility attributes explicitly set in the source code or using the symbol visibility attribute file options will override the -fvisibility setting -fvisibility-extern= Space separated symbols listed in the argument will geti visibility set to extern -fvisibility-default= Space separated symbols listed in the argument will get visibility set to default -fvisibility-protected= Space separated symbols listed in the argument will get visibility set to protected -fvisibility-hidden= Space separated symbols listed in the argument will get visibility set to hidden -fvisibility-internal= Space separated symbols listed in the argument will get visibility set to internal -fvisibility-inlines-hidden mark inline member functions as hidden Compatibility ------------- -gcc-name= name and location of gcc if not where expected -gxx-name= name and location of g++ if not where expected -gcc-version= specify the of gcc compatibility. Default value matches gcc version installed. Major/Minor versions listed but patch levels (i.e. 345) are permissible 320 - gcc 3.2.x compatibility 330 - gcc 3.3.x compatibility 340 - gcc 3.4.x compatibility 400 - gcc 4.0.x compatibility 410 - gcc 4.1.x compatibility 420 - gcc 4.2.x compatibility -fabi-version= directs the compiler to select a specific ABI implementation 0 - most recent ABI implementation 1 - g++ 3.2 compatible ABI implementation 2 - most conformant ABI implementation Linking/Linker -------------- -L instruct linker to search for libraries -l instruct the linker to link in the -l library -shared-intel link Intel provided libraries dynamically -static-intel link Intel provided libraries statically -shared-libgcc link libgcc dynamically -static-libgcc link libgcc statically -dynamic-linker select dynamic linker other than the default -no-cxxlib do not link in C++ runtime libraries -cxxlib[=dir] link using C++ run-time libraries provided with gcc dir is an optional top-level location for the gcc binaries and libraries -nodefaultlibs do not use standard libraries when linking -nostartfiles do not use standard startup files when linking -nostdlib do not use standard libraries and startup files when linking -static prevents linking with shared libraries -shared produce a shared object -Bstatic specify following libraries are linked statically -Bdynamic specify following libraries are linked dynamically -pthread use POSIX* thread library for multithreading support -cxxlib- tell the compiler which C++ run-time libraries to use nostd - do not link in standard C++ library -u pretend the is undefined -T direct linker to read link commands from -Xlinker pass directly to the linker for processing -Wa,[,,...] pass options o1, o2, etc. to the assembler -Wl,[,,...] pass options o1, o2, etc. to the linker for processing -Wp,[,,...] pass options o1, o2, etc. to the preprocessor Deprecated Options ------------------ -Ob use -inline-level= -cxxlib-gcc[=dir] use -cxxlib[=dir] -i-dynamic use -shared-intel -i-static use -static-intel -inline-debug-info use -debug inline-debug-info -mp use -fp-model -use-asm no replacement -A- use -U -prefetch use -opt-prefetch -prof-genx use -prof-gen=srcpos -openmp-lib=legacy use -openmp-lib=compat -xB use -xSSE2 (i32 only) -xK use -xSSE (i32 only) -axK No replacement -xW use -msse2 -axW use -msse2 -xN use -xSSE2 -axN use -axSSE2 -xP use -xSSE3 -axP use -axSSE3 -xT use -xSSSE3 -axT use -axSSSE3 -xS use -xSSE4.1 -axS use -axSSE4.1 -xO use -msse3 -func-groups use -prof-func-groups -diag-enable sv use -diag-enable sc -diag-enable sv-include use -diag-enable sc-include -diag-disable sv use -diag-disable sc -diag-sv use -diag-enable sc -diag-sv-error use -diag-disable warning -diag-sv-include use -diag-enable sc-include -diag-sv-level No replacement -diag-sv-sup use -diag-disable [,,...] -alias-args use -fargument-alias -c99 use -std=c99 -create-pch use -pch-create -fwritable-strings no replacement -Kc++ use -x c++ -no-alias-args use -fargument-noalias -use-pch use -pch-use -wn use -diag-error-limit -wd use -diag-disable -we use -diag-error -ww use -diag-warning -wr use -diag-remark -wo use -diag-once -help [category] print full or category help message Valid categories include advanced - Advanced Optimizations codegen - Code Generation compatibility - Compatibility component - Component Control data - Data deprecated - Deprecated Options diagnostics - Compiler Diagnostics float - Floating Point help - Help inline - Inlining ipo - Interprocedural Optimization (IPO) language - Language link - Linking/Linker misc - Miscellaneous opt - Optimization output - Output pgo - Profile Guided Optimization (PGO) preproc - Preprocessor reports - Optimization Reports openmp - OpenMP and Parallel Processing Copyright (C) 1985-2009, Intel Corporation. All rights reserved. * Other brands and names are the property of their respective owners. sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc --help Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc --help sh: Intel(R) C++ Compiler Help ========================== usage: icc [options] file1 [file2 ...] icpc [options] file1 [file2 ...] where options represents zero or more compiler options fileN is a C/C++ source (.C .c .cc .cpp .cxx .c++ .i .ii), assembly (.s .S), object (.o), static library (.a), or other linkable file The icpc command uses the same compiler options as the icc command. Invoking the compiler using icpc compiles .c and .i files as C++. Invoking the compiler using icc compiles .c and .i files as C. Using icpc always links in C++ libraries. Using icc only links in C++ libraries if C++ source is provided on the command line. Commonly used options may be placed in the icc .cfg file. Some options listed are only available on a specific system i32 indicates the feature is available on systems based on IA-32 architecture i64em indicates the feature is available on systems using Intel(R) 64 architecture Compiler Option List -------------------- Optimization ------------ -O1 optimize for maximum speed, but disable some optimizations which increase code size for a small speed benefit -O2 optimize for maximum speed (DEFAULT) -O3 optimize for maximum speed and enable more aggressive optimizations that may not improve performance on some programs -O same as -O2 -Os enable speed optimizations, but disable some optimizations which increase code size for small speed benefit -O0 disable optimizations -fast enable -xHOST -O3 -ipo -no-prec-div -static options set by -fast cannot be overridden with the exception of -xHOST, list options separately to change behavior -fno-alias assume no aliasing in program -fno-fnalias assume no aliasing within functions, but assume aliasing across calls -f[no-]builtin disable inline expansion of intrinsic functions -fno-builtin- disable the intrinsic -ffunction-sections separate functions for the linker (COMDAT) -fdata-sections same as -ffunction-sections -nolib-inline disable inline expansion of intrinsic functions Code Generation --------------- -x[,,...] generate specialized code to run exclusively on processors indicated by as described below Host generate instructions for the highest instruction set and processor available on the compilation host machine SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSE3_ATOM Can generate MOVBE instructions for Intel processors and can optimize for the Intel(R) Atom(TM) processor. SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for SSE4 Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -ax[,,...] generate code specialized for processors specified by while also generating generic IA-32 instructions. includes one or more of the following: SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -mcpu= same as -mtune= -mtune= optimize for a specific pentium3 - optimize for Pentium(R) III processors pentium4 - optimize for Pentium(R) 4 processor (DEFAULT) -march= generate code exclusively for a given pentium3 - streaming SIMD extensions pentium4 - Pentium(R) 4 New Instructions -mia32 generates code which will run on any Intel Pentium or later processor. Disables any default extended instruction settings, and any previously set extended instruction settings. -msse generate code for Intel Pentium III and compatible Intel processors -msse2 generate code for Intel Pentium 4 and compatible Intel processors -msse3 generate code for Intel(R) Core(TM) Duo processors, Intel(R) Core(TM) Solo processors, Intel Pentium 4 and compatible Intel processors with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support -mssse3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) -msse4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions -minstruction= Refine instruction set output for the selected target processor [no]movbe - Do/do not generate MOVBE instructions with SSE3_ATOM (requires -xSSE3_ATOM) -f[no-]omit-frame-pointer enable(DEFAULT)/disable use of EBP as general purpose register. -fno-omit-frame-pointer replaces -fp -f[no-]exceptions enable/disable(DEFAULT) C++ exception handling table generation -fnon-call-exceptions enable/disable(DEFAULT) code that allows exceptions from trapping instructions to be caught Interprocedural Optimization (IPO) ---------------------------------- -[no-]ip enable(DEFAULT)/disable single-file IP optimization within files -ipo[n] enable multi-file IP optimization between files -ipo-c generate a multi-file object file (ipo_out.o) -ipo-S generate a multi-file assembly file (ipo_out.S) -ip-no-inlining disable full and partial inlining -ip-no-pinlining disable partial inlining -ipo-separate create one object file for every source file (overrides -ipo[n]) -ipo-jobs specify the number of jobs to be executed simultaneously during the IPO link phase Advanced Optimizations ---------------------- -unroll[n] set maximum number of times to unroll loops. Omit n to use default heuristics. Use n=0 to disable the loop unroller -[no-]unroll-aggressive enables more aggressive unrolling heuristics -funroll-loops unroll loops based on default heuristics -[no-]scalar-rep enable(DEFAULT)/disable scalar replacement (requires -O3) -[no-]ansi-alias enable/disable(DEFAULT) use of ANSI aliasing rules optimizations; user asserts that the program adheres to these rules -[no-]complex-limited-range enable/disable(DEFAULT) the use of the basic algebraic expansions of some complex arithmetic operations. This can allow for some performance improvement in programs which use a lot of complex arithmetic at the loss of some exponent range. -[no-]alias-const enable/disable(DEFAULT) a heuristic stating that if two arguments to a function have pointer type, a pointer to const does not alias a pointer to non-const. Also known as the input/output buffer rule, it assumes that input and output buffer arguments do not overlap. -fargument-alias arguments may alias each other and may alias global storage -fargument-noalias arguments do not alias each other but may alias global storage -fargument-noalias-global arguments do not alias each other and do not alias global storage -ftls-model= change thread-local storage model, where can be the following: global-dynamic, local-dynamic, initial-exec or local-exec -[no-]opt-multi-version-aggressive enables more aggressive multi-versioning to check for pointer aliasing and scalar replacement -opt-ra-region-strategy[=] select the method that the register allocator uses to partition each routine into regions routine - one region per routine block - one region per block trace - one region per trace loop - one region per loop default - compiler selects best option -[no-]vec enables(DEFAULT)/disables vectorization -[no-]vec-guard-write enables cache/bandwidth optimization for stores under conditionals within vector loops -vec-threshold[n] sets a threshold for the vectorization of loops based on the probability of profitable execution of the vectorized loop in parallel -opt-malloc-options={0|1|2|3|4} specify malloc configuration parameters. Specifying a non-zero value will cause alternate configuration parameters to be set for how malloc allocates and frees memory -opt-calloc enable/disable(DEFAULT) calls to fast calloc function -opt-jump-tables= control the generation of jump tables default - let the compiler decide when a jump table, a series of if-then-else constructs or a combination is generated large - generate jump tables up to a certain pre-defined size (64K entries) - generate jump tables up to in size use -no-opt-jump-tables to lower switch statements as chains of if-then-else constructs -fno-jump-tables do not generate jump tables for switches and if-then-else statements -opt-block-factor= specify blocking factor for loop blocking -ffreestanding compile in a freestanding environment where the standard library may not be present -opt-streaming-stores specifies whether streaming stores are generated always - enables generation of streaming stores under the assumption that the application is memory bound auto - compiler decides when streaming stores are used (DEFAULT) never - disables generation of streaming stores -ipp[=] link some or all of the Intel(R) Integrated Performance Primitives (Intel(R) IPP) libraries and bring in the associated headers common - link using the main libraries set. This is the default value when -ipp is specified crypto - link using the main libraries set and the crypto library nonpic - link using the version of the libraries that do not have position independent code nonpic_crypto - link using the crypto library and the version of the libraries that do not have position independent code -mkl[=] link to the Intel(R) Math Kernel Library (Intel(R) MKL) and bring in the associated headers parallel - link using the threaded Intel(R) MKL libraries. This is the default when -mkl is specified sequential - link using the non-threaded Intel(R) MKL libraries cluster - link using the Intel(R) MKL Cluster libraries plus the sequential Intel(R) MKL libraries -tbb link to the Intel(R) Threading Building Blocks (Intel(R) TBB) libraries and bring in the associated headers -[no-]opt-subscript-in-range assumes no overflows in the intermediate computation of the subscripts -[no-]use-intel-optimized-headers take advantage of the optimized header files Profile Guided Optimization (PGO) --------------------------------- -prof-dir specify directory for profiling output files (*.dyn and *.dpi) -prof-src-root specify project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -prof-src-root-cwd specify the current directory as the project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -[no-]prof-src-dir specify whether directory names of sources should be considered when looking up profile records within the .dpi file -prof-file specify file name for profiling summary file -[no-]prof-data-order enable/disable(DEFAULT) static data ordering with profiling -[no-]prof-func-order enable/disable(DEFAULT) function ordering with profiling -[no-]prof-func-groups enable(DEFAULT with PGO)/disable function grouping -prof-gen[=keyword] instrument program for profiling. Optional keyword may be srcpos or globdata -no-prof-gen disable profiling instrumentation -prof-use[=] enable use of profiling information during optimization weighted - invokes profmerge with -weighted option to scale data based on run durations [no]merge - enable(default)/disable the invocation of the profmerge tool -no-prof-use disable use of profiling information during optimization -opt-prefetch[=n] enable levels of prefetch insertion, where 0 disables. n may be 0 through 4 inclusive. Default is 2. -no-opt-prefetch disable(DEFAULT) prefetch insertion. Equivalent to -opt-prefetch=0 -p compile and link for function profiling with UNIX gprof tool On IA32 and Intel(r)64, -pg is also valid -f[no-]instrument-functions determine whether function entry and exit points are instrumented -prof-hotness-threshold= set the hotness threshold for function grouping and function ordering val indicates percentage of functions to be placed in hot region. This option requires -prof-use and -prof-func-groups or -prof-func-order Optimization Reports -------------------- -vec-report[n] control amount of vectorizer diagnostic information n=0 no diagnostic information n=1 indicate vectorized loops (DEFAULT) n=2 indicate vectorized/non-vectorized loops n=3 indicate vectorized/non-vectorized loops and prohibiting data dependence information n=4 indicate non-vectorized loops n=5 indicate non-vectorized loops and prohibiting data dependence information -opt-report [n] generate an optimization report to stderr 0 disable optimization report output 1 minimum report output 2 medium output (DEFAULT when enabled) 3 maximum report output -opt-report-file= specify the filename for the generated report -opt-report-phase= specify the phase that reports are generated against -opt-report-routine= reports on routines containing the given name -opt-report-help display the optimization phases available for reporting -tcheck [mode] enable analysis of threaded applications (requires Intel(R) Thread Checker; cannot be used with compiler alone) tci - instruments a program to perform a thread-count-independent analysis tcd - instruments a program to perform a thread-count-dependent analysis (DEFAULT when mode is not used) api - instruments a program at the api-imports level -tprofile generate instrumentation to analyze multi-threading performance (requires Intel(R) Thread Profiler; cannot be used with compiler alone) -tcollect[=] inserts instrumentation probes calling the Intel(R) Trace Collector API. The library -l is linked in the default being -lVT (requires Intel(R) Trace Collector) -tcollect-filter file Enable or disable the instrumentation of specified functions. (requires Intel(R) Trace Collector) OpenMP* and Parallel Processing ------------------------------- -openmp enable the compiler to generate multi-threaded code based on the OpenMP* directives -openmp-profile enable analysis of OpenMP application when the Intel(R) Thread Profiler is installed -openmp-stubs enables the user to compile OpenMP programs in sequential mode. The OpenMP directives are ignored and a stub OpenMP library is linked (sequential) -openmp-report{0|1|2} control the OpenMP parallelizer diagnostic level -openmp-lib choose which OpenMP library version to link with compat - use the GNU compatible OpenMP run-time libraries (DEFAULT) -openmp-link choose whether to link with the static or dynamic OpenMP libraries. Default is dynamic. -openmp-task choose which OpenMP tasking model to support omp - support OpenMP 3.0 tasking (DEFAULT) intel - support Intel taskqueuing -openmp-threadprivate choose which threadprivate implementation to use compat - use the GNU compatible thread local storage legacy - use the Intel compatible implementation (DEFAULT) -parallel enable the auto-parallelizer to generate multi-threaded code for loops that can be safely executed in parallel -par-report{0|1|2|3} control the auto-parallelizer diagnostic level -par-threshold[n] set threshold for the auto-parallelization of loops where n is an integer from 0 to 100 -[no-]par-runtime-control enable compiler to generate runtime control code for effective automatic parallelization -par-schedule-static[=n] Specifies a scheduling algorithm for DO loop iteration. Divides iterations into contiguous pieces. Size n if specified, equal sized pieces if not. -par-schedule-static-balanced[=n] Divides iterations into even-sized chunks. Size n if specified, equal sized pieces if not. -par-schedule-static-steal[=n] Divides iterations into even-sized chunks, but allows threads to steal parts of chunks from neighboring threads -par-schedule-dynamic[=n] Specifies a scheduling algorithm for DO loop iteration. Assigns iterations to threads in chunks dynamically. Chunk size is n iterations if specified, otherwise 1. -par-schedule-guided[=n] Specifies a scheduling algorithm for DO loop iteration. Indicates a minimum number of iterations. If specified, n is the minimum number, otherwise 1. -par-schedule-guided-analytical[=n] Divides iterations by using exponential distribution or dynamic distributions. -par-schedule-runtime Specifies a scheduling algorithm for DO loop iteration. Defers the scheduling decision until runtime. -par-schedule-auto Lets the compiler or run-time system determine the scheduling algorithm. -par-affinity=[,...][,][,] tune application performance by setting different thread affinity -par-num-threads= tune application performance by setting different number of threads Floating Point -------------- -fp-model enable floating point model variation [no-]except - enable/disable floating point semantics fast[=1|2] - enables more aggressive floating point optimizations precise - allows value-safe optimizations source - enables intermediates in source precision strict - enables -fp-model precise -fp-model except, disables contractions and enables pragma stdc fenv_access double - rounds intermediates in 53-bit (double) precision extended - rounds intermediates in 64-bit (extended) precision -fp-speculation= enable floating point speculations with the following conditions: fast - speculate floating point operations (DEFAULT) safe - speculate only when safe strict - same as off off - disables speculation of floating-point operations -pc32 set internal FPU precision to 24 bit significand -pc64 set internal FPU precision to 53 bit significand (DEFAULT) -pc80 set internal FPU precision to 64 bit significand -mp1 improve floating-point precision (speed impact less than -mp) -mieee-fp same as -mp, can be disabled with -mno-ieee-fp -[no-]prec-sqrt determine if certain square root optimizations are enabled -[no-]prec-div improve precision of FP divides (some speed impact) -[no-]fast-transcendentals generate a faster version of the transcendental functions -[no-]fp-port round fp results at assignments and casts (some speed impact) -fp-stack-check enable fp stack checking after every function/procedure call -rcd rounding mode to enable fast float-to-int conversions -[no-]ftz enable/disable flush denormal results to zero Inlining -------- -inline-level= control inline expansion: n=0 disable inlining n=1 inline functions declared with __inline, and perform C++ inlining n=2 inline any function, at the compiler's discretion -f[no-]inline inline functions declared with __inline, and perform C++ inlining -f[no-]inline-functions inline any function at the compiler's discretion -finline-limit= set maximum number of statements a function can have and still be considered for inlining -inline-min-size= set size limit for inlining small routines -no-inline-min-size no size limit for inlining small routines -inline-max-size= set size limit for inlining large routines -no-inline-max-size no size limit for inlining large routines -inline-max-total-size= maximum increase in size for inline function expansion -no-inline-max-total-size no size limit for inline function expansion -inline-max-per-routine= maximum number of inline instances in any function -no-inline-max-per-routine no maximum number of inline instances in any function -inline-max-per-compile= maximum number of inline instances in the current compilation -no-inline-max-per-compile no maximum number of inline instances in the current compilation -inline-factor= set inlining upper limits by n percentage -no-inline-factor do not set set inlining upper limits -inline-forceinline treat inline routines as forceinline -inline-calloc directs the compiler to inline calloc() calls as malloc()/memset() Output, Debug, PCH ------------------ -c compile to object (.o) only, do not link -S compile to assembly (.s) only, do not link -fsource-asm produce assembly file with optional source annotations (requires -S) -f[no-]verbose-asm produce assembly file with compiler comments (DEFAULT) (requires -S) -fcode-asm produce assembly file with optional code annotations (requires -S) -use-msasm support Microsoft* style assembly language insertion using MASM style syntax -o name output file -g produce symbolic debug information in object file (implies -O0 when another optimization option is not explicitly set) -debug [keyword] enable debug information and control output of enhanced debug information keywords: all, full, minimal, none, [no]inline-debug-info [no]variable-locations, [no]semantic-stepping, extended parallel [no]expr-source-pos -g0 disable generation of symbolic debug information -gdwarf-2 enable generation of debug information using the DWARF2 format -ftrapuv trap uninitialized variables -map-opts enable option mapping tool -print-multi-lib print information about libraries being used -pch-create create precompiled header file -pch-use use precompiled header file -pch enable automatic precompiled header file creation/usage -pch-dir name precompiled header directory Preprocessor ------------ -A[] create an assertion having value -C do not strip comments -D[=] define macro -U remove predefined macro -E preprocess to stdout -EP preprocess to stdout, omitting #line directives -P preprocess to file, omitting #line directives -I add directory to include file search path -idirafter add directory to the second include file search path (after -I) -isystem add directory to the start of the system include path -X, -nostdinc remove standard directories from include file search path -nostdinc++ remove standard C++ directories from include file search path -iprefix use with -iwithprefix as a prefix -iwithprefix append to the prefix passed in by -iprefix and put it on the include search path at the end of the include directories -iwithprefixbefore similar to -iwithprefix except the include directory is placed in the same place as -I command line include directories -iquote add directory to the front of the include file search path for files included with quotes, but not brackets -imacros treat as an #include file, but throw away all preprocessing while macros defined remain defined -H print include file order -B find libraries, headers and executables in -M generate makefile dependency information -MM similar to -M, but do not include system header files -MG similar to -M, but treat missing header files as generated files -MD preprocess and compile, generating output file containing dependency information ending with extension .d -MMD similar to -MD, but do not include system header files -MF generate makefile dependency information in file (must specify -M or -MM) -MP add a phony target for each dependency -MT change the default target rule for dependency generation -MQ same as -MT, but quotes special Make characters -dM output macro definitions in effect after preprocessing (use with -E) -dD same as -dM, but output #define directives in preprocessed source -dN same as -dD, but #define directives contain only macro names -gcc Predefine the "__GNUC__", "__GNUC_MINOR__", and "__GNUC_PATCHLEVEL__" macros (DEFAULT) -no-gcc Do not predefine GNUC macros listed in -gcc mode. Warning: can prevent correct system header compilation, see -gcc-sys -gcc-sys same as -no-gcc, except that the GNU macros are defined only while preprocessing the system include headers -no-icc do not predefine the "__ICC" and "__INTEL_COMPILER" macros. Warning: can prevent correct Intel header compilation -pragma-optimization-level=[Intel|GCC] process #pragma optimize using Intel (DEFAULT) or GCC syntax Component Control ----------------- -Qoption,, pass options to tool specified by -Qlocation,, set as the location of tool specified by -Qinstall set as root of compiler installation Language -------- -std= enable language support for , as described below c99 enable C99 support for C programs c++0x enable preliminary support for some C++0x features -x all source files found subsequent to -x will be recognized as one of the following types: c - C source file c++ - C++ source file c-header - C header file cpp-output - C pre-processed file c++-cpp-output - C++ pre-processed file assembler - assembly file assembler-with-cpp - assembly file that needs to be preprocessed none - revert to original file extension -ansi equivalent to GNU -ansi -strict-ansi strict ANSI conformance dialect -Zp[n] specify alignment constraint for structures where n=1,2,4,8,16. 16 is the default -fsyntax-only perform syntax and semantic checking only (no object file produced) -fpermissive allows extensions for some non-conformant code -funsigned-char change default char type to unsigned -fshort-enums allocate as many bytes as needed for enumerated types -f[no-]unsigned-bitfields change default bitfield type to unsigned -fno-rtti disable RTTI support -fno-implicit-templates never emit code for non-inline templates which are instantiated implicitly; only emit code for explicit instantiations -fno-implicit-inline-templates do not emit code for implicit instantiations of inline templates -ftemplate-depth-[n] control the depth in which recursive templates are expanded -[no]align analyze and reorder memory layout for variables and arrays -[no-]restrict enable/disable the 'restrict' keyword for disambiguating pointers -[no-]early-template-check enable/disable (DEFAULT) semantic checking of function template prototypes (before instantiation). Requires -gcc-version=340 or later -[no-]check-uninit check for uninitialized variables -export enable the export template feature -export-dir add directory to export template search path -help-pragma output supported pragmas and their usage syntax Compiler Diagnostics -------------------- -w disable all warnings -w control diagnostics n = 0 display errors (same as -w) n = 1 display warnings and errors (DEFAULT) n = 2 display remarks, warnings and errors -Wbrief print brief one-line diagnostics -Werror force warnings to be reported as errors -Werror-all force warnings and remarks to be reported as errors -Wall enable all warnings -Wcheck enable more strict diagnostics -Weffc++ enable effective C++ diagnostic warnings -wo[,,...] issue diagnostics L1 through LN only once -W[no-]fatal-errors ends compilation after the first error encountered -W[no-]format enable argument checking for calls to printf, scanf, etc -W[no-]format-security warn for uses of format strings and specifiers in printf, scanf, etc that may introduce security problems -W[no-]missing-declarations warn for global functions and variables without prior declaration -W[no-]missing-prototypes warn for missing prototypes -W[no-]strict-aliasing warn for code that might violate the optimizer's strict aliasing rules. Warnings are issued only when using -fstrict-aliasing or -ansi-alias. -W[no-]strict-prototypes warn for functions declared or defined without specified argument types -W[no-]pointer-arith warn for questionable pointer arithmetic -W[no-]uninitialized warn if a variable is used before being initialized -Winline enable inline diagnostics -W[no-]deprecated print warnings related to deprecated features -W[no-]abi warn if generated code is not C++ ABI compliant -Wcontext-limit= set maximum number of template instantiation contexts shown in diagnostic -Wcast-qual warn if cast is used to override pointer type qualifier -W[no-]unused-function warn if declared function is not used -W[no-]unknown-pragmas warn if an unknown #pragma directive is used (DEFAULT) -W[no-]main warn if return type of main is not expected -W[no-]comment[s] warn when comment -W[no-]conversion warn for implicit conversions that may alter a value -W[no-]return-type warn when a function uses the default int return type and warn when a return statement is used in a void function -W[no-]extra-tokens warn about extra tokens after prepreprocessor directives -W[no-]pragma-once warn about the use of #pragma once -W[no-]shadow warn when a variable declaration hides a previous declaration -Woverloaded-virtual warn when a function declaration hides virtual functions from a base class -W[no-]trigraphs warn about the recognition and conversion of trigraphs -W[no-]multichar warn if a multicharacter constant ('ABC') is used -W[no-]overflow warn for operations that could result in integer overflow -Wwrite-strings Issues a diagnostic message if const char * is converted to (non-const) char *. -Wp64 print diagnostics for 64-bit porting -W[no-]shorten-64-to-32 warn for values implicitly converted from a 64-bit to a 32-bit type. Similar to -Wp64 -[no]traceback specify whether the compiler generates data to allow for source file traceback information at runtime (only to be used when linking with Fortran programs) -noerror-limit set no maximum number on error-level or fatal-level error messages -diag-enable [,,...] enable the specified diagnostics or diagnostic groups -diag-disable [,,...] disable the specified diagnostics or diagnostic groups where may be individual diagnostic numbers or group names. where group names include: sc[n] - perform source code analysis: n=1 for critical errors, n=2 for all errors and n=3 for all errors and warnings sc-include - perform source code analysis on include files sc-parallel[n] - perform analysis of parallelization in source code: n=1 for critical errors, n=2 for errors, n=3 for all errors and warnings thread - enable diagnostics to aid in thread-enabling source port-win - enable diagnostics for GNU extensions that may cause errors when porting to Windows -diag-error [,,...] output the specified diagnostics or diagnostic groups as errors -diag-warning [,,...] output the specified diagnostics or diagnostic groups as warnings -diag-remark [,,...] output the the specified diagnostics or diagnostic groups as remarks -diag-dump display the currently enabled diagnostic messages to stdout or to a specified diagnostic output file. -diag-file[=] where diagnostics are emitted to. Not specifying this causes messages to be output to stderr -diag-file-append[=] where diagnostics are emitted to. When already exists, output is appended to the file -[no-]diag-id-numbers enable(DEFAULT)/disable the diagnostic specifiers to be output in numeric form -diag-error-limit specify the maximum number of errors emitted -diag-once [,,...] issue diagnostics v1 through vN only once Miscellaneous ------------- -V display compiler version information -dumpversion display the compiler version number only -dumpmachine display the target machine only --version display GCC style version information -[no-]sox enable/disable(DEFAULT) saving of compiler options and version in the executable -save-temps store the intermediate files in current directory and name them based on the source file. Only saves files that are generated by default -dryrun show driver tool commands but do not execute tools -v show driver tool commands and execute tools -[no-]multibyte-chars provide support for multi-byte characters -multiple-processes[=] create multiple processes that can be used to compile large numbers of source files at the same time Data ---- -Zp[n] specify alignment constraint for structures (n=1,2,4,8,16 -Zp16 DEFAULT) -[no]align analyze and reorder memory layout for variables and arrays -fminshared Compilation is for the main executable. Absolute addressing can be used and non-position independent code generated for symbols that are at least protected -fcommon Enables the compiler to treat common variables as if they were defined. That in turn allows the use of gprel addressing of common data variables. -fno-common disables -freg-struct-return return struct and union values in registers when possible -fstack-security-check enable overflow security checks. -f[no-]stack-security-check disables (DEFAULT) -fstack-protector enable stack overflow security checks. -f[no-]stack-protector disables (DEFAULT) -fpic, -fPIC generate position independent code (-fno-pic/-fno-PIC is DEFAULT) -fpie, -fPIE generate position independent code that will be linked into an executable (-fno-pie/-fno-PIE is DEFAULT) -[no-]global-hoist enable(DEFAULT)/disable external globals are load safe -f[no-]keep-static-consts enable/disable(DEFAULT) emission of static const variables even when not referenced -fpack-struct pack structure members together -f[no-]math-errno set ERRNO after calling standard math library functions -no-bss-init disable placement of zero-initialized variables in BSS (use DATA) -falign-functions=[2|16] align the start of functions on a 2 (DEFAULT) or 16 byte boundary -falign-functions align the start of functions to an optimal machine-dependent value. -fno-align-functions (DEFAULT) aligns on a 2-byte boundary -falign-stack= stack alignment method to use on entry to routines default - use default heuristics maintain-16-byte - do not assume any specific alignment, but maintain alignment in case the stack is already aligned assume-16-byte - assume the stack is aligned on 16-byte boundaries -fvisibility=[extern|default|protected|hidden|internal] Global symbols (data and functions) will get the visibility attribute given by default. Symbol visibility attributes explicitly set in the source code or using the symbol visibility attribute file options will override the -fvisibility setting -fvisibility-extern= Space separated symbols listed in the argument will geti visibility set to extern -fvisibility-default= Space separated symbols listed in the argument will get visibility set to default -fvisibility-protected= Space separated symbols listed in the argument will get visibility set to protected -fvisibility-hidden= Space separated symbols listed in the argument will get visibility set to hidden -fvisibility-internal= Space separated symbols listed in the argument will get visibility set to internal -fvisibility-inlines-hidden mark inline member functions as hidden Compatibility ------------- -gcc-name= name and location of gcc if not where expected -gxx-name= name and location of g++ if not where expected -gcc-version= specify the of gcc compatibility. Default value matches gcc version installed. Major/Minor versions listed but patch levels (i.e. 345) are permissible 320 - gcc 3.2.x compatibility 330 - gcc 3.3.x compatibility 340 - gcc 3.4.x compatibility 400 - gcc 4.0.x compatibility 410 - gcc 4.1.x compatibility 420 - gcc 4.2.x compatibility -fabi-version= directs the compiler to select a specific ABI implementation 0 - most recent ABI implementation 1 - g++ 3.2 compatible ABI implementation 2 - most conformant ABI implementation Linking/Linker -------------- -L instruct linker to search for libraries -l instruct the linker to link in the -l library -shared-intel link Intel provided libraries dynamically -static-intel link Intel provided libraries statically -shared-libgcc link libgcc dynamically -static-libgcc link libgcc statically -dynamic-linker select dynamic linker other than the default -no-cxxlib do not link in C++ runtime libraries -cxxlib[=dir] link using C++ run-time libraries provided with gcc dir is an optional top-level location for the gcc binaries and libraries -nodefaultlibs do not use standard libraries when linking -nostartfiles do not use standard startup files when linking -nostdlib do not use standard libraries and startup files when linking -static prevents linking with shared libraries -shared produce a shared object -Bstatic specify following libraries are linked statically -Bdynamic specify following libraries are linked dynamically -pthread use POSIX* thread library for multithreading support -cxxlib- tell the compiler which C++ run-time libraries to use nostd - do not link in standard C++ library -u pretend the is undefined -T direct linker to read link commands from -Xlinker pass directly to the linker for processing -Wa,[,,...] pass options o1, o2, etc. to the assembler -Wl,[,,...] pass options o1, o2, etc. to the linker for processing -Wp,[,,...] pass options o1, o2, etc. to the preprocessor Deprecated Options ------------------ -Ob use -inline-level= -cxxlib-gcc[=dir] use -cxxlib[=dir] -i-dynamic use -shared-intel -i-static use -static-intel -inline-debug-info use -debug inline-debug-info -mp use -fp-model -use-asm no replacement -A- use -U -prefetch use -opt-prefetch -prof-genx use -prof-gen=srcpos -openmp-lib=legacy use -openmp-lib=compat -xB use -xSSE2 (i32 only) -xK use -xSSE (i32 only) -axK No replacement -xW use -msse2 -axW use -msse2 -xN use -xSSE2 -axN use -axSSE2 -xP use -xSSE3 -axP use -axSSE3 -xT use -xSSSE3 -axT use -axSSSE3 -xS use -xSSE4.1 -axS use -axSSE4.1 -xO use -msse3 -func-groups use -prof-func-groups -diag-enable sv use -diag-enable sc -diag-enable sv-include use -diag-enable sc-include -diag-disable sv use -diag-disable sc -diag-sv use -diag-enable sc -diag-sv-error use -diag-disable warning -diag-sv-include use -diag-enable sc-include -diag-sv-level No replacement -diag-sv-sup use -diag-disable [,,...] -alias-args use -fargument-alias -c99 use -std=c99 -create-pch use -pch-create -fwritable-strings no replacement -Kc++ use -x c++ -no-alias-args use -fargument-noalias -use-pch use -pch-use -wn use -diag-error-limit -wd use -diag-disable -we use -diag-error -ww use -diag-warning -wr use -diag-remark -wo use -diag-once -help [category] print full or category help message Valid categories include advanced - Advanced Optimizations codegen - Code Generation compatibility - Compatibility component - Component Control data - Data deprecated - Deprecated Options diagnostics - Compiler Diagnostics float - Floating Point help - Help inline - Inlining ipo - Interprocedural Optimization (IPO) language - Language link - Linking/Linker misc - Miscellaneous opt - Optimization output - Output pgo - Profile Guided Optimization (PGO) preproc - Preprocessor reports - Optimization Reports openmp - OpenMP and Parallel Processing Copyright (C) 1985-2009, Intel Corporation. All rights reserved. * Other brands and names are the property of their respective owners. sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc --help Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc --help sh: Intel(R) C++ Compiler Help ========================== usage: icc [options] file1 [file2 ...] icpc [options] file1 [file2 ...] where options represents zero or more compiler options fileN is a C/C++ source (.C .c .cc .cpp .cxx .c++ .i .ii), assembly (.s .S), object (.o), static library (.a), or other linkable file The icpc command uses the same compiler options as the icc command. Invoking the compiler using icpc compiles .c and .i files as C++. Invoking the compiler using icc compiles .c and .i files as C. Using icpc always links in C++ libraries. Using icc only links in C++ libraries if C++ source is provided on the command line. Commonly used options may be placed in the icc .cfg file. Some options listed are only available on a specific system i32 indicates the feature is available on systems based on IA-32 architecture i64em indicates the feature is available on systems using Intel(R) 64 architecture Compiler Option List -------------------- Optimization ------------ -O1 optimize for maximum speed, but disable some optimizations which increase code size for a small speed benefit -O2 optimize for maximum speed (DEFAULT) -O3 optimize for maximum speed and enable more aggressive optimizations that may not improve performance on some programs -O same as -O2 -Os enable speed optimizations, but disable some optimizations which increase code size for small speed benefit -O0 disable optimizations -fast enable -xHOST -O3 -ipo -no-prec-div -static options set by -fast cannot be overridden with the exception of -xHOST, list options separately to change behavior -fno-alias assume no aliasing in program -fno-fnalias assume no aliasing within functions, but assume aliasing across calls -f[no-]builtin disable inline expansion of intrinsic functions -fno-builtin- disable the intrinsic -ffunction-sections separate functions for the linker (COMDAT) -fdata-sections same as -ffunction-sections -nolib-inline disable inline expansion of intrinsic functions Code Generation --------------- -x[,,...] generate specialized code to run exclusively on processors indicated by as described below Host generate instructions for the highest instruction set and processor available on the compilation host machine SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSE3_ATOM Can generate MOVBE instructions for Intel processors and can optimize for the Intel(R) Atom(TM) processor. SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for SSE4 Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -ax[,,...] generate code specialized for processors specified by while also generating generic IA-32 instructions. includes one or more of the following: SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -mcpu= same as -mtune= -mtune= optimize for a specific pentium3 - optimize for Pentium(R) III processors pentium4 - optimize for Pentium(R) 4 processor (DEFAULT) -march= generate code exclusively for a given pentium3 - streaming SIMD extensions pentium4 - Pentium(R) 4 New Instructions -mia32 generates code which will run on any Intel Pentium or later processor. Disables any default extended instruction settings, and any previously set extended instruction settings. -msse generate code for Intel Pentium III and compatible Intel processors -msse2 generate code for Intel Pentium 4 and compatible Intel processors -msse3 generate code for Intel(R) Core(TM) Duo processors, Intel(R) Core(TM) Solo processors, Intel Pentium 4 and compatible Intel processors with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support -mssse3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) -msse4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions -minstruction= Refine instruction set output for the selected target processor [no]movbe - Do/do not generate MOVBE instructions with SSE3_ATOM (requires -xSSE3_ATOM) -f[no-]omit-frame-pointer enable(DEFAULT)/disable use of EBP as general purpose register. -fno-omit-frame-pointer replaces -fp -f[no-]exceptions enable/disable(DEFAULT) C++ exception handling table generation -fnon-call-exceptions enable/disable(DEFAULT) code that allows exceptions from trapping instructions to be caught Interprocedural Optimization (IPO) ---------------------------------- -[no-]ip enable(DEFAULT)/disable single-file IP optimization within files -ipo[n] enable multi-file IP optimization between files -ipo-c generate a multi-file object file (ipo_out.o) -ipo-S generate a multi-file assembly file (ipo_out.S) -ip-no-inlining disable full and partial inlining -ip-no-pinlining disable partial inlining -ipo-separate create one object file for every source file (overrides -ipo[n]) -ipo-jobs specify the number of jobs to be executed simultaneously during the IPO link phase Advanced Optimizations ---------------------- -unroll[n] set maximum number of times to unroll loops. Omit n to use default heuristics. Use n=0 to disable the loop unroller -[no-]unroll-aggressive enables more aggressive unrolling heuristics -funroll-loops unroll loops based on default heuristics -[no-]scalar-rep enable(DEFAULT)/disable scalar replacement (requires -O3) -[no-]ansi-alias enable/disable(DEFAULT) use of ANSI aliasing rules optimizations; user asserts that the program adheres to these rules -[no-]complex-limited-range enable/disable(DEFAULT) the use of the basic algebraic expansions of some complex arithmetic operations. This can allow for some performance improvement in programs which use a lot of complex arithmetic at the loss of some exponent range. -[no-]alias-const enable/disable(DEFAULT) a heuristic stating that if two arguments to a function have pointer type, a pointer to const does not alias a pointer to non-const. Also known as the input/output buffer rule, it assumes that input and output buffer arguments do not overlap. -fargument-alias arguments may alias each other and may alias global storage -fargument-noalias arguments do not alias each other but may alias global storage -fargument-noalias-global arguments do not alias each other and do not alias global storage -ftls-model= change thread-local storage model, where can be the following: global-dynamic, local-dynamic, initial-exec or local-exec -[no-]opt-multi-version-aggressive enables more aggressive multi-versioning to check for pointer aliasing and scalar replacement -opt-ra-region-strategy[=] select the method that the register allocator uses to partition each routine into regions routine - one region per routine block - one region per block trace - one region per trace loop - one region per loop default - compiler selects best option -[no-]vec enables(DEFAULT)/disables vectorization -[no-]vec-guard-write enables cache/bandwidth optimization for stores under conditionals within vector loops -vec-threshold[n] sets a threshold for the vectorization of loops based on the probability of profitable execution of the vectorized loop in parallel -opt-malloc-options={0|1|2|3|4} specify malloc configuration parameters. Specifying a non-zero value will cause alternate configuration parameters to be set for how malloc allocates and frees memory -opt-calloc enable/disable(DEFAULT) calls to fast calloc function -opt-jump-tables= control the generation of jump tables default - let the compiler decide when a jump table, a series of if-then-else constructs or a combination is generated large - generate jump tables up to a certain pre-defined size (64K entries) - generate jump tables up to in size use -no-opt-jump-tables to lower switch statements as chains of if-then-else constructs -fno-jump-tables do not generate jump tables for switches and if-then-else statements -opt-block-factor= specify blocking factor for loop blocking -ffreestanding compile in a freestanding environment where the standard library may not be present -opt-streaming-stores specifies whether streaming stores are generated always - enables generation of streaming stores under the assumption that the application is memory bound auto - compiler decides when streaming stores are used (DEFAULT) never - disables generation of streaming stores -ipp[=] link some or all of the Intel(R) Integrated Performance Primitives (Intel(R) IPP) libraries and bring in the associated headers common - link using the main libraries set. This is the default value when -ipp is specified crypto - link using the main libraries set and the crypto library nonpic - link using the version of the libraries that do not have position independent code nonpic_crypto - link using the crypto library and the version of the libraries that do not have position independent code -mkl[=] link to the Intel(R) Math Kernel Library (Intel(R) MKL) and bring in the associated headers parallel - link using the threaded Intel(R) MKL libraries. This is the default when -mkl is specified sequential - link using the non-threaded Intel(R) MKL libraries cluster - link using the Intel(R) MKL Cluster libraries plus the sequential Intel(R) MKL libraries -tbb link to the Intel(R) Threading Building Blocks (Intel(R) TBB) libraries and bring in the associated headers -[no-]opt-subscript-in-range assumes no overflows in the intermediate computation of the subscripts -[no-]use-intel-optimized-headers take advantage of the optimized header files Profile Guided Optimization (PGO) --------------------------------- -prof-dir specify directory for profiling output files (*.dyn and *.dpi) -prof-src-root specify project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -prof-src-root-cwd specify the current directory as the project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -[no-]prof-src-dir specify whether directory names of sources should be considered when looking up profile records within the .dpi file -prof-file specify file name for profiling summary file -[no-]prof-data-order enable/disable(DEFAULT) static data ordering with profiling -[no-]prof-func-order enable/disable(DEFAULT) function ordering with profiling -[no-]prof-func-groups enable(DEFAULT with PGO)/disable function grouping -prof-gen[=keyword] instrument program for profiling. Optional keyword may be srcpos or globdata -no-prof-gen disable profiling instrumentation -prof-use[=] enable use of profiling information during optimization weighted - invokes profmerge with -weighted option to scale data based on run durations [no]merge - enable(default)/disable the invocation of the profmerge tool -no-prof-use disable use of profiling information during optimization -opt-prefetch[=n] enable levels of prefetch insertion, where 0 disables. n may be 0 through 4 inclusive. Default is 2. -no-opt-prefetch disable(DEFAULT) prefetch insertion. Equivalent to -opt-prefetch=0 -p compile and link for function profiling with UNIX gprof tool On IA32 and Intel(r)64, -pg is also valid -f[no-]instrument-functions determine whether function entry and exit points are instrumented -prof-hotness-threshold= set the hotness threshold for function grouping and function ordering val indicates percentage of functions to be placed in hot region. This option requires -prof-use and -prof-func-groups or -prof-func-order Optimization Reports -------------------- -vec-report[n] control amount of vectorizer diagnostic information n=0 no diagnostic information n=1 indicate vectorized loops (DEFAULT) n=2 indicate vectorized/non-vectorized loops n=3 indicate vectorized/non-vectorized loops and prohibiting data dependence information n=4 indicate non-vectorized loops n=5 indicate non-vectorized loops and prohibiting data dependence information -opt-report [n] generate an optimization report to stderr 0 disable optimization report output 1 minimum report output 2 medium output (DEFAULT when enabled) 3 maximum report output -opt-report-file= specify the filename for the generated report -opt-report-phase= specify the phase that reports are generated against -opt-report-routine= reports on routines containing the given name -opt-report-help display the optimization phases available for reporting -tcheck [mode] enable analysis of threaded applications (requires Intel(R) Thread Checker; cannot be used with compiler alone) tci - instruments a program to perform a thread-count-independent analysis tcd - instruments a program to perform a thread-count-dependent analysis (DEFAULT when mode is not used) api - instruments a program at the api-imports level -tprofile generate instrumentation to analyze multi-threading performance (requires Intel(R) Thread Profiler; cannot be used with compiler alone) -tcollect[=] inserts instrumentation probes calling the Intel(R) Trace Collector API. The library -l is linked in the default being -lVT (requires Intel(R) Trace Collector) -tcollect-filter file Enable or disable the instrumentation of specified functions. (requires Intel(R) Trace Collector) OpenMP* and Parallel Processing ------------------------------- -openmp enable the compiler to generate multi-threaded code based on the OpenMP* directives -openmp-profile enable analysis of OpenMP application when the Intel(R) Thread Profiler is installed -openmp-stubs enables the user to compile OpenMP programs in sequential mode. The OpenMP directives are ignored and a stub OpenMP library is linked (sequential) -openmp-report{0|1|2} control the OpenMP parallelizer diagnostic level -openmp-lib choose which OpenMP library version to link with compat - use the GNU compatible OpenMP run-time libraries (DEFAULT) -openmp-link choose whether to link with the static or dynamic OpenMP libraries. Default is dynamic. -openmp-task choose which OpenMP tasking model to support omp - support OpenMP 3.0 tasking (DEFAULT) intel - support Intel taskqueuing -openmp-threadprivate choose which threadprivate implementation to use compat - use the GNU compatible thread local storage legacy - use the Intel compatible implementation (DEFAULT) -parallel enable the auto-parallelizer to generate multi-threaded code for loops that can be safely executed in parallel -par-report{0|1|2|3} control the auto-parallelizer diagnostic level -par-threshold[n] set threshold for the auto-parallelization of loops where n is an integer from 0 to 100 -[no-]par-runtime-control enable compiler to generate runtime control code for effective automatic parallelization -par-schedule-static[=n] Specifies a scheduling algorithm for DO loop iteration. Divides iterations into contiguous pieces. Size n if specified, equal sized pieces if not. -par-schedule-static-balanced[=n] Divides iterations into even-sized chunks. Size n if specified, equal sized pieces if not. -par-schedule-static-steal[=n] Divides iterations into even-sized chunks, but allows threads to steal parts of chunks from neighboring threads -par-schedule-dynamic[=n] Specifies a scheduling algorithm for DO loop iteration. Assigns iterations to threads in chunks dynamically. Chunk size is n iterations if specified, otherwise 1. -par-schedule-guided[=n] Specifies a scheduling algorithm for DO loop iteration. Indicates a minimum number of iterations. If specified, n is the minimum number, otherwise 1. -par-schedule-guided-analytical[=n] Divides iterations by using exponential distribution or dynamic distributions. -par-schedule-runtime Specifies a scheduling algorithm for DO loop iteration. Defers the scheduling decision until runtime. -par-schedule-auto Lets the compiler or run-time system determine the scheduling algorithm. -par-affinity=[,...][,][,] tune application performance by setting different thread affinity -par-num-threads= tune application performance by setting different number of threads Floating Point -------------- -fp-model enable floating point model variation [no-]except - enable/disable floating point semantics fast[=1|2] - enables more aggressive floating point optimizations precise - allows value-safe optimizations source - enables intermediates in source precision strict - enables -fp-model precise -fp-model except, disables contractions and enables pragma stdc fenv_access double - rounds intermediates in 53-bit (double) precision extended - rounds intermediates in 64-bit (extended) precision -fp-speculation= enable floating point speculations with the following conditions: fast - speculate floating point operations (DEFAULT) safe - speculate only when safe strict - same as off off - disables speculation of floating-point operations -pc32 set internal FPU precision to 24 bit significand -pc64 set internal FPU precision to 53 bit significand (DEFAULT) -pc80 set internal FPU precision to 64 bit significand -mp1 improve floating-point precision (speed impact less than -mp) -mieee-fp same as -mp, can be disabled with -mno-ieee-fp -[no-]prec-sqrt determine if certain square root optimizations are enabled -[no-]prec-div improve precision of FP divides (some speed impact) -[no-]fast-transcendentals generate a faster version of the transcendental functions -[no-]fp-port round fp results at assignments and casts (some speed impact) -fp-stack-check enable fp stack checking after every function/procedure call -rcd rounding mode to enable fast float-to-int conversions -[no-]ftz enable/disable flush denormal results to zero Inlining -------- -inline-level= control inline expansion: n=0 disable inlining n=1 inline functions declared with __inline, and perform C++ inlining n=2 inline any function, at the compiler's discretion -f[no-]inline inline functions declared with __inline, and perform C++ inlining -f[no-]inline-functions inline any function at the compiler's discretion -finline-limit= set maximum number of statements a function can have and still be considered for inlining -inline-min-size= set size limit for inlining small routines -no-inline-min-size no size limit for inlining small routines -inline-max-size= set size limit for inlining large routines -no-inline-max-size no size limit for inlining large routines -inline-max-total-size= maximum increase in size for inline function expansion -no-inline-max-total-size no size limit for inline function expansion -inline-max-per-routine= maximum number of inline instances in any function -no-inline-max-per-routine no maximum number of inline instances in any function -inline-max-per-compile= maximum number of inline instances in the current compilation -no-inline-max-per-compile no maximum number of inline instances in the current compilation -inline-factor= set inlining upper limits by n percentage -no-inline-factor do not set set inlining upper limits -inline-forceinline treat inline routines as forceinline -inline-calloc directs the compiler to inline calloc() calls as malloc()/memset() Output, Debug, PCH ------------------ -c compile to object (.o) only, do not link -S compile to assembly (.s) only, do not link -fsource-asm produce assembly file with optional source annotations (requires -S) -f[no-]verbose-asm produce assembly file with compiler comments (DEFAULT) (requires -S) -fcode-asm produce assembly file with optional code annotations (requires -S) -use-msasm support Microsoft* style assembly language insertion using MASM style syntax -o name output file -g produce symbolic debug information in object file (implies -O0 when another optimization option is not explicitly set) -debug [keyword] enable debug information and control output of enhanced debug information keywords: all, full, minimal, none, [no]inline-debug-info [no]variable-locations, [no]semantic-stepping, extended parallel [no]expr-source-pos -g0 disable generation of symbolic debug information -gdwarf-2 enable generation of debug information using the DWARF2 format -ftrapuv trap uninitialized variables -map-opts enable option mapping tool -print-multi-lib print information about libraries being used -pch-create create precompiled header file -pch-use use precompiled header file -pch enable automatic precompiled header file creation/usage -pch-dir name precompiled header directory Preprocessor ------------ -A[] create an assertion having value -C do not strip comments -D[=] define macro -U remove predefined macro -E preprocess to stdout -EP preprocess to stdout, omitting #line directives -P preprocess to file, omitting #line directives -I add directory to include file search path -idirafter add directory to the second include file search path (after -I) -isystem add directory to the start of the system include path -X, -nostdinc remove standard directories from include file search path -nostdinc++ remove standard C++ directories from include file search path -iprefix use with -iwithprefix as a prefix -iwithprefix append to the prefix passed in by -iprefix and put it on the include search path at the end of the include directories -iwithprefixbefore similar to -iwithprefix except the include directory is placed in the same place as -I command line include directories -iquote add directory to the front of the include file search path for files included with quotes, but not brackets -imacros treat as an #include file, but throw away all preprocessing while macros defined remain defined -H print include file order -B find libraries, headers and executables in -M generate makefile dependency information -MM similar to -M, but do not include system header files -MG similar to -M, but treat missing header files as generated files -MD preprocess and compile, generating output file containing dependency information ending with extension .d -MMD similar to -MD, but do not include system header files -MF generate makefile dependency information in file (must specify -M or -MM) -MP add a phony target for each dependency -MT change the default target rule for dependency generation -MQ same as -MT, but quotes special Make characters -dM output macro definitions in effect after preprocessing (use with -E) -dD same as -dM, but output #define directives in preprocessed source -dN same as -dD, but #define directives contain only macro names -gcc Predefine the "__GNUC__", "__GNUC_MINOR__", and "__GNUC_PATCHLEVEL__" macros (DEFAULT) -no-gcc Do not predefine GNUC macros listed in -gcc mode. Warning: can prevent correct system header compilation, see -gcc-sys -gcc-sys same as -no-gcc, except that the GNU macros are defined only while preprocessing the system include headers -no-icc do not predefine the "__ICC" and "__INTEL_COMPILER" macros. Warning: can prevent correct Intel header compilation -pragma-optimization-level=[Intel|GCC] process #pragma optimize using Intel (DEFAULT) or GCC syntax Component Control ----------------- -Qoption,, pass options to tool specified by -Qlocation,, set as the location of tool specified by -Qinstall set as root of compiler installation Language -------- -std= enable language support for , as described below c99 enable C99 support for C programs c++0x enable preliminary support for some C++0x features -x all source files found subsequent to -x will be recognized as one of the following types: c - C source file c++ - C++ source file c-header - C header file cpp-output - C pre-processed file c++-cpp-output - C++ pre-processed file assembler - assembly file assembler-with-cpp - assembly file that needs to be preprocessed none - revert to original file extension -ansi equivalent to GNU -ansi -strict-ansi strict ANSI conformance dialect -Zp[n] specify alignment constraint for structures where n=1,2,4,8,16. 16 is the default -fsyntax-only perform syntax and semantic checking only (no object file produced) -fpermissive allows extensions for some non-conformant code -funsigned-char change default char type to unsigned -fshort-enums allocate as many bytes as needed for enumerated types -f[no-]unsigned-bitfields change default bitfield type to unsigned -fno-rtti disable RTTI support -fno-implicit-templates never emit code for non-inline templates which are instantiated implicitly; only emit code for explicit instantiations -fno-implicit-inline-templates do not emit code for implicit instantiations of inline templates -ftemplate-depth-[n] control the depth in which recursive templates are expanded -[no]align analyze and reorder memory layout for variables and arrays -[no-]restrict enable/disable the 'restrict' keyword for disambiguating pointers -[no-]early-template-check enable/disable (DEFAULT) semantic checking of function template prototypes (before instantiation). Requires -gcc-version=340 or later -[no-]check-uninit check for uninitialized variables -export enable the export template feature -export-dir add directory to export template search path -help-pragma output supported pragmas and their usage syntax Compiler Diagnostics -------------------- -w disable all warnings -w control diagnostics n = 0 display errors (same as -w) n = 1 display warnings and errors (DEFAULT) n = 2 display remarks, warnings and errors -Wbrief print brief one-line diagnostics -Werror force warnings to be reported as errors -Werror-all force warnings and remarks to be reported as errors -Wall enable all warnings -Wcheck enable more strict diagnostics -Weffc++ enable effective C++ diagnostic warnings -wo[,,...] issue diagnostics L1 through LN only once -W[no-]fatal-errors ends compilation after the first error encountered -W[no-]format enable argument checking for calls to printf, scanf, etc -W[no-]format-security warn for uses of format strings and specifiers in printf, scanf, etc that may introduce security problems -W[no-]missing-declarations warn for global functions and variables without prior declaration -W[no-]missing-prototypes warn for missing prototypes -W[no-]strict-aliasing warn for code that might violate the optimizer's strict aliasing rules. Warnings are issued only when using -fstrict-aliasing or -ansi-alias. -W[no-]strict-prototypes warn for functions declared or defined without specified argument types -W[no-]pointer-arith warn for questionable pointer arithmetic -W[no-]uninitialized warn if a variable is used before being initialized -Winline enable inline diagnostics -W[no-]deprecated print warnings related to deprecated features -W[no-]abi warn if generated code is not C++ ABI compliant -Wcontext-limit= set maximum number of template instantiation contexts shown in diagnostic -Wcast-qual warn if cast is used to override pointer type qualifier -W[no-]unused-function warn if declared function is not used -W[no-]unknown-pragmas warn if an unknown #pragma directive is used (DEFAULT) -W[no-]main warn if return type of main is not expected -W[no-]comment[s] warn when comment -W[no-]conversion warn for implicit conversions that may alter a value -W[no-]return-type warn when a function uses the default int return type and warn when a return statement is used in a void function -W[no-]extra-tokens warn about extra tokens after prepreprocessor directives -W[no-]pragma-once warn about the use of #pragma once -W[no-]shadow warn when a variable declaration hides a previous declaration -Woverloaded-virtual warn when a function declaration hides virtual functions from a base class -W[no-]trigraphs warn about the recognition and conversion of trigraphs -W[no-]multichar warn if a multicharacter constant ('ABC') is used -W[no-]overflow warn for operations that could result in integer overflow -Wwrite-strings Issues a diagnostic message if const char * is converted to (non-const) char *. -Wp64 print diagnostics for 64-bit porting -W[no-]shorten-64-to-32 warn for values implicitly converted from a 64-bit to a 32-bit type. Similar to -Wp64 -[no]traceback specify whether the compiler generates data to allow for source file traceback information at runtime (only to be used when linking with Fortran programs) -noerror-limit set no maximum number on error-level or fatal-level error messages -diag-enable [,,...] enable the specified diagnostics or diagnostic groups -diag-disable [,,...] disable the specified diagnostics or diagnostic groups where may be individual diagnostic numbers or group names. where group names include: sc[n] - perform source code analysis: n=1 for critical errors, n=2 for all errors and n=3 for all errors and warnings sc-include - perform source code analysis on include files sc-parallel[n] - perform analysis of parallelization in source code: n=1 for critical errors, n=2 for errors, n=3 for all errors and warnings thread - enable diagnostics to aid in thread-enabling source port-win - enable diagnostics for GNU extensions that may cause errors when porting to Windows -diag-error [,,...] output the specified diagnostics or diagnostic groups as errors -diag-warning [,,...] output the specified diagnostics or diagnostic groups as warnings -diag-remark [,,...] output the the specified diagnostics or diagnostic groups as remarks -diag-dump display the currently enabled diagnostic messages to stdout or to a specified diagnostic output file. -diag-file[=] where diagnostics are emitted to. Not specifying this causes messages to be output to stderr -diag-file-append[=] where diagnostics are emitted to. When already exists, output is appended to the file -[no-]diag-id-numbers enable(DEFAULT)/disable the diagnostic specifiers to be output in numeric form -diag-error-limit specify the maximum number of errors emitted -diag-once [,,...] issue diagnostics v1 through vN only once Miscellaneous ------------- -V display compiler version information -dumpversion display the compiler version number only -dumpmachine display the target machine only --version display GCC style version information -[no-]sox enable/disable(DEFAULT) saving of compiler options and version in the executable -save-temps store the intermediate files in current directory and name them based on the source file. Only saves files that are generated by default -dryrun show driver tool commands but do not execute tools -v show driver tool commands and execute tools -[no-]multibyte-chars provide support for multi-byte characters -multiple-processes[=] create multiple processes that can be used to compile large numbers of source files at the same time Data ---- -Zp[n] specify alignment constraint for structures (n=1,2,4,8,16 -Zp16 DEFAULT) -[no]align analyze and reorder memory layout for variables and arrays -fminshared Compilation is for the main executable. Absolute addressing can be used and non-position independent code generated for symbols that are at least protected -fcommon Enables the compiler to treat common variables as if they were defined. That in turn allows the use of gprel addressing of common data variables. -fno-common disables -freg-struct-return return struct and union values in registers when possible -fstack-security-check enable overflow security checks. -f[no-]stack-security-check disables (DEFAULT) -fstack-protector enable stack overflow security checks. -f[no-]stack-protector disables (DEFAULT) -fpic, -fPIC generate position independent code (-fno-pic/-fno-PIC is DEFAULT) -fpie, -fPIE generate position independent code that will be linked into an executable (-fno-pie/-fno-PIE is DEFAULT) -[no-]global-hoist enable(DEFAULT)/disable external globals are load safe -f[no-]keep-static-consts enable/disable(DEFAULT) emission of static const variables even when not referenced -fpack-struct pack structure members together -f[no-]math-errno set ERRNO after calling standard math library functions -no-bss-init disable placement of zero-initialized variables in BSS (use DATA) -falign-functions=[2|16] align the start of functions on a 2 (DEFAULT) or 16 byte boundary -falign-functions align the start of functions to an optimal machine-dependent value. -fno-align-functions (DEFAULT) aligns on a 2-byte boundary -falign-stack= stack alignment method to use on entry to routines default - use default heuristics maintain-16-byte - do not assume any specific alignment, but maintain alignment in case the stack is already aligned assume-16-byte - assume the stack is aligned on 16-byte boundaries -fvisibility=[extern|default|protected|hidden|internal] Global symbols (data and functions) will get the visibility attribute given by default. Symbol visibility attributes explicitly set in the source code or using the symbol visibility attribute file options will override the -fvisibility setting -fvisibility-extern= Space separated symbols listed in the argument will geti visibility set to extern -fvisibility-default= Space separated symbols listed in the argument will get visibility set to default -fvisibility-protected= Space separated symbols listed in the argument will get visibility set to protected -fvisibility-hidden= Space separated symbols listed in the argument will get visibility set to hidden -fvisibility-internal= Space separated symbols listed in the argument will get visibility set to internal -fvisibility-inlines-hidden mark inline member functions as hidden Compatibility ------------- -gcc-name= name and location of gcc if not where expected -gxx-name= name and location of g++ if not where expected -gcc-version= specify the of gcc compatibility. Default value matches gcc version installed. Major/Minor versions listed but patch levels (i.e. 345) are permissible 320 - gcc 3.2.x compatibility 330 - gcc 3.3.x compatibility 340 - gcc 3.4.x compatibility 400 - gcc 4.0.x compatibility 410 - gcc 4.1.x compatibility 420 - gcc 4.2.x compatibility -fabi-version= directs the compiler to select a specific ABI implementation 0 - most recent ABI implementation 1 - g++ 3.2 compatible ABI implementation 2 - most conformant ABI implementation Linking/Linker -------------- -L instruct linker to search for libraries -l instruct the linker to link in the -l library -shared-intel link Intel provided libraries dynamically -static-intel link Intel provided libraries statically -shared-libgcc link libgcc dynamically -static-libgcc link libgcc statically -dynamic-linker select dynamic linker other than the default -no-cxxlib do not link in C++ runtime libraries -cxxlib[=dir] link using C++ run-time libraries provided with gcc dir is an optional top-level location for the gcc binaries and libraries -nodefaultlibs do not use standard libraries when linking -nostartfiles do not use standard startup files when linking -nostdlib do not use standard libraries and startup files when linking -static prevents linking with shared libraries -shared produce a shared object -Bstatic specify following libraries are linked statically -Bdynamic specify following libraries are linked dynamically -pthread use POSIX* thread library for multithreading support -cxxlib- tell the compiler which C++ run-time libraries to use nostd - do not link in standard C++ library -u pretend the is undefined -T direct linker to read link commands from -Xlinker pass directly to the linker for processing -Wa,[,,...] pass options o1, o2, etc. to the assembler -Wl,[,,...] pass options o1, o2, etc. to the linker for processing -Wp,[,,...] pass options o1, o2, etc. to the preprocessor Deprecated Options ------------------ -Ob use -inline-level= -cxxlib-gcc[=dir] use -cxxlib[=dir] -i-dynamic use -shared-intel -i-static use -static-intel -inline-debug-info use -debug inline-debug-info -mp use -fp-model -use-asm no replacement -A- use -U -prefetch use -opt-prefetch -prof-genx use -prof-gen=srcpos -openmp-lib=legacy use -openmp-lib=compat -xB use -xSSE2 (i32 only) -xK use -xSSE (i32 only) -axK No replacement -xW use -msse2 -axW use -msse2 -xN use -xSSE2 -axN use -axSSE2 -xP use -xSSE3 -axP use -axSSE3 -xT use -xSSSE3 -axT use -axSSSE3 -xS use -xSSE4.1 -axS use -axSSE4.1 -xO use -msse3 -func-groups use -prof-func-groups -diag-enable sv use -diag-enable sc -diag-enable sv-include use -diag-enable sc-include -diag-disable sv use -diag-disable sc -diag-sv use -diag-enable sc -diag-sv-error use -diag-disable warning -diag-sv-include use -diag-enable sc-include -diag-sv-level No replacement -diag-sv-sup use -diag-disable [,,...] -alias-args use -fargument-alias -c99 use -std=c99 -create-pch use -pch-create -fwritable-strings no replacement -Kc++ use -x c++ -no-alias-args use -fargument-noalias -use-pch use -pch-use -wn use -diag-error-limit -wd use -diag-disable -we use -diag-error -ww use -diag-warning -wr use -diag-remark -wo use -diag-once -help [category] print full or category help message Valid categories include advanced - Advanced Optimizations codegen - Code Generation compatibility - Compatibility component - Component Control data - Data deprecated - Deprecated Options diagnostics - Compiler Diagnostics float - Floating Point help - Help inline - Inlining ipo - Interprocedural Optimization (IPO) language - Language link - Linking/Linker misc - Miscellaneous opt - Optimization output - Output pgo - Profile Guided Optimization (PGO) preproc - Preprocessor reports - Optimization Reports openmp - OpenMP and Parallel Processing Copyright (C) 1985-2009, Intel Corporation. All rights reserved. * Other brands and names are the property of their respective owners. Trying Cxx compiler flag -wd1572 sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -wd1572 /tmp/petsc-3SW45q/config.setCompilers/conftest.cc Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -wd1572 /tmp/petsc-3SW45q/config.setCompilers/conftest.cc sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" int main() { ; return 0; } Added Cxx compiler flag -wd1572 sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc --help Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc --help sh: Intel(R) C++ Compiler Help ========================== usage: icc [options] file1 [file2 ...] icpc [options] file1 [file2 ...] where options represents zero or more compiler options fileN is a C/C++ source (.C .c .cc .cpp .cxx .c++ .i .ii), assembly (.s .S), object (.o), static library (.a), or other linkable file The icpc command uses the same compiler options as the icc command. Invoking the compiler using icpc compiles .c and .i files as C++. Invoking the compiler using icc compiles .c and .i files as C. Using icpc always links in C++ libraries. Using icc only links in C++ libraries if C++ source is provided on the command line. Commonly used options may be placed in the icc .cfg file. Some options listed are only available on a specific system i32 indicates the feature is available on systems based on IA-32 architecture i64em indicates the feature is available on systems using Intel(R) 64 architecture Compiler Option List -------------------- Optimization ------------ -O1 optimize for maximum speed, but disable some optimizations which increase code size for a small speed benefit -O2 optimize for maximum speed (DEFAULT) -O3 optimize for maximum speed and enable more aggressive optimizations that may not improve performance on some programs -O same as -O2 -Os enable speed optimizations, but disable some optimizations which increase code size for small speed benefit -O0 disable optimizations -fast enable -xHOST -O3 -ipo -no-prec-div -static options set by -fast cannot be overridden with the exception of -xHOST, list options separately to change behavior -fno-alias assume no aliasing in program -fno-fnalias assume no aliasing within functions, but assume aliasing across calls -f[no-]builtin disable inline expansion of intrinsic functions -fno-builtin- disable the intrinsic -ffunction-sections separate functions for the linker (COMDAT) -fdata-sections same as -ffunction-sections -nolib-inline disable inline expansion of intrinsic functions Code Generation --------------- -x[,,...] generate specialized code to run exclusively on processors indicated by as described below Host generate instructions for the highest instruction set and processor available on the compilation host machine SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSE3_ATOM Can generate MOVBE instructions for Intel processors and can optimize for the Intel(R) Atom(TM) processor. SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for SSE4 Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -ax[,,...] generate code specialized for processors specified by while also generating generic IA-32 instructions. includes one or more of the following: SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -mcpu= same as -mtune= -mtune= optimize for a specific pentium3 - optimize for Pentium(R) III processors pentium4 - optimize for Pentium(R) 4 processor (DEFAULT) -march= generate code exclusively for a given pentium3 - streaming SIMD extensions pentium4 - Pentium(R) 4 New Instructions -mia32 generates code which will run on any Intel Pentium or later processor. Disables any default extended instruction settings, and any previously set extended instruction settings. -msse generate code for Intel Pentium III and compatible Intel processors -msse2 generate code for Intel Pentium 4 and compatible Intel processors -msse3 generate code for Intel(R) Core(TM) Duo processors, Intel(R) Core(TM) Solo processors, Intel Pentium 4 and compatible Intel processors with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support -mssse3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) -msse4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions -minstruction= Refine instruction set output for the selected target processor [no]movbe - Do/do not generate MOVBE instructions with SSE3_ATOM (requires -xSSE3_ATOM) -f[no-]omit-frame-pointer enable(DEFAULT)/disable use of EBP as general purpose register. -fno-omit-frame-pointer replaces -fp -f[no-]exceptions enable/disable(DEFAULT) C++ exception handling table generation -fnon-call-exceptions enable/disable(DEFAULT) code that allows exceptions from trapping instructions to be caught Interprocedural Optimization (IPO) ---------------------------------- -[no-]ip enable(DEFAULT)/disable single-file IP optimization within files -ipo[n] enable multi-file IP optimization between files -ipo-c generate a multi-file object file (ipo_out.o) -ipo-S generate a multi-file assembly file (ipo_out.S) -ip-no-inlining disable full and partial inlining -ip-no-pinlining disable partial inlining -ipo-separate create one object file for every source file (overrides -ipo[n]) -ipo-jobs specify the number of jobs to be executed simultaneously during the IPO link phase Advanced Optimizations ---------------------- -unroll[n] set maximum number of times to unroll loops. Omit n to use default heuristics. Use n=0 to disable the loop unroller -[no-]unroll-aggressive enables more aggressive unrolling heuristics -funroll-loops unroll loops based on default heuristics -[no-]scalar-rep enable(DEFAULT)/disable scalar replacement (requires -O3) -[no-]ansi-alias enable/disable(DEFAULT) use of ANSI aliasing rules optimizations; user asserts that the program adheres to these rules -[no-]complex-limited-range enable/disable(DEFAULT) the use of the basic algebraic expansions of some complex arithmetic operations. This can allow for some performance improvement in programs which use a lot of complex arithmetic at the loss of some exponent range. -[no-]alias-const enable/disable(DEFAULT) a heuristic stating that if two arguments to a function have pointer type, a pointer to const does not alias a pointer to non-const. Also known as the input/output buffer rule, it assumes that input and output buffer arguments do not overlap. -fargument-alias arguments may alias each other and may alias global storage -fargument-noalias arguments do not alias each other but may alias global storage -fargument-noalias-global arguments do not alias each other and do not alias global storage -ftls-model= change thread-local storage model, where can be the following: global-dynamic, local-dynamic, initial-exec or local-exec -[no-]opt-multi-version-aggressive enables more aggressive multi-versioning to check for pointer aliasing and scalar replacement -opt-ra-region-strategy[=] select the method that the register allocator uses to partition each routine into regions routine - one region per routine block - one region per block trace - one region per trace loop - one region per loop default - compiler selects best option -[no-]vec enables(DEFAULT)/disables vectorization -[no-]vec-guard-write enables cache/bandwidth optimization for stores under conditionals within vector loops -vec-threshold[n] sets a threshold for the vectorization of loops based on the probability of profitable execution of the vectorized loop in parallel -opt-malloc-options={0|1|2|3|4} specify malloc configuration parameters. Specifying a non-zero value will cause alternate configuration parameters to be set for how malloc allocates and frees memory -opt-calloc enable/disable(DEFAULT) calls to fast calloc function -opt-jump-tables= control the generation of jump tables default - let the compiler decide when a jump table, a series of if-then-else constructs or a combination is generated large - generate jump tables up to a certain pre-defined size (64K entries) - generate jump tables up to in size use -no-opt-jump-tables to lower switch statements as chains of if-then-else constructs -fno-jump-tables do not generate jump tables for switches and if-then-else statements -opt-block-factor= specify blocking factor for loop blocking -ffreestanding compile in a freestanding environment where the standard library may not be present -opt-streaming-stores specifies whether streaming stores are generated always - enables generation of streaming stores under the assumption that the application is memory bound auto - compiler decides when streaming stores are used (DEFAULT) never - disables generation of streaming stores -ipp[=] link some or all of the Intel(R) Integrated Performance Primitives (Intel(R) IPP) libraries and bring in the associated headers common - link using the main libraries set. This is the default value when -ipp is specified crypto - link using the main libraries set and the crypto library nonpic - link using the version of the libraries that do not have position independent code nonpic_crypto - link using the crypto library and the version of the libraries that do not have position independent code -mkl[=] link to the Intel(R) Math Kernel Library (Intel(R) MKL) and bring in the associated headers parallel - link using the threaded Intel(R) MKL libraries. This is the default when -mkl is specified sequential - link using the non-threaded Intel(R) MKL libraries cluster - link using the Intel(R) MKL Cluster libraries plus the sequential Intel(R) MKL libraries -tbb link to the Intel(R) Threading Building Blocks (Intel(R) TBB) libraries and bring in the associated headers -[no-]opt-subscript-in-range assumes no overflows in the intermediate computation of the subscripts -[no-]use-intel-optimized-headers take advantage of the optimized header files Profile Guided Optimization (PGO) --------------------------------- -prof-dir specify directory for profiling output files (*.dyn and *.dpi) -prof-src-root specify project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -prof-src-root-cwd specify the current directory as the project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -[no-]prof-src-dir specify whether directory names of sources should be considered when looking up profile records within the .dpi file -prof-file specify file name for profiling summary file -[no-]prof-data-order enable/disable(DEFAULT) static data ordering with profiling -[no-]prof-func-order enable/disable(DEFAULT) function ordering with profiling -[no-]prof-func-groups enable(DEFAULT with PGO)/disable function grouping -prof-gen[=keyword] instrument program for profiling. Optional keyword may be srcpos or globdata -no-prof-gen disable profiling instrumentation -prof-use[=] enable use of profiling information during optimization weighted - invokes profmerge with -weighted option to scale data based on run durations [no]merge - enable(default)/disable the invocation of the profmerge tool -no-prof-use disable use of profiling information during optimization -opt-prefetch[=n] enable levels of prefetch insertion, where 0 disables. n may be 0 through 4 inclusive. Default is 2. -no-opt-prefetch disable(DEFAULT) prefetch insertion. Equivalent to -opt-prefetch=0 -p compile and link for function profiling with UNIX gprof tool On IA32 and Intel(r)64, -pg is also valid -f[no-]instrument-functions determine whether function entry and exit points are instrumented -prof-hotness-threshold= set the hotness threshold for function grouping and function ordering val indicates percentage of functions to be placed in hot region. This option requires -prof-use and -prof-func-groups or -prof-func-order Optimization Reports -------------------- -vec-report[n] control amount of vectorizer diagnostic information n=0 no diagnostic information n=1 indicate vectorized loops (DEFAULT) n=2 indicate vectorized/non-vectorized loops n=3 indicate vectorized/non-vectorized loops and prohibiting data dependence information n=4 indicate non-vectorized loops n=5 indicate non-vectorized loops and prohibiting data dependence information -opt-report [n] generate an optimization report to stderr 0 disable optimization report output 1 minimum report output 2 medium output (DEFAULT when enabled) 3 maximum report output -opt-report-file= specify the filename for the generated report -opt-report-phase= specify the phase that reports are generated against -opt-report-routine= reports on routines containing the given name -opt-report-help display the optimization phases available for reporting -tcheck [mode] enable analysis of threaded applications (requires Intel(R) Thread Checker; cannot be used with compiler alone) tci - instruments a program to perform a thread-count-independent analysis tcd - instruments a program to perform a thread-count-dependent analysis (DEFAULT when mode is not used) api - instruments a program at the api-imports level -tprofile generate instrumentation to analyze multi-threading performance (requires Intel(R) Thread Profiler; cannot be used with compiler alone) -tcollect[=] inserts instrumentation probes calling the Intel(R) Trace Collector API. The library -l is linked in the default being -lVT (requires Intel(R) Trace Collector) -tcollect-filter file Enable or disable the instrumentation of specified functions. (requires Intel(R) Trace Collector) OpenMP* and Parallel Processing ------------------------------- -openmp enable the compiler to generate multi-threaded code based on the OpenMP* directives -openmp-profile enable analysis of OpenMP application when the Intel(R) Thread Profiler is installed -openmp-stubs enables the user to compile OpenMP programs in sequential mode. The OpenMP directives are ignored and a stub OpenMP library is linked (sequential) -openmp-report{0|1|2} control the OpenMP parallelizer diagnostic level -openmp-lib choose which OpenMP library version to link with compat - use the GNU compatible OpenMP run-time libraries (DEFAULT) -openmp-link choose whether to link with the static or dynamic OpenMP libraries. Default is dynamic. -openmp-task choose which OpenMP tasking model to support omp - support OpenMP 3.0 tasking (DEFAULT) intel - support Intel taskqueuing -openmp-threadprivate choose which threadprivate implementation to use compat - use the GNU compatible thread local storage legacy - use the Intel compatible implementation (DEFAULT) -parallel enable the auto-parallelizer to generate multi-threaded code for loops that can be safely executed in parallel -par-report{0|1|2|3} control the auto-parallelizer diagnostic level -par-threshold[n] set threshold for the auto-parallelization of loops where n is an integer from 0 to 100 -[no-]par-runtime-control enable compiler to generate runtime control code for effective automatic parallelization -par-schedule-static[=n] Specifies a scheduling algorithm for DO loop iteration. Divides iterations into contiguous pieces. Size n if specified, equal sized pieces if not. -par-schedule-static-balanced[=n] Divides iterations into even-sized chunks. Size n if specified, equal sized pieces if not. -par-schedule-static-steal[=n] Divides iterations into even-sized chunks, but allows threads to steal parts of chunks from neighboring threads -par-schedule-dynamic[=n] Specifies a scheduling algorithm for DO loop iteration. Assigns iterations to threads in chunks dynamically. Chunk size is n iterations if specified, otherwise 1. -par-schedule-guided[=n] Specifies a scheduling algorithm for DO loop iteration. Indicates a minimum number of iterations. If specified, n is the minimum number, otherwise 1. -par-schedule-guided-analytical[=n] Divides iterations by using exponential distribution or dynamic distributions. -par-schedule-runtime Specifies a scheduling algorithm for DO loop iteration. Defers the scheduling decision until runtime. -par-schedule-auto Lets the compiler or run-time system determine the scheduling algorithm. -par-affinity=[,...][,][,] tune application performance by setting different thread affinity -par-num-threads= tune application performance by setting different number of threads Floating Point -------------- -fp-model enable floating point model variation [no-]except - enable/disable floating point semantics fast[=1|2] - enables more aggressive floating point optimizations precise - allows value-safe optimizations source - enables intermediates in source precision strict - enables -fp-model precise -fp-model except, disables contractions and enables pragma stdc fenv_access double - rounds intermediates in 53-bit (double) precision extended - rounds intermediates in 64-bit (extended) precision -fp-speculation= enable floating point speculations with the following conditions: fast - speculate floating point operations (DEFAULT) safe - speculate only when safe strict - same as off off - disables speculation of floating-point operations -pc32 set internal FPU precision to 24 bit significand -pc64 set internal FPU precision to 53 bit significand (DEFAULT) -pc80 set internal FPU precision to 64 bit significand -mp1 improve floating-point precision (speed impact less than -mp) -mieee-fp same as -mp, can be disabled with -mno-ieee-fp -[no-]prec-sqrt determine if certain square root optimizations are enabled -[no-]prec-div improve precision of FP divides (some speed impact) -[no-]fast-transcendentals generate a faster version of the transcendental functions -[no-]fp-port round fp results at assignments and casts (some speed impact) -fp-stack-check enable fp stack checking after every function/procedure call -rcd rounding mode to enable fast float-to-int conversions -[no-]ftz enable/disable flush denormal results to zero Inlining -------- -inline-level= control inline expansion: n=0 disable inlining n=1 inline functions declared with __inline, and perform C++ inlining n=2 inline any function, at the compiler's discretion -f[no-]inline inline functions declared with __inline, and perform C++ inlining -f[no-]inline-functions inline any function at the compiler's discretion -finline-limit= set maximum number of statements a function can have and still be considered for inlining -inline-min-size= set size limit for inlining small routines -no-inline-min-size no size limit for inlining small routines -inline-max-size= set size limit for inlining large routines -no-inline-max-size no size limit for inlining large routines -inline-max-total-size= maximum increase in size for inline function expansion -no-inline-max-total-size no size limit for inline function expansion -inline-max-per-routine= maximum number of inline instances in any function -no-inline-max-per-routine no maximum number of inline instances in any function -inline-max-per-compile= maximum number of inline instances in the current compilation -no-inline-max-per-compile no maximum number of inline instances in the current compilation -inline-factor= set inlining upper limits by n percentage -no-inline-factor do not set set inlining upper limits -inline-forceinline treat inline routines as forceinline -inline-calloc directs the compiler to inline calloc() calls as malloc()/memset() Output, Debug, PCH ------------------ -c compile to object (.o) only, do not link -S compile to assembly (.s) only, do not link -fsource-asm produce assembly file with optional source annotations (requires -S) -f[no-]verbose-asm produce assembly file with compiler comments (DEFAULT) (requires -S) -fcode-asm produce assembly file with optional code annotations (requires -S) -use-msasm support Microsoft* style assembly language insertion using MASM style syntax -o name output file -g produce symbolic debug information in object file (implies -O0 when another optimization option is not explicitly set) -debug [keyword] enable debug information and control output of enhanced debug information keywords: all, full, minimal, none, [no]inline-debug-info [no]variable-locations, [no]semantic-stepping, extended parallel [no]expr-source-pos -g0 disable generation of symbolic debug information -gdwarf-2 enable generation of debug information using the DWARF2 format -ftrapuv trap uninitialized variables -map-opts enable option mapping tool -print-multi-lib print information about libraries being used -pch-create create precompiled header file -pch-use use precompiled header file -pch enable automatic precompiled header file creation/usage -pch-dir name precompiled header directory Preprocessor ------------ -A[] create an assertion having value -C do not strip comments -D[=] define macro -U remove predefined macro -E preprocess to stdout -EP preprocess to stdout, omitting #line directives -P preprocess to file, omitting #line directives -I add directory to include file search path -idirafter add directory to the second include file search path (after -I) -isystem add directory to the start of the system include path -X, -nostdinc remove standard directories from include file search path -nostdinc++ remove standard C++ directories from include file search path -iprefix use with -iwithprefix as a prefix -iwithprefix append to the prefix passed in by -iprefix and put it on the include search path at the end of the include directories -iwithprefixbefore similar to -iwithprefix except the include directory is placed in the same place as -I command line include directories -iquote add directory to the front of the include file search path for files included with quotes, but not brackets -imacros treat as an #include file, but throw away all preprocessing while macros defined remain defined -H print include file order -B find libraries, headers and executables in -M generate makefile dependency information -MM similar to -M, but do not include system header files -MG similar to -M, but treat missing header files as generated files -MD preprocess and compile, generating output file containing dependency information ending with extension .d -MMD similar to -MD, but do not include system header files -MF generate makefile dependency information in file (must specify -M or -MM) -MP add a phony target for each dependency -MT change the default target rule for dependency generation -MQ same as -MT, but quotes special Make characters -dM output macro definitions in effect after preprocessing (use with -E) -dD same as -dM, but output #define directives in preprocessed source -dN same as -dD, but #define directives contain only macro names -gcc Predefine the "__GNUC__", "__GNUC_MINOR__", and "__GNUC_PATCHLEVEL__" macros (DEFAULT) -no-gcc Do not predefine GNUC macros listed in -gcc mode. Warning: can prevent correct system header compilation, see -gcc-sys -gcc-sys same as -no-gcc, except that the GNU macros are defined only while preprocessing the system include headers -no-icc do not predefine the "__ICC" and "__INTEL_COMPILER" macros. Warning: can prevent correct Intel header compilation -pragma-optimization-level=[Intel|GCC] process #pragma optimize using Intel (DEFAULT) or GCC syntax Component Control ----------------- -Qoption,, pass options to tool specified by -Qlocation,, set as the location of tool specified by -Qinstall set as root of compiler installation Language -------- -std= enable language support for , as described below c99 enable C99 support for C programs c++0x enable preliminary support for some C++0x features -x all source files found subsequent to -x will be recognized as one of the following types: c - C source file c++ - C++ source file c-header - C header file cpp-output - C pre-processed file c++-cpp-output - C++ pre-processed file assembler - assembly file assembler-with-cpp - assembly file that needs to be preprocessed none - revert to original file extension -ansi equivalent to GNU -ansi -strict-ansi strict ANSI conformance dialect -Zp[n] specify alignment constraint for structures where n=1,2,4,8,16. 16 is the default -fsyntax-only perform syntax and semantic checking only (no object file produced) -fpermissive allows extensions for some non-conformant code -funsigned-char change default char type to unsigned -fshort-enums allocate as many bytes as needed for enumerated types -f[no-]unsigned-bitfields change default bitfield type to unsigned -fno-rtti disable RTTI support -fno-implicit-templates never emit code for non-inline templates which are instantiated implicitly; only emit code for explicit instantiations -fno-implicit-inline-templates do not emit code for implicit instantiations of inline templates -ftemplate-depth-[n] control the depth in which recursive templates are expanded -[no]align analyze and reorder memory layout for variables and arrays -[no-]restrict enable/disable the 'restrict' keyword for disambiguating pointers -[no-]early-template-check enable/disable (DEFAULT) semantic checking of function template prototypes (before instantiation). Requires -gcc-version=340 or later -[no-]check-uninit check for uninitialized variables -export enable the export template feature -export-dir add directory to export template search path -help-pragma output supported pragmas and their usage syntax Compiler Diagnostics -------------------- -w disable all warnings -w control diagnostics n = 0 display errors (same as -w) n = 1 display warnings and errors (DEFAULT) n = 2 display remarks, warnings and errors -Wbrief print brief one-line diagnostics -Werror force warnings to be reported as errors -Werror-all force warnings and remarks to be reported as errors -Wall enable all warnings -Wcheck enable more strict diagnostics -Weffc++ enable effective C++ diagnostic warnings -wo[,,...] issue diagnostics L1 through LN only once -W[no-]fatal-errors ends compilation after the first error encountered -W[no-]format enable argument checking for calls to printf, scanf, etc -W[no-]format-security warn for uses of format strings and specifiers in printf, scanf, etc that may introduce security problems -W[no-]missing-declarations warn for global functions and variables without prior declaration -W[no-]missing-prototypes warn for missing prototypes -W[no-]strict-aliasing warn for code that might violate the optimizer's strict aliasing rules. Warnings are issued only when using -fstrict-aliasing or -ansi-alias. -W[no-]strict-prototypes warn for functions declared or defined without specified argument types -W[no-]pointer-arith warn for questionable pointer arithmetic -W[no-]uninitialized warn if a variable is used before being initialized -Winline enable inline diagnostics -W[no-]deprecated print warnings related to deprecated features -W[no-]abi warn if generated code is not C++ ABI compliant -Wcontext-limit= set maximum number of template instantiation contexts shown in diagnostic -Wcast-qual warn if cast is used to override pointer type qualifier -W[no-]unused-function warn if declared function is not used -W[no-]unknown-pragmas warn if an unknown #pragma directive is used (DEFAULT) -W[no-]main warn if return type of main is not expected -W[no-]comment[s] warn when comment -W[no-]conversion warn for implicit conversions that may alter a value -W[no-]return-type warn when a function uses the default int return type and warn when a return statement is used in a void function -W[no-]extra-tokens warn about extra tokens after prepreprocessor directives -W[no-]pragma-once warn about the use of #pragma once -W[no-]shadow warn when a variable declaration hides a previous declaration -Woverloaded-virtual warn when a function declaration hides virtual functions from a base class -W[no-]trigraphs warn about the recognition and conversion of trigraphs -W[no-]multichar warn if a multicharacter constant ('ABC') is used -W[no-]overflow warn for operations that could result in integer overflow -Wwrite-strings Issues a diagnostic message if const char * is converted to (non-const) char *. -Wp64 print diagnostics for 64-bit porting -W[no-]shorten-64-to-32 warn for values implicitly converted from a 64-bit to a 32-bit type. Similar to -Wp64 -[no]traceback specify whether the compiler generates data to allow for source file traceback information at runtime (only to be used when linking with Fortran programs) -noerror-limit set no maximum number on error-level or fatal-level error messages -diag-enable [,,...] enable the specified diagnostics or diagnostic groups -diag-disable [,,...] disable the specified diagnostics or diagnostic groups where may be individual diagnostic numbers or group names. where group names include: sc[n] - perform source code analysis: n=1 for critical errors, n=2 for all errors and n=3 for all errors and warnings sc-include - perform source code analysis on include files sc-parallel[n] - perform analysis of parallelization in source code: n=1 for critical errors, n=2 for errors, n=3 for all errors and warnings thread - enable diagnostics to aid in thread-enabling source port-win - enable diagnostics for GNU extensions that may cause errors when porting to Windows -diag-error [,,...] output the specified diagnostics or diagnostic groups as errors -diag-warning [,,...] output the specified diagnostics or diagnostic groups as warnings -diag-remark [,,...] output the the specified diagnostics or diagnostic groups as remarks -diag-dump display the currently enabled diagnostic messages to stdout or to a specified diagnostic output file. -diag-file[=] where diagnostics are emitted to. Not specifying this causes messages to be output to stderr -diag-file-append[=] where diagnostics are emitted to. When already exists, output is appended to the file -[no-]diag-id-numbers enable(DEFAULT)/disable the diagnostic specifiers to be output in numeric form -diag-error-limit specify the maximum number of errors emitted -diag-once [,,...] issue diagnostics v1 through vN only once Miscellaneous ------------- -V display compiler version information -dumpversion display the compiler version number only -dumpmachine display the target machine only --version display GCC style version information -[no-]sox enable/disable(DEFAULT) saving of compiler options and version in the executable -save-temps store the intermediate files in current directory and name them based on the source file. Only saves files that are generated by default -dryrun show driver tool commands but do not execute tools -v show driver tool commands and execute tools -[no-]multibyte-chars provide support for multi-byte characters -multiple-processes[=] create multiple processes that can be used to compile large numbers of source files at the same time Data ---- -Zp[n] specify alignment constraint for structures (n=1,2,4,8,16 -Zp16 DEFAULT) -[no]align analyze and reorder memory layout for variables and arrays -fminshared Compilation is for the main executable. Absolute addressing can be used and non-position independent code generated for symbols that are at least protected -fcommon Enables the compiler to treat common variables as if they were defined. That in turn allows the use of gprel addressing of common data variables. -fno-common disables -freg-struct-return return struct and union values in registers when possible -fstack-security-check enable overflow security checks. -f[no-]stack-security-check disables (DEFAULT) -fstack-protector enable stack overflow security checks. -f[no-]stack-protector disables (DEFAULT) -fpic, -fPIC generate position independent code (-fno-pic/-fno-PIC is DEFAULT) -fpie, -fPIE generate position independent code that will be linked into an executable (-fno-pie/-fno-PIE is DEFAULT) -[no-]global-hoist enable(DEFAULT)/disable external globals are load safe -f[no-]keep-static-consts enable/disable(DEFAULT) emission of static const variables even when not referenced -fpack-struct pack structure members together -f[no-]math-errno set ERRNO after calling standard math library functions -no-bss-init disable placement of zero-initialized variables in BSS (use DATA) -falign-functions=[2|16] align the start of functions on a 2 (DEFAULT) or 16 byte boundary -falign-functions align the start of functions to an optimal machine-dependent value. -fno-align-functions (DEFAULT) aligns on a 2-byte boundary -falign-stack= stack alignment method to use on entry to routines default - use default heuristics maintain-16-byte - do not assume any specific alignment, but maintain alignment in case the stack is already aligned assume-16-byte - assume the stack is aligned on 16-byte boundaries -fvisibility=[extern|default|protected|hidden|internal] Global symbols (data and functions) will get the visibility attribute given by default. Symbol visibility attributes explicitly set in the source code or using the symbol visibility attribute file options will override the -fvisibility setting -fvisibility-extern= Space separated symbols listed in the argument will geti visibility set to extern -fvisibility-default= Space separated symbols listed in the argument will get visibility set to default -fvisibility-protected= Space separated symbols listed in the argument will get visibility set to protected -fvisibility-hidden= Space separated symbols listed in the argument will get visibility set to hidden -fvisibility-internal= Space separated symbols listed in the argument will get visibility set to internal -fvisibility-inlines-hidden mark inline member functions as hidden Compatibility ------------- -gcc-name= name and location of gcc if not where expected -gxx-name= name and location of g++ if not where expected -gcc-version= specify the of gcc compatibility. Default value matches gcc version installed. Major/Minor versions listed but patch levels (i.e. 345) are permissible 320 - gcc 3.2.x compatibility 330 - gcc 3.3.x compatibility 340 - gcc 3.4.x compatibility 400 - gcc 4.0.x compatibility 410 - gcc 4.1.x compatibility 420 - gcc 4.2.x compatibility -fabi-version= directs the compiler to select a specific ABI implementation 0 - most recent ABI implementation 1 - g++ 3.2 compatible ABI implementation 2 - most conformant ABI implementation Linking/Linker -------------- -L instruct linker to search for libraries -l instruct the linker to link in the -l library -shared-intel link Intel provided libraries dynamically -static-intel link Intel provided libraries statically -shared-libgcc link libgcc dynamically -static-libgcc link libgcc statically -dynamic-linker select dynamic linker other than the default -no-cxxlib do not link in C++ runtime libraries -cxxlib[=dir] link using C++ run-time libraries provided with gcc dir is an optional top-level location for the gcc binaries and libraries -nodefaultlibs do not use standard libraries when linking -nostartfiles do not use standard startup files when linking -nostdlib do not use standard libraries and startup files when linking -static prevents linking with shared libraries -shared produce a shared object -Bstatic specify following libraries are linked statically -Bdynamic specify following libraries are linked dynamically -pthread use POSIX* thread library for multithreading support -cxxlib- tell the compiler which C++ run-time libraries to use nostd - do not link in standard C++ library -u pretend the is undefined -T direct linker to read link commands from -Xlinker pass directly to the linker for processing -Wa,[,,...] pass options o1, o2, etc. to the assembler -Wl,[,,...] pass options o1, o2, etc. to the linker for processing -Wp,[,,...] pass options o1, o2, etc. to the preprocessor Deprecated Options ------------------ -Ob use -inline-level= -cxxlib-gcc[=dir] use -cxxlib[=dir] -i-dynamic use -shared-intel -i-static use -static-intel -inline-debug-info use -debug inline-debug-info -mp use -fp-model -use-asm no replacement -A- use -U -prefetch use -opt-prefetch -prof-genx use -prof-gen=srcpos -openmp-lib=legacy use -openmp-lib=compat -xB use -xSSE2 (i32 only) -xK use -xSSE (i32 only) -axK No replacement -xW use -msse2 -axW use -msse2 -xN use -xSSE2 -axN use -axSSE2 -xP use -xSSE3 -axP use -axSSE3 -xT use -xSSSE3 -axT use -axSSSE3 -xS use -xSSE4.1 -axS use -axSSE4.1 -xO use -msse3 -func-groups use -prof-func-groups -diag-enable sv use -diag-enable sc -diag-enable sv-include use -diag-enable sc-include -diag-disable sv use -diag-disable sc -diag-sv use -diag-enable sc -diag-sv-error use -diag-disable warning -diag-sv-include use -diag-enable sc-include -diag-sv-level No replacement -diag-sv-sup use -diag-disable [,,...] -alias-args use -fargument-alias -c99 use -std=c99 -create-pch use -pch-create -fwritable-strings no replacement -Kc++ use -x c++ -no-alias-args use -fargument-noalias -use-pch use -pch-use -wn use -diag-error-limit -wd use -diag-disable -we use -diag-error -ww use -diag-warning -wr use -diag-remark -wo use -diag-once -help [category] print full or category help message Valid categories include advanced - Advanced Optimizations codegen - Code Generation compatibility - Compatibility component - Component Control data - Data deprecated - Deprecated Options diagnostics - Compiler Diagnostics float - Floating Point help - Help inline - Inlining ipo - Interprocedural Optimization (IPO) language - Language link - Linking/Linker misc - Miscellaneous opt - Optimization output - Output pgo - Profile Guided Optimization (PGO) preproc - Preprocessor reports - Optimization Reports openmp - OpenMP and Parallel Processing Copyright (C) 1985-2009, Intel Corporation. All rights reserved. * Other brands and names are the property of their respective owners. sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc --help Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc --help sh: Intel(R) C++ Compiler Help ========================== usage: icc [options] file1 [file2 ...] icpc [options] file1 [file2 ...] where options represents zero or more compiler options fileN is a C/C++ source (.C .c .cc .cpp .cxx .c++ .i .ii), assembly (.s .S), object (.o), static library (.a), or other linkable file The icpc command uses the same compiler options as the icc command. Invoking the compiler using icpc compiles .c and .i files as C++. Invoking the compiler using icc compiles .c and .i files as C. Using icpc always links in C++ libraries. Using icc only links in C++ libraries if C++ source is provided on the command line. Commonly used options may be placed in the icc .cfg file. Some options listed are only available on a specific system i32 indicates the feature is available on systems based on IA-32 architecture i64em indicates the feature is available on systems using Intel(R) 64 architecture Compiler Option List -------------------- Optimization ------------ -O1 optimize for maximum speed, but disable some optimizations which increase code size for a small speed benefit -O2 optimize for maximum speed (DEFAULT) -O3 optimize for maximum speed and enable more aggressive optimizations that may not improve performance on some programs -O same as -O2 -Os enable speed optimizations, but disable some optimizations which increase code size for small speed benefit -O0 disable optimizations -fast enable -xHOST -O3 -ipo -no-prec-div -static options set by -fast cannot be overridden with the exception of -xHOST, list options separately to change behavior -fno-alias assume no aliasing in program -fno-fnalias assume no aliasing within functions, but assume aliasing across calls -f[no-]builtin disable inline expansion of intrinsic functions -fno-builtin- disable the intrinsic -ffunction-sections separate functions for the linker (COMDAT) -fdata-sections same as -ffunction-sections -nolib-inline disable inline expansion of intrinsic functions Code Generation --------------- -x[,,...] generate specialized code to run exclusively on processors indicated by as described below Host generate instructions for the highest instruction set and processor available on the compilation host machine SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSE3_ATOM Can generate MOVBE instructions for Intel processors and can optimize for the Intel(R) Atom(TM) processor. SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for SSE4 Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -ax[,,...] generate code specialized for processors specified by while also generating generic IA-32 instructions. includes one or more of the following: SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -mcpu= same as -mtune= -mtune= optimize for a specific pentium3 - optimize for Pentium(R) III processors pentium4 - optimize for Pentium(R) 4 processor (DEFAULT) -march= generate code exclusively for a given pentium3 - streaming SIMD extensions pentium4 - Pentium(R) 4 New Instructions -mia32 generates code which will run on any Intel Pentium or later processor. Disables any default extended instruction settings, and any previously set extended instruction settings. -msse generate code for Intel Pentium III and compatible Intel processors -msse2 generate code for Intel Pentium 4 and compatible Intel processors -msse3 generate code for Intel(R) Core(TM) Duo processors, Intel(R) Core(TM) Solo processors, Intel Pentium 4 and compatible Intel processors with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support -mssse3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) -msse4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions -minstruction= Refine instruction set output for the selected target processor [no]movbe - Do/do not generate MOVBE instructions with SSE3_ATOM (requires -xSSE3_ATOM) -f[no-]omit-frame-pointer enable(DEFAULT)/disable use of EBP as general purpose register. -fno-omit-frame-pointer replaces -fp -f[no-]exceptions enable/disable(DEFAULT) C++ exception handling table generation -fnon-call-exceptions enable/disable(DEFAULT) code that allows exceptions from trapping instructions to be caught Interprocedural Optimization (IPO) ---------------------------------- -[no-]ip enable(DEFAULT)/disable single-file IP optimization within files -ipo[n] enable multi-file IP optimization between files -ipo-c generate a multi-file object file (ipo_out.o) -ipo-S generate a multi-file assembly file (ipo_out.S) -ip-no-inlining disable full and partial inlining -ip-no-pinlining disable partial inlining -ipo-separate create one object file for every source file (overrides -ipo[n]) -ipo-jobs specify the number of jobs to be executed simultaneously during the IPO link phase Advanced Optimizations ---------------------- -unroll[n] set maximum number of times to unroll loops. Omit n to use default heuristics. Use n=0 to disable the loop unroller -[no-]unroll-aggressive enables more aggressive unrolling heuristics -funroll-loops unroll loops based on default heuristics -[no-]scalar-rep enable(DEFAULT)/disable scalar replacement (requires -O3) -[no-]ansi-alias enable/disable(DEFAULT) use of ANSI aliasing rules optimizations; user asserts that the program adheres to these rules -[no-]complex-limited-range enable/disable(DEFAULT) the use of the basic algebraic expansions of some complex arithmetic operations. This can allow for some performance improvement in programs which use a lot of complex arithmetic at the loss of some exponent range. -[no-]alias-const enable/disable(DEFAULT) a heuristic stating that if two arguments to a function have pointer type, a pointer to const does not alias a pointer to non-const. Also known as the input/output buffer rule, it assumes that input and output buffer arguments do not overlap. -fargument-alias arguments may alias each other and may alias global storage -fargument-noalias arguments do not alias each other but may alias global storage -fargument-noalias-global arguments do not alias each other and do not alias global storage -ftls-model= change thread-local storage model, where can be the following: global-dynamic, local-dynamic, initial-exec or local-exec -[no-]opt-multi-version-aggressive enables more aggressive multi-versioning to check for pointer aliasing and scalar replacement -opt-ra-region-strategy[=] select the method that the register allocator uses to partition each routine into regions routine - one region per routine block - one region per block trace - one region per trace loop - one region per loop default - compiler selects best option -[no-]vec enables(DEFAULT)/disables vectorization -[no-]vec-guard-write enables cache/bandwidth optimization for stores under conditionals within vector loops -vec-threshold[n] sets a threshold for the vectorization of loops based on the probability of profitable execution of the vectorized loop in parallel -opt-malloc-options={0|1|2|3|4} specify malloc configuration parameters. Specifying a non-zero value will cause alternate configuration parameters to be set for how malloc allocates and frees memory -opt-calloc enable/disable(DEFAULT) calls to fast calloc function -opt-jump-tables= control the generation of jump tables default - let the compiler decide when a jump table, a series of if-then-else constructs or a combination is generated large - generate jump tables up to a certain pre-defined size (64K entries) - generate jump tables up to in size use -no-opt-jump-tables to lower switch statements as chains of if-then-else constructs -fno-jump-tables do not generate jump tables for switches and if-then-else statements -opt-block-factor= specify blocking factor for loop blocking -ffreestanding compile in a freestanding environment where the standard library may not be present -opt-streaming-stores specifies whether streaming stores are generated always - enables generation of streaming stores under the assumption that the application is memory bound auto - compiler decides when streaming stores are used (DEFAULT) never - disables generation of streaming stores -ipp[=] link some or all of the Intel(R) Integrated Performance Primitives (Intel(R) IPP) libraries and bring in the associated headers common - link using the main libraries set. This is the default value when -ipp is specified crypto - link using the main libraries set and the crypto library nonpic - link using the version of the libraries that do not have position independent code nonpic_crypto - link using the crypto library and the version of the libraries that do not have position independent code -mkl[=] link to the Intel(R) Math Kernel Library (Intel(R) MKL) and bring in the associated headers parallel - link using the threaded Intel(R) MKL libraries. This is the default when -mkl is specified sequential - link using the non-threaded Intel(R) MKL libraries cluster - link using the Intel(R) MKL Cluster libraries plus the sequential Intel(R) MKL libraries -tbb link to the Intel(R) Threading Building Blocks (Intel(R) TBB) libraries and bring in the associated headers -[no-]opt-subscript-in-range assumes no overflows in the intermediate computation of the subscripts -[no-]use-intel-optimized-headers take advantage of the optimized header files Profile Guided Optimization (PGO) --------------------------------- -prof-dir specify directory for profiling output files (*.dyn and *.dpi) -prof-src-root specify project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -prof-src-root-cwd specify the current directory as the project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -[no-]prof-src-dir specify whether directory names of sources should be considered when looking up profile records within the .dpi file -prof-file specify file name for profiling summary file -[no-]prof-data-order enable/disable(DEFAULT) static data ordering with profiling -[no-]prof-func-order enable/disable(DEFAULT) function ordering with profiling -[no-]prof-func-groups enable(DEFAULT with PGO)/disable function grouping -prof-gen[=keyword] instrument program for profiling. Optional keyword may be srcpos or globdata -no-prof-gen disable profiling instrumentation -prof-use[=] enable use of profiling information during optimization weighted - invokes profmerge with -weighted option to scale data based on run durations [no]merge - enable(default)/disable the invocation of the profmerge tool -no-prof-use disable use of profiling information during optimization -opt-prefetch[=n] enable levels of prefetch insertion, where 0 disables. n may be 0 through 4 inclusive. Default is 2. -no-opt-prefetch disable(DEFAULT) prefetch insertion. Equivalent to -opt-prefetch=0 -p compile and link for function profiling with UNIX gprof tool On IA32 and Intel(r)64, -pg is also valid -f[no-]instrument-functions determine whether function entry and exit points are instrumented -prof-hotness-threshold= set the hotness threshold for function grouping and function ordering val indicates percentage of functions to be placed in hot region. This option requires -prof-use and -prof-func-groups or -prof-func-order Optimization Reports -------------------- -vec-report[n] control amount of vectorizer diagnostic information n=0 no diagnostic information n=1 indicate vectorized loops (DEFAULT) n=2 indicate vectorized/non-vectorized loops n=3 indicate vectorized/non-vectorized loops and prohibiting data dependence information n=4 indicate non-vectorized loops n=5 indicate non-vectorized loops and prohibiting data dependence information -opt-report [n] generate an optimization report to stderr 0 disable optimization report output 1 minimum report output 2 medium output (DEFAULT when enabled) 3 maximum report output -opt-report-file= specify the filename for the generated report -opt-report-phase= specify the phase that reports are generated against -opt-report-routine= reports on routines containing the given name -opt-report-help display the optimization phases available for reporting -tcheck [mode] enable analysis of threaded applications (requires Intel(R) Thread Checker; cannot be used with compiler alone) tci - instruments a program to perform a thread-count-independent analysis tcd - instruments a program to perform a thread-count-dependent analysis (DEFAULT when mode is not used) api - instruments a program at the api-imports level -tprofile generate instrumentation to analyze multi-threading performance (requires Intel(R) Thread Profiler; cannot be used with compiler alone) -tcollect[=] inserts instrumentation probes calling the Intel(R) Trace Collector API. The library -l is linked in the default being -lVT (requires Intel(R) Trace Collector) -tcollect-filter file Enable or disable the instrumentation of specified functions. (requires Intel(R) Trace Collector) OpenMP* and Parallel Processing ------------------------------- -openmp enable the compiler to generate multi-threaded code based on the OpenMP* directives -openmp-profile enable analysis of OpenMP application when the Intel(R) Thread Profiler is installed -openmp-stubs enables the user to compile OpenMP programs in sequential mode. The OpenMP directives are ignored and a stub OpenMP library is linked (sequential) -openmp-report{0|1|2} control the OpenMP parallelizer diagnostic level -openmp-lib choose which OpenMP library version to link with compat - use the GNU compatible OpenMP run-time libraries (DEFAULT) -openmp-link choose whether to link with the static or dynamic OpenMP libraries. Default is dynamic. -openmp-task choose which OpenMP tasking model to support omp - support OpenMP 3.0 tasking (DEFAULT) intel - support Intel taskqueuing -openmp-threadprivate choose which threadprivate implementation to use compat - use the GNU compatible thread local storage legacy - use the Intel compatible implementation (DEFAULT) -parallel enable the auto-parallelizer to generate multi-threaded code for loops that can be safely executed in parallel -par-report{0|1|2|3} control the auto-parallelizer diagnostic level -par-threshold[n] set threshold for the auto-parallelization of loops where n is an integer from 0 to 100 -[no-]par-runtime-control enable compiler to generate runtime control code for effective automatic parallelization -par-schedule-static[=n] Specifies a scheduling algorithm for DO loop iteration. Divides iterations into contiguous pieces. Size n if specified, equal sized pieces if not. -par-schedule-static-balanced[=n] Divides iterations into even-sized chunks. Size n if specified, equal sized pieces if not. -par-schedule-static-steal[=n] Divides iterations into even-sized chunks, but allows threads to steal parts of chunks from neighboring threads -par-schedule-dynamic[=n] Specifies a scheduling algorithm for DO loop iteration. Assigns iterations to threads in chunks dynamically. Chunk size is n iterations if specified, otherwise 1. -par-schedule-guided[=n] Specifies a scheduling algorithm for DO loop iteration. Indicates a minimum number of iterations. If specified, n is the minimum number, otherwise 1. -par-schedule-guided-analytical[=n] Divides iterations by using exponential distribution or dynamic distributions. -par-schedule-runtime Specifies a scheduling algorithm for DO loop iteration. Defers the scheduling decision until runtime. -par-schedule-auto Lets the compiler or run-time system determine the scheduling algorithm. -par-affinity=[,...][,][,] tune application performance by setting different thread affinity -par-num-threads= tune application performance by setting different number of threads Floating Point -------------- -fp-model enable floating point model variation [no-]except - enable/disable floating point semantics fast[=1|2] - enables more aggressive floating point optimizations precise - allows value-safe optimizations source - enables intermediates in source precision strict - enables -fp-model precise -fp-model except, disables contractions and enables pragma stdc fenv_access double - rounds intermediates in 53-bit (double) precision extended - rounds intermediates in 64-bit (extended) precision -fp-speculation= enable floating point speculations with the following conditions: fast - speculate floating point operations (DEFAULT) safe - speculate only when safe strict - same as off off - disables speculation of floating-point operations -pc32 set internal FPU precision to 24 bit significand -pc64 set internal FPU precision to 53 bit significand (DEFAULT) -pc80 set internal FPU precision to 64 bit significand -mp1 improve floating-point precision (speed impact less than -mp) -mieee-fp same as -mp, can be disabled with -mno-ieee-fp -[no-]prec-sqrt determine if certain square root optimizations are enabled -[no-]prec-div improve precision of FP divides (some speed impact) -[no-]fast-transcendentals generate a faster version of the transcendental functions -[no-]fp-port round fp results at assignments and casts (some speed impact) -fp-stack-check enable fp stack checking after every function/procedure call -rcd rounding mode to enable fast float-to-int conversions -[no-]ftz enable/disable flush denormal results to zero Inlining -------- -inline-level= control inline expansion: n=0 disable inlining n=1 inline functions declared with __inline, and perform C++ inlining n=2 inline any function, at the compiler's discretion -f[no-]inline inline functions declared with __inline, and perform C++ inlining -f[no-]inline-functions inline any function at the compiler's discretion -finline-limit= set maximum number of statements a function can have and still be considered for inlining -inline-min-size= set size limit for inlining small routines -no-inline-min-size no size limit for inlining small routines -inline-max-size= set size limit for inlining large routines -no-inline-max-size no size limit for inlining large routines -inline-max-total-size= maximum increase in size for inline function expansion -no-inline-max-total-size no size limit for inline function expansion -inline-max-per-routine= maximum number of inline instances in any function -no-inline-max-per-routine no maximum number of inline instances in any function -inline-max-per-compile= maximum number of inline instances in the current compilation -no-inline-max-per-compile no maximum number of inline instances in the current compilation -inline-factor= set inlining upper limits by n percentage -no-inline-factor do not set set inlining upper limits -inline-forceinline treat inline routines as forceinline -inline-calloc directs the compiler to inline calloc() calls as malloc()/memset() Output, Debug, PCH ------------------ -c compile to object (.o) only, do not link -S compile to assembly (.s) only, do not link -fsource-asm produce assembly file with optional source annotations (requires -S) -f[no-]verbose-asm produce assembly file with compiler comments (DEFAULT) (requires -S) -fcode-asm produce assembly file with optional code annotations (requires -S) -use-msasm support Microsoft* style assembly language insertion using MASM style syntax -o name output file -g produce symbolic debug information in object file (implies -O0 when another optimization option is not explicitly set) -debug [keyword] enable debug information and control output of enhanced debug information keywords: all, full, minimal, none, [no]inline-debug-info [no]variable-locations, [no]semantic-stepping, extended parallel [no]expr-source-pos -g0 disable generation of symbolic debug information -gdwarf-2 enable generation of debug information using the DWARF2 format -ftrapuv trap uninitialized variables -map-opts enable option mapping tool -print-multi-lib print information about libraries being used -pch-create create precompiled header file -pch-use use precompiled header file -pch enable automatic precompiled header file creation/usage -pch-dir name precompiled header directory Preprocessor ------------ -A[] create an assertion having value -C do not strip comments -D[=] define macro -U remove predefined macro -E preprocess to stdout -EP preprocess to stdout, omitting #line directives -P preprocess to file, omitting #line directives -I add directory to include file search path -idirafter add directory to the second include file search path (after -I) -isystem add directory to the start of the system include path -X, -nostdinc remove standard directories from include file search path -nostdinc++ remove standard C++ directories from include file search path -iprefix use with -iwithprefix as a prefix -iwithprefix append to the prefix passed in by -iprefix and put it on the include search path at the end of the include directories -iwithprefixbefore similar to -iwithprefix except the include directory is placed in the same place as -I command line include directories -iquote add directory to the front of the include file search path for files included with quotes, but not brackets -imacros treat as an #include file, but throw away all preprocessing while macros defined remain defined -H print include file order -B find libraries, headers and executables in -M generate makefile dependency information -MM similar to -M, but do not include system header files -MG similar to -M, but treat missing header files as generated files -MD preprocess and compile, generating output file containing dependency information ending with extension .d -MMD similar to -MD, but do not include system header files -MF generate makefile dependency information in file (must specify -M or -MM) -MP add a phony target for each dependency -MT change the default target rule for dependency generation -MQ same as -MT, but quotes special Make characters -dM output macro definitions in effect after preprocessing (use with -E) -dD same as -dM, but output #define directives in preprocessed source -dN same as -dD, but #define directives contain only macro names -gcc Predefine the "__GNUC__", "__GNUC_MINOR__", and "__GNUC_PATCHLEVEL__" macros (DEFAULT) -no-gcc Do not predefine GNUC macros listed in -gcc mode. Warning: can prevent correct system header compilation, see -gcc-sys -gcc-sys same as -no-gcc, except that the GNU macros are defined only while preprocessing the system include headers -no-icc do not predefine the "__ICC" and "__INTEL_COMPILER" macros. Warning: can prevent correct Intel header compilation -pragma-optimization-level=[Intel|GCC] process #pragma optimize using Intel (DEFAULT) or GCC syntax Component Control ----------------- -Qoption,, pass options to tool specified by -Qlocation,, set as the location of tool specified by -Qinstall set as root of compiler installation Language -------- -std= enable language support for , as described below c99 enable C99 support for C programs c++0x enable preliminary support for some C++0x features -x all source files found subsequent to -x will be recognized as one of the following types: c - C source file c++ - C++ source file c-header - C header file cpp-output - C pre-processed file c++-cpp-output - C++ pre-processed file assembler - assembly file assembler-with-cpp - assembly file that needs to be preprocessed none - revert to original file extension -ansi equivalent to GNU -ansi -strict-ansi strict ANSI conformance dialect -Zp[n] specify alignment constraint for structures where n=1,2,4,8,16. 16 is the default -fsyntax-only perform syntax and semantic checking only (no object file produced) -fpermissive allows extensions for some non-conformant code -funsigned-char change default char type to unsigned -fshort-enums allocate as many bytes as needed for enumerated types -f[no-]unsigned-bitfields change default bitfield type to unsigned -fno-rtti disable RTTI support -fno-implicit-templates never emit code for non-inline templates which are instantiated implicitly; only emit code for explicit instantiations -fno-implicit-inline-templates do not emit code for implicit instantiations of inline templates -ftemplate-depth-[n] control the depth in which recursive templates are expanded -[no]align analyze and reorder memory layout for variables and arrays -[no-]restrict enable/disable the 'restrict' keyword for disambiguating pointers -[no-]early-template-check enable/disable (DEFAULT) semantic checking of function template prototypes (before instantiation). Requires -gcc-version=340 or later -[no-]check-uninit check for uninitialized variables -export enable the export template feature -export-dir add directory to export template search path -help-pragma output supported pragmas and their usage syntax Compiler Diagnostics -------------------- -w disable all warnings -w control diagnostics n = 0 display errors (same as -w) n = 1 display warnings and errors (DEFAULT) n = 2 display remarks, warnings and errors -Wbrief print brief one-line diagnostics -Werror force warnings to be reported as errors -Werror-all force warnings and remarks to be reported as errors -Wall enable all warnings -Wcheck enable more strict diagnostics -Weffc++ enable effective C++ diagnostic warnings -wo[,,...] issue diagnostics L1 through LN only once -W[no-]fatal-errors ends compilation after the first error encountered -W[no-]format enable argument checking for calls to printf, scanf, etc -W[no-]format-security warn for uses of format strings and specifiers in printf, scanf, etc that may introduce security problems -W[no-]missing-declarations warn for global functions and variables without prior declaration -W[no-]missing-prototypes warn for missing prototypes -W[no-]strict-aliasing warn for code that might violate the optimizer's strict aliasing rules. Warnings are issued only when using -fstrict-aliasing or -ansi-alias. -W[no-]strict-prototypes warn for functions declared or defined without specified argument types -W[no-]pointer-arith warn for questionable pointer arithmetic -W[no-]uninitialized warn if a variable is used before being initialized -Winline enable inline diagnostics -W[no-]deprecated print warnings related to deprecated features -W[no-]abi warn if generated code is not C++ ABI compliant -Wcontext-limit= set maximum number of template instantiation contexts shown in diagnostic -Wcast-qual warn if cast is used to override pointer type qualifier -W[no-]unused-function warn if declared function is not used -W[no-]unknown-pragmas warn if an unknown #pragma directive is used (DEFAULT) -W[no-]main warn if return type of main is not expected -W[no-]comment[s] warn when comment -W[no-]conversion warn for implicit conversions that may alter a value -W[no-]return-type warn when a function uses the default int return type and warn when a return statement is used in a void function -W[no-]extra-tokens warn about extra tokens after prepreprocessor directives -W[no-]pragma-once warn about the use of #pragma once -W[no-]shadow warn when a variable declaration hides a previous declaration -Woverloaded-virtual warn when a function declaration hides virtual functions from a base class -W[no-]trigraphs warn about the recognition and conversion of trigraphs -W[no-]multichar warn if a multicharacter constant ('ABC') is used -W[no-]overflow warn for operations that could result in integer overflow -Wwrite-strings Issues a diagnostic message if const char * is converted to (non-const) char *. -Wp64 print diagnostics for 64-bit porting -W[no-]shorten-64-to-32 warn for values implicitly converted from a 64-bit to a 32-bit type. Similar to -Wp64 -[no]traceback specify whether the compiler generates data to allow for source file traceback information at runtime (only to be used when linking with Fortran programs) -noerror-limit set no maximum number on error-level or fatal-level error messages -diag-enable [,,...] enable the specified diagnostics or diagnostic groups -diag-disable [,,...] disable the specified diagnostics or diagnostic groups where may be individual diagnostic numbers or group names. where group names include: sc[n] - perform source code analysis: n=1 for critical errors, n=2 for all errors and n=3 for all errors and warnings sc-include - perform source code analysis on include files sc-parallel[n] - perform analysis of parallelization in source code: n=1 for critical errors, n=2 for errors, n=3 for all errors and warnings thread - enable diagnostics to aid in thread-enabling source port-win - enable diagnostics for GNU extensions that may cause errors when porting to Windows -diag-error [,,...] output the specified diagnostics or diagnostic groups as errors -diag-warning [,,...] output the specified diagnostics or diagnostic groups as warnings -diag-remark [,,...] output the the specified diagnostics or diagnostic groups as remarks -diag-dump display the currently enabled diagnostic messages to stdout or to a specified diagnostic output file. -diag-file[=] where diagnostics are emitted to. Not specifying this causes messages to be output to stderr -diag-file-append[=] where diagnostics are emitted to. When already exists, output is appended to the file -[no-]diag-id-numbers enable(DEFAULT)/disable the diagnostic specifiers to be output in numeric form -diag-error-limit specify the maximum number of errors emitted -diag-once [,,...] issue diagnostics v1 through vN only once Miscellaneous ------------- -V display compiler version information -dumpversion display the compiler version number only -dumpmachine display the target machine only --version display GCC style version information -[no-]sox enable/disable(DEFAULT) saving of compiler options and version in the executable -save-temps store the intermediate files in current directory and name them based on the source file. Only saves files that are generated by default -dryrun show driver tool commands but do not execute tools -v show driver tool commands and execute tools -[no-]multibyte-chars provide support for multi-byte characters -multiple-processes[=] create multiple processes that can be used to compile large numbers of source files at the same time Data ---- -Zp[n] specify alignment constraint for structures (n=1,2,4,8,16 -Zp16 DEFAULT) -[no]align analyze and reorder memory layout for variables and arrays -fminshared Compilation is for the main executable. Absolute addressing can be used and non-position independent code generated for symbols that are at least protected -fcommon Enables the compiler to treat common variables as if they were defined. That in turn allows the use of gprel addressing of common data variables. -fno-common disables -freg-struct-return return struct and union values in registers when possible -fstack-security-check enable overflow security checks. -f[no-]stack-security-check disables (DEFAULT) -fstack-protector enable stack overflow security checks. -f[no-]stack-protector disables (DEFAULT) -fpic, -fPIC generate position independent code (-fno-pic/-fno-PIC is DEFAULT) -fpie, -fPIE generate position independent code that will be linked into an executable (-fno-pie/-fno-PIE is DEFAULT) -[no-]global-hoist enable(DEFAULT)/disable external globals are load safe -f[no-]keep-static-consts enable/disable(DEFAULT) emission of static const variables even when not referenced -fpack-struct pack structure members together -f[no-]math-errno set ERRNO after calling standard math library functions -no-bss-init disable placement of zero-initialized variables in BSS (use DATA) -falign-functions=[2|16] align the start of functions on a 2 (DEFAULT) or 16 byte boundary -falign-functions align the start of functions to an optimal machine-dependent value. -fno-align-functions (DEFAULT) aligns on a 2-byte boundary -falign-stack= stack alignment method to use on entry to routines default - use default heuristics maintain-16-byte - do not assume any specific alignment, but maintain alignment in case the stack is already aligned assume-16-byte - assume the stack is aligned on 16-byte boundaries -fvisibility=[extern|default|protected|hidden|internal] Global symbols (data and functions) will get the visibility attribute given by default. Symbol visibility attributes explicitly set in the source code or using the symbol visibility attribute file options will override the -fvisibility setting -fvisibility-extern= Space separated symbols listed in the argument will geti visibility set to extern -fvisibility-default= Space separated symbols listed in the argument will get visibility set to default -fvisibility-protected= Space separated symbols listed in the argument will get visibility set to protected -fvisibility-hidden= Space separated symbols listed in the argument will get visibility set to hidden -fvisibility-internal= Space separated symbols listed in the argument will get visibility set to internal -fvisibility-inlines-hidden mark inline member functions as hidden Compatibility ------------- -gcc-name= name and location of gcc if not where expected -gxx-name= name and location of g++ if not where expected -gcc-version= specify the of gcc compatibility. Default value matches gcc version installed. Major/Minor versions listed but patch levels (i.e. 345) are permissible 320 - gcc 3.2.x compatibility 330 - gcc 3.3.x compatibility 340 - gcc 3.4.x compatibility 400 - gcc 4.0.x compatibility 410 - gcc 4.1.x compatibility 420 - gcc 4.2.x compatibility -fabi-version= directs the compiler to select a specific ABI implementation 0 - most recent ABI implementation 1 - g++ 3.2 compatible ABI implementation 2 - most conformant ABI implementation Linking/Linker -------------- -L instruct linker to search for libraries -l instruct the linker to link in the -l library -shared-intel link Intel provided libraries dynamically -static-intel link Intel provided libraries statically -shared-libgcc link libgcc dynamically -static-libgcc link libgcc statically -dynamic-linker select dynamic linker other than the default -no-cxxlib do not link in C++ runtime libraries -cxxlib[=dir] link using C++ run-time libraries provided with gcc dir is an optional top-level location for the gcc binaries and libraries -nodefaultlibs do not use standard libraries when linking -nostartfiles do not use standard startup files when linking -nostdlib do not use standard libraries and startup files when linking -static prevents linking with shared libraries -shared produce a shared object -Bstatic specify following libraries are linked statically -Bdynamic specify following libraries are linked dynamically -pthread use POSIX* thread library for multithreading support -cxxlib- tell the compiler which C++ run-time libraries to use nostd - do not link in standard C++ library -u pretend the is undefined -T direct linker to read link commands from -Xlinker pass directly to the linker for processing -Wa,[,,...] pass options o1, o2, etc. to the assembler -Wl,[,,...] pass options o1, o2, etc. to the linker for processing -Wp,[,,...] pass options o1, o2, etc. to the preprocessor Deprecated Options ------------------ -Ob use -inline-level= -cxxlib-gcc[=dir] use -cxxlib[=dir] -i-dynamic use -shared-intel -i-static use -static-intel -inline-debug-info use -debug inline-debug-info -mp use -fp-model -use-asm no replacement -A- use -U -prefetch use -opt-prefetch -prof-genx use -prof-gen=srcpos -openmp-lib=legacy use -openmp-lib=compat -xB use -xSSE2 (i32 only) -xK use -xSSE (i32 only) -axK No replacement -xW use -msse2 -axW use -msse2 -xN use -xSSE2 -axN use -axSSE2 -xP use -xSSE3 -axP use -axSSE3 -xT use -xSSSE3 -axT use -axSSSE3 -xS use -xSSE4.1 -axS use -axSSE4.1 -xO use -msse3 -func-groups use -prof-func-groups -diag-enable sv use -diag-enable sc -diag-enable sv-include use -diag-enable sc-include -diag-disable sv use -diag-disable sc -diag-sv use -diag-enable sc -diag-sv-error use -diag-disable warning -diag-sv-include use -diag-enable sc-include -diag-sv-level No replacement -diag-sv-sup use -diag-disable [,,...] -alias-args use -fargument-alias -c99 use -std=c99 -create-pch use -pch-create -fwritable-strings no replacement -Kc++ use -x c++ -no-alias-args use -fargument-noalias -use-pch use -pch-use -wn use -diag-error-limit -wd use -diag-disable -we use -diag-error -ww use -diag-warning -wr use -diag-remark -wo use -diag-once -help [category] print full or category help message Valid categories include advanced - Advanced Optimizations codegen - Code Generation compatibility - Compatibility component - Component Control data - Data deprecated - Deprecated Options diagnostics - Compiler Diagnostics float - Floating Point help - Help inline - Inlining ipo - Interprocedural Optimization (IPO) language - Language link - Linking/Linker misc - Miscellaneous opt - Optimization output - Output pgo - Profile Guided Optimization (PGO) preproc - Preprocessor reports - Optimization Reports openmp - OpenMP and Parallel Processing Copyright (C) 1985-2009, Intel Corporation. All rights reserved. * Other brands and names are the property of their respective owners. sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc --help Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc --help sh: Intel(R) C++ Compiler Help ========================== usage: icc [options] file1 [file2 ...] icpc [options] file1 [file2 ...] where options represents zero or more compiler options fileN is a C/C++ source (.C .c .cc .cpp .cxx .c++ .i .ii), assembly (.s .S), object (.o), static library (.a), or other linkable file The icpc command uses the same compiler options as the icc command. Invoking the compiler using icpc compiles .c and .i files as C++. Invoking the compiler using icc compiles .c and .i files as C. Using icpc always links in C++ libraries. Using icc only links in C++ libraries if C++ source is provided on the command line. Commonly used options may be placed in the icc .cfg file. Some options listed are only available on a specific system i32 indicates the feature is available on systems based on IA-32 architecture i64em indicates the feature is available on systems using Intel(R) 64 architecture Compiler Option List -------------------- Optimization ------------ -O1 optimize for maximum speed, but disable some optimizations which increase code size for a small speed benefit -O2 optimize for maximum speed (DEFAULT) -O3 optimize for maximum speed and enable more aggressive optimizations that may not improve performance on some programs -O same as -O2 -Os enable speed optimizations, but disable some optimizations which increase code size for small speed benefit -O0 disable optimizations -fast enable -xHOST -O3 -ipo -no-prec-div -static options set by -fast cannot be overridden with the exception of -xHOST, list options separately to change behavior -fno-alias assume no aliasing in program -fno-fnalias assume no aliasing within functions, but assume aliasing across calls -f[no-]builtin disable inline expansion of intrinsic functions -fno-builtin- disable the intrinsic -ffunction-sections separate functions for the linker (COMDAT) -fdata-sections same as -ffunction-sections -nolib-inline disable inline expansion of intrinsic functions Code Generation --------------- -x[,,...] generate specialized code to run exclusively on processors indicated by as described below Host generate instructions for the highest instruction set and processor available on the compilation host machine SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSE3_ATOM Can generate MOVBE instructions for Intel processors and can optimize for the Intel(R) Atom(TM) processor. SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for SSE4 Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -ax[,,...] generate code specialized for processors specified by while also generating generic IA-32 instructions. includes one or more of the following: SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -mcpu= same as -mtune= -mtune= optimize for a specific pentium3 - optimize for Pentium(R) III processors pentium4 - optimize for Pentium(R) 4 processor (DEFAULT) -march= generate code exclusively for a given pentium3 - streaming SIMD extensions pentium4 - Pentium(R) 4 New Instructions -mia32 generates code which will run on any Intel Pentium or later processor. Disables any default extended instruction settings, and any previously set extended instruction settings. -msse generate code for Intel Pentium III and compatible Intel processors -msse2 generate code for Intel Pentium 4 and compatible Intel processors -msse3 generate code for Intel(R) Core(TM) Duo processors, Intel(R) Core(TM) Solo processors, Intel Pentium 4 and compatible Intel processors with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support -mssse3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) -msse4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions -minstruction= Refine instruction set output for the selected target processor [no]movbe - Do/do not generate MOVBE instructions with SSE3_ATOM (requires -xSSE3_ATOM) -f[no-]omit-frame-pointer enable(DEFAULT)/disable use of EBP as general purpose register. -fno-omit-frame-pointer replaces -fp -f[no-]exceptions enable/disable(DEFAULT) C++ exception handling table generation -fnon-call-exceptions enable/disable(DEFAULT) code that allows exceptions from trapping instructions to be caught Interprocedural Optimization (IPO) ---------------------------------- -[no-]ip enable(DEFAULT)/disable single-file IP optimization within files -ipo[n] enable multi-file IP optimization between files -ipo-c generate a multi-file object file (ipo_out.o) -ipo-S generate a multi-file assembly file (ipo_out.S) -ip-no-inlining disable full and partial inlining -ip-no-pinlining disable partial inlining -ipo-separate create one object file for every source file (overrides -ipo[n]) -ipo-jobs specify the number of jobs to be executed simultaneously during the IPO link phase Advanced Optimizations ---------------------- -unroll[n] set maximum number of times to unroll loops. Omit n to use default heuristics. Use n=0 to disable the loop unroller -[no-]unroll-aggressive enables more aggressive unrolling heuristics -funroll-loops unroll loops based on default heuristics -[no-]scalar-rep enable(DEFAULT)/disable scalar replacement (requires -O3) -[no-]ansi-alias enable/disable(DEFAULT) use of ANSI aliasing rules optimizations; user asserts that the program adheres to these rules -[no-]complex-limited-range enable/disable(DEFAULT) the use of the basic algebraic expansions of some complex arithmetic operations. This can allow for some performance improvement in programs which use a lot of complex arithmetic at the loss of some exponent range. -[no-]alias-const enable/disable(DEFAULT) a heuristic stating that if two arguments to a function have pointer type, a pointer to const does not alias a pointer to non-const. Also known as the input/output buffer rule, it assumes that input and output buffer arguments do not overlap. -fargument-alias arguments may alias each other and may alias global storage -fargument-noalias arguments do not alias each other but may alias global storage -fargument-noalias-global arguments do not alias each other and do not alias global storage -ftls-model= change thread-local storage model, where can be the following: global-dynamic, local-dynamic, initial-exec or local-exec -[no-]opt-multi-version-aggressive enables more aggressive multi-versioning to check for pointer aliasing and scalar replacement -opt-ra-region-strategy[=] select the method that the register allocator uses to partition each routine into regions routine - one region per routine block - one region per block trace - one region per trace loop - one region per loop default - compiler selects best option -[no-]vec enables(DEFAULT)/disables vectorization -[no-]vec-guard-write enables cache/bandwidth optimization for stores under conditionals within vector loops -vec-threshold[n] sets a threshold for the vectorization of loops based on the probability of profitable execution of the vectorized loop in parallel -opt-malloc-options={0|1|2|3|4} specify malloc configuration parameters. Specifying a non-zero value will cause alternate configuration parameters to be set for how malloc allocates and frees memory -opt-calloc enable/disable(DEFAULT) calls to fast calloc function -opt-jump-tables= control the generation of jump tables default - let the compiler decide when a jump table, a series of if-then-else constructs or a combination is generated large - generate jump tables up to a certain pre-defined size (64K entries) - generate jump tables up to in size use -no-opt-jump-tables to lower switch statements as chains of if-then-else constructs -fno-jump-tables do not generate jump tables for switches and if-then-else statements -opt-block-factor= specify blocking factor for loop blocking -ffreestanding compile in a freestanding environment where the standard library may not be present -opt-streaming-stores specifies whether streaming stores are generated always - enables generation of streaming stores under the assumption that the application is memory bound auto - compiler decides when streaming stores are used (DEFAULT) never - disables generation of streaming stores -ipp[=] link some or all of the Intel(R) Integrated Performance Primitives (Intel(R) IPP) libraries and bring in the associated headers common - link using the main libraries set. This is the default value when -ipp is specified crypto - link using the main libraries set and the crypto library nonpic - link using the version of the libraries that do not have position independent code nonpic_crypto - link using the crypto library and the version of the libraries that do not have position independent code -mkl[=] link to the Intel(R) Math Kernel Library (Intel(R) MKL) and bring in the associated headers parallel - link using the threaded Intel(R) MKL libraries. This is the default when -mkl is specified sequential - link using the non-threaded Intel(R) MKL libraries cluster - link using the Intel(R) MKL Cluster libraries plus the sequential Intel(R) MKL libraries -tbb link to the Intel(R) Threading Building Blocks (Intel(R) TBB) libraries and bring in the associated headers -[no-]opt-subscript-in-range assumes no overflows in the intermediate computation of the subscripts -[no-]use-intel-optimized-headers take advantage of the optimized header files Profile Guided Optimization (PGO) --------------------------------- -prof-dir specify directory for profiling output files (*.dyn and *.dpi) -prof-src-root specify project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -prof-src-root-cwd specify the current directory as the project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -[no-]prof-src-dir specify whether directory names of sources should be considered when looking up profile records within the .dpi file -prof-file specify file name for profiling summary file -[no-]prof-data-order enable/disable(DEFAULT) static data ordering with profiling -[no-]prof-func-order enable/disable(DEFAULT) function ordering with profiling -[no-]prof-func-groups enable(DEFAULT with PGO)/disable function grouping -prof-gen[=keyword] instrument program for profiling. Optional keyword may be srcpos or globdata -no-prof-gen disable profiling instrumentation -prof-use[=] enable use of profiling information during optimization weighted - invokes profmerge with -weighted option to scale data based on run durations [no]merge - enable(default)/disable the invocation of the profmerge tool -no-prof-use disable use of profiling information during optimization -opt-prefetch[=n] enable levels of prefetch insertion, where 0 disables. n may be 0 through 4 inclusive. Default is 2. -no-opt-prefetch disable(DEFAULT) prefetch insertion. Equivalent to -opt-prefetch=0 -p compile and link for function profiling with UNIX gprof tool On IA32 and Intel(r)64, -pg is also valid -f[no-]instrument-functions determine whether function entry and exit points are instrumented -prof-hotness-threshold= set the hotness threshold for function grouping and function ordering val indicates percentage of functions to be placed in hot region. This option requires -prof-use and -prof-func-groups or -prof-func-order Optimization Reports -------------------- -vec-report[n] control amount of vectorizer diagnostic information n=0 no diagnostic information n=1 indicate vectorized loops (DEFAULT) n=2 indicate vectorized/non-vectorized loops n=3 indicate vectorized/non-vectorized loops and prohibiting data dependence information n=4 indicate non-vectorized loops n=5 indicate non-vectorized loops and prohibiting data dependence information -opt-report [n] generate an optimization report to stderr 0 disable optimization report output 1 minimum report output 2 medium output (DEFAULT when enabled) 3 maximum report output -opt-report-file= specify the filename for the generated report -opt-report-phase= specify the phase that reports are generated against -opt-report-routine= reports on routines containing the given name -opt-report-help display the optimization phases available for reporting -tcheck [mode] enable analysis of threaded applications (requires Intel(R) Thread Checker; cannot be used with compiler alone) tci - instruments a program to perform a thread-count-independent analysis tcd - instruments a program to perform a thread-count-dependent analysis (DEFAULT when mode is not used) api - instruments a program at the api-imports level -tprofile generate instrumentation to analyze multi-threading performance (requires Intel(R) Thread Profiler; cannot be used with compiler alone) -tcollect[=] inserts instrumentation probes calling the Intel(R) Trace Collector API. The library -l is linked in the default being -lVT (requires Intel(R) Trace Collector) -tcollect-filter file Enable or disable the instrumentation of specified functions. (requires Intel(R) Trace Collector) OpenMP* and Parallel Processing ------------------------------- -openmp enable the compiler to generate multi-threaded code based on the OpenMP* directives -openmp-profile enable analysis of OpenMP application when the Intel(R) Thread Profiler is installed -openmp-stubs enables the user to compile OpenMP programs in sequential mode. The OpenMP directives are ignored and a stub OpenMP library is linked (sequential) -openmp-report{0|1|2} control the OpenMP parallelizer diagnostic level -openmp-lib choose which OpenMP library version to link with compat - use the GNU compatible OpenMP run-time libraries (DEFAULT) -openmp-link choose whether to link with the static or dynamic OpenMP libraries. Default is dynamic. -openmp-task choose which OpenMP tasking model to support omp - support OpenMP 3.0 tasking (DEFAULT) intel - support Intel taskqueuing -openmp-threadprivate choose which threadprivate implementation to use compat - use the GNU compatible thread local storage legacy - use the Intel compatible implementation (DEFAULT) -parallel enable the auto-parallelizer to generate multi-threaded code for loops that can be safely executed in parallel -par-report{0|1|2|3} control the auto-parallelizer diagnostic level -par-threshold[n] set threshold for the auto-parallelization of loops where n is an integer from 0 to 100 -[no-]par-runtime-control enable compiler to generate runtime control code for effective automatic parallelization -par-schedule-static[=n] Specifies a scheduling algorithm for DO loop iteration. Divides iterations into contiguous pieces. Size n if specified, equal sized pieces if not. -par-schedule-static-balanced[=n] Divides iterations into even-sized chunks. Size n if specified, equal sized pieces if not. -par-schedule-static-steal[=n] Divides iterations into even-sized chunks, but allows threads to steal parts of chunks from neighboring threads -par-schedule-dynamic[=n] Specifies a scheduling algorithm for DO loop iteration. Assigns iterations to threads in chunks dynamically. Chunk size is n iterations if specified, otherwise 1. -par-schedule-guided[=n] Specifies a scheduling algorithm for DO loop iteration. Indicates a minimum number of iterations. If specified, n is the minimum number, otherwise 1. -par-schedule-guided-analytical[=n] Divides iterations by using exponential distribution or dynamic distributions. -par-schedule-runtime Specifies a scheduling algorithm for DO loop iteration. Defers the scheduling decision until runtime. -par-schedule-auto Lets the compiler or run-time system determine the scheduling algorithm. -par-affinity=[,...][,][,] tune application performance by setting different thread affinity -par-num-threads= tune application performance by setting different number of threads Floating Point -------------- -fp-model enable floating point model variation [no-]except - enable/disable floating point semantics fast[=1|2] - enables more aggressive floating point optimizations precise - allows value-safe optimizations source - enables intermediates in source precision strict - enables -fp-model precise -fp-model except, disables contractions and enables pragma stdc fenv_access double - rounds intermediates in 53-bit (double) precision extended - rounds intermediates in 64-bit (extended) precision -fp-speculation= enable floating point speculations with the following conditions: fast - speculate floating point operations (DEFAULT) safe - speculate only when safe strict - same as off off - disables speculation of floating-point operations -pc32 set internal FPU precision to 24 bit significand -pc64 set internal FPU precision to 53 bit significand (DEFAULT) -pc80 set internal FPU precision to 64 bit significand -mp1 improve floating-point precision (speed impact less than -mp) -mieee-fp same as -mp, can be disabled with -mno-ieee-fp -[no-]prec-sqrt determine if certain square root optimizations are enabled -[no-]prec-div improve precision of FP divides (some speed impact) -[no-]fast-transcendentals generate a faster version of the transcendental functions -[no-]fp-port round fp results at assignments and casts (some speed impact) -fp-stack-check enable fp stack checking after every function/procedure call -rcd rounding mode to enable fast float-to-int conversions -[no-]ftz enable/disable flush denormal results to zero Inlining -------- -inline-level= control inline expansion: n=0 disable inlining n=1 inline functions declared with __inline, and perform C++ inlining n=2 inline any function, at the compiler's discretion -f[no-]inline inline functions declared with __inline, and perform C++ inlining -f[no-]inline-functions inline any function at the compiler's discretion -finline-limit= set maximum number of statements a function can have and still be considered for inlining -inline-min-size= set size limit for inlining small routines -no-inline-min-size no size limit for inlining small routines -inline-max-size= set size limit for inlining large routines -no-inline-max-size no size limit for inlining large routines -inline-max-total-size= maximum increase in size for inline function expansion -no-inline-max-total-size no size limit for inline function expansion -inline-max-per-routine= maximum number of inline instances in any function -no-inline-max-per-routine no maximum number of inline instances in any function -inline-max-per-compile= maximum number of inline instances in the current compilation -no-inline-max-per-compile no maximum number of inline instances in the current compilation -inline-factor= set inlining upper limits by n percentage -no-inline-factor do not set set inlining upper limits -inline-forceinline treat inline routines as forceinline -inline-calloc directs the compiler to inline calloc() calls as malloc()/memset() Output, Debug, PCH ------------------ -c compile to object (.o) only, do not link -S compile to assembly (.s) only, do not link -fsource-asm produce assembly file with optional source annotations (requires -S) -f[no-]verbose-asm produce assembly file with compiler comments (DEFAULT) (requires -S) -fcode-asm produce assembly file with optional code annotations (requires -S) -use-msasm support Microsoft* style assembly language insertion using MASM style syntax -o name output file -g produce symbolic debug information in object file (implies -O0 when another optimization option is not explicitly set) -debug [keyword] enable debug information and control output of enhanced debug information keywords: all, full, minimal, none, [no]inline-debug-info [no]variable-locations, [no]semantic-stepping, extended parallel [no]expr-source-pos -g0 disable generation of symbolic debug information -gdwarf-2 enable generation of debug information using the DWARF2 format -ftrapuv trap uninitialized variables -map-opts enable option mapping tool -print-multi-lib print information about libraries being used -pch-create create precompiled header file -pch-use use precompiled header file -pch enable automatic precompiled header file creation/usage -pch-dir name precompiled header directory Preprocessor ------------ -A[] create an assertion having value -C do not strip comments -D[=] define macro -U remove predefined macro -E preprocess to stdout -EP preprocess to stdout, omitting #line directives -P preprocess to file, omitting #line directives -I add directory to include file search path -idirafter add directory to the second include file search path (after -I) -isystem add directory to the start of the system include path -X, -nostdinc remove standard directories from include file search path -nostdinc++ remove standard C++ directories from include file search path -iprefix use with -iwithprefix as a prefix -iwithprefix append to the prefix passed in by -iprefix and put it on the include search path at the end of the include directories -iwithprefixbefore similar to -iwithprefix except the include directory is placed in the same place as -I command line include directories -iquote add directory to the front of the include file search path for files included with quotes, but not brackets -imacros treat as an #include file, but throw away all preprocessing while macros defined remain defined -H print include file order -B find libraries, headers and executables in -M generate makefile dependency information -MM similar to -M, but do not include system header files -MG similar to -M, but treat missing header files as generated files -MD preprocess and compile, generating output file containing dependency information ending with extension .d -MMD similar to -MD, but do not include system header files -MF generate makefile dependency information in file (must specify -M or -MM) -MP add a phony target for each dependency -MT change the default target rule for dependency generation -MQ same as -MT, but quotes special Make characters -dM output macro definitions in effect after preprocessing (use with -E) -dD same as -dM, but output #define directives in preprocessed source -dN same as -dD, but #define directives contain only macro names -gcc Predefine the "__GNUC__", "__GNUC_MINOR__", and "__GNUC_PATCHLEVEL__" macros (DEFAULT) -no-gcc Do not predefine GNUC macros listed in -gcc mode. Warning: can prevent correct system header compilation, see -gcc-sys -gcc-sys same as -no-gcc, except that the GNU macros are defined only while preprocessing the system include headers -no-icc do not predefine the "__ICC" and "__INTEL_COMPILER" macros. Warning: can prevent correct Intel header compilation -pragma-optimization-level=[Intel|GCC] process #pragma optimize using Intel (DEFAULT) or GCC syntax Component Control ----------------- -Qoption,, pass options to tool specified by -Qlocation,, set as the location of tool specified by -Qinstall set as root of compiler installation Language -------- -std= enable language support for , as described below c99 enable C99 support for C programs c++0x enable preliminary support for some C++0x features -x all source files found subsequent to -x will be recognized as one of the following types: c - C source file c++ - C++ source file c-header - C header file cpp-output - C pre-processed file c++-cpp-output - C++ pre-processed file assembler - assembly file assembler-with-cpp - assembly file that needs to be preprocessed none - revert to original file extension -ansi equivalent to GNU -ansi -strict-ansi strict ANSI conformance dialect -Zp[n] specify alignment constraint for structures where n=1,2,4,8,16. 16 is the default -fsyntax-only perform syntax and semantic checking only (no object file produced) -fpermissive allows extensions for some non-conformant code -funsigned-char change default char type to unsigned -fshort-enums allocate as many bytes as needed for enumerated types -f[no-]unsigned-bitfields change default bitfield type to unsigned -fno-rtti disable RTTI support -fno-implicit-templates never emit code for non-inline templates which are instantiated implicitly; only emit code for explicit instantiations -fno-implicit-inline-templates do not emit code for implicit instantiations of inline templates -ftemplate-depth-[n] control the depth in which recursive templates are expanded -[no]align analyze and reorder memory layout for variables and arrays -[no-]restrict enable/disable the 'restrict' keyword for disambiguating pointers -[no-]early-template-check enable/disable (DEFAULT) semantic checking of function template prototypes (before instantiation). Requires -gcc-version=340 or later -[no-]check-uninit check for uninitialized variables -export enable the export template feature -export-dir add directory to export template search path -help-pragma output supported pragmas and their usage syntax Compiler Diagnostics -------------------- -w disable all warnings -w control diagnostics n = 0 display errors (same as -w) n = 1 display warnings and errors (DEFAULT) n = 2 display remarks, warnings and errors -Wbrief print brief one-line diagnostics -Werror force warnings to be reported as errors -Werror-all force warnings and remarks to be reported as errors -Wall enable all warnings -Wcheck enable more strict diagnostics -Weffc++ enable effective C++ diagnostic warnings -wo[,,...] issue diagnostics L1 through LN only once -W[no-]fatal-errors ends compilation after the first error encountered -W[no-]format enable argument checking for calls to printf, scanf, etc -W[no-]format-security warn for uses of format strings and specifiers in printf, scanf, etc that may introduce security problems -W[no-]missing-declarations warn for global functions and variables without prior declaration -W[no-]missing-prototypes warn for missing prototypes -W[no-]strict-aliasing warn for code that might violate the optimizer's strict aliasing rules. Warnings are issued only when using -fstrict-aliasing or -ansi-alias. -W[no-]strict-prototypes warn for functions declared or defined without specified argument types -W[no-]pointer-arith warn for questionable pointer arithmetic -W[no-]uninitialized warn if a variable is used before being initialized -Winline enable inline diagnostics -W[no-]deprecated print warnings related to deprecated features -W[no-]abi warn if generated code is not C++ ABI compliant -Wcontext-limit= set maximum number of template instantiation contexts shown in diagnostic -Wcast-qual warn if cast is used to override pointer type qualifier -W[no-]unused-function warn if declared function is not used -W[no-]unknown-pragmas warn if an unknown #pragma directive is used (DEFAULT) -W[no-]main warn if return type of main is not expected -W[no-]comment[s] warn when comment -W[no-]conversion warn for implicit conversions that may alter a value -W[no-]return-type warn when a function uses the default int return type and warn when a return statement is used in a void function -W[no-]extra-tokens warn about extra tokens after prepreprocessor directives -W[no-]pragma-once warn about the use of #pragma once -W[no-]shadow warn when a variable declaration hides a previous declaration -Woverloaded-virtual warn when a function declaration hides virtual functions from a base class -W[no-]trigraphs warn about the recognition and conversion of trigraphs -W[no-]multichar warn if a multicharacter constant ('ABC') is used -W[no-]overflow warn for operations that could result in integer overflow -Wwrite-strings Issues a diagnostic message if const char * is converted to (non-const) char *. -Wp64 print diagnostics for 64-bit porting -W[no-]shorten-64-to-32 warn for values implicitly converted from a 64-bit to a 32-bit type. Similar to -Wp64 -[no]traceback specify whether the compiler generates data to allow for source file traceback information at runtime (only to be used when linking with Fortran programs) -noerror-limit set no maximum number on error-level or fatal-level error messages -diag-enable [,,...] enable the specified diagnostics or diagnostic groups -diag-disable [,,...] disable the specified diagnostics or diagnostic groups where may be individual diagnostic numbers or group names. where group names include: sc[n] - perform source code analysis: n=1 for critical errors, n=2 for all errors and n=3 for all errors and warnings sc-include - perform source code analysis on include files sc-parallel[n] - perform analysis of parallelization in source code: n=1 for critical errors, n=2 for errors, n=3 for all errors and warnings thread - enable diagnostics to aid in thread-enabling source port-win - enable diagnostics for GNU extensions that may cause errors when porting to Windows -diag-error [,,...] output the specified diagnostics or diagnostic groups as errors -diag-warning [,,...] output the specified diagnostics or diagnostic groups as warnings -diag-remark [,,...] output the the specified diagnostics or diagnostic groups as remarks -diag-dump display the currently enabled diagnostic messages to stdout or to a specified diagnostic output file. -diag-file[=] where diagnostics are emitted to. Not specifying this causes messages to be output to stderr -diag-file-append[=] where diagnostics are emitted to. When already exists, output is appended to the file -[no-]diag-id-numbers enable(DEFAULT)/disable the diagnostic specifiers to be output in numeric form -diag-error-limit specify the maximum number of errors emitted -diag-once [,,...] issue diagnostics v1 through vN only once Miscellaneous ------------- -V display compiler version information -dumpversion display the compiler version number only -dumpmachine display the target machine only --version display GCC style version information -[no-]sox enable/disable(DEFAULT) saving of compiler options and version in the executable -save-temps store the intermediate files in current directory and name them based on the source file. Only saves files that are generated by default -dryrun show driver tool commands but do not execute tools -v show driver tool commands and execute tools -[no-]multibyte-chars provide support for multi-byte characters -multiple-processes[=] create multiple processes that can be used to compile large numbers of source files at the same time Data ---- -Zp[n] specify alignment constraint for structures (n=1,2,4,8,16 -Zp16 DEFAULT) -[no]align analyze and reorder memory layout for variables and arrays -fminshared Compilation is for the main executable. Absolute addressing can be used and non-position independent code generated for symbols that are at least protected -fcommon Enables the compiler to treat common variables as if they were defined. That in turn allows the use of gprel addressing of common data variables. -fno-common disables -freg-struct-return return struct and union values in registers when possible -fstack-security-check enable overflow security checks. -f[no-]stack-security-check disables (DEFAULT) -fstack-protector enable stack overflow security checks. -f[no-]stack-protector disables (DEFAULT) -fpic, -fPIC generate position independent code (-fno-pic/-fno-PIC is DEFAULT) -fpie, -fPIE generate position independent code that will be linked into an executable (-fno-pie/-fno-PIE is DEFAULT) -[no-]global-hoist enable(DEFAULT)/disable external globals are load safe -f[no-]keep-static-consts enable/disable(DEFAULT) emission of static const variables even when not referenced -fpack-struct pack structure members together -f[no-]math-errno set ERRNO after calling standard math library functions -no-bss-init disable placement of zero-initialized variables in BSS (use DATA) -falign-functions=[2|16] align the start of functions on a 2 (DEFAULT) or 16 byte boundary -falign-functions align the start of functions to an optimal machine-dependent value. -fno-align-functions (DEFAULT) aligns on a 2-byte boundary -falign-stack= stack alignment method to use on entry to routines default - use default heuristics maintain-16-byte - do not assume any specific alignment, but maintain alignment in case the stack is already aligned assume-16-byte - assume the stack is aligned on 16-byte boundaries -fvisibility=[extern|default|protected|hidden|internal] Global symbols (data and functions) will get the visibility attribute given by default. Symbol visibility attributes explicitly set in the source code or using the symbol visibility attribute file options will override the -fvisibility setting -fvisibility-extern= Space separated symbols listed in the argument will geti visibility set to extern -fvisibility-default= Space separated symbols listed in the argument will get visibility set to default -fvisibility-protected= Space separated symbols listed in the argument will get visibility set to protected -fvisibility-hidden= Space separated symbols listed in the argument will get visibility set to hidden -fvisibility-internal= Space separated symbols listed in the argument will get visibility set to internal -fvisibility-inlines-hidden mark inline member functions as hidden Compatibility ------------- -gcc-name= name and location of gcc if not where expected -gxx-name= name and location of g++ if not where expected -gcc-version= specify the of gcc compatibility. Default value matches gcc version installed. Major/Minor versions listed but patch levels (i.e. 345) are permissible 320 - gcc 3.2.x compatibility 330 - gcc 3.3.x compatibility 340 - gcc 3.4.x compatibility 400 - gcc 4.0.x compatibility 410 - gcc 4.1.x compatibility 420 - gcc 4.2.x compatibility -fabi-version= directs the compiler to select a specific ABI implementation 0 - most recent ABI implementation 1 - g++ 3.2 compatible ABI implementation 2 - most conformant ABI implementation Linking/Linker -------------- -L instruct linker to search for libraries -l instruct the linker to link in the -l library -shared-intel link Intel provided libraries dynamically -static-intel link Intel provided libraries statically -shared-libgcc link libgcc dynamically -static-libgcc link libgcc statically -dynamic-linker select dynamic linker other than the default -no-cxxlib do not link in C++ runtime libraries -cxxlib[=dir] link using C++ run-time libraries provided with gcc dir is an optional top-level location for the gcc binaries and libraries -nodefaultlibs do not use standard libraries when linking -nostartfiles do not use standard startup files when linking -nostdlib do not use standard libraries and startup files when linking -static prevents linking with shared libraries -shared produce a shared object -Bstatic specify following libraries are linked statically -Bdynamic specify following libraries are linked dynamically -pthread use POSIX* thread library for multithreading support -cxxlib- tell the compiler which C++ run-time libraries to use nostd - do not link in standard C++ library -u pretend the is undefined -T direct linker to read link commands from -Xlinker pass directly to the linker for processing -Wa,[,,...] pass options o1, o2, etc. to the assembler -Wl,[,,...] pass options o1, o2, etc. to the linker for processing -Wp,[,,...] pass options o1, o2, etc. to the preprocessor Deprecated Options ------------------ -Ob use -inline-level= -cxxlib-gcc[=dir] use -cxxlib[=dir] -i-dynamic use -shared-intel -i-static use -static-intel -inline-debug-info use -debug inline-debug-info -mp use -fp-model -use-asm no replacement -A- use -U -prefetch use -opt-prefetch -prof-genx use -prof-gen=srcpos -openmp-lib=legacy use -openmp-lib=compat -xB use -xSSE2 (i32 only) -xK use -xSSE (i32 only) -axK No replacement -xW use -msse2 -axW use -msse2 -xN use -xSSE2 -axN use -axSSE2 -xP use -xSSE3 -axP use -axSSE3 -xT use -xSSSE3 -axT use -axSSSE3 -xS use -xSSE4.1 -axS use -axSSE4.1 -xO use -msse3 -func-groups use -prof-func-groups -diag-enable sv use -diag-enable sc -diag-enable sv-include use -diag-enable sc-include -diag-disable sv use -diag-disable sc -diag-sv use -diag-enable sc -diag-sv-error use -diag-disable warning -diag-sv-include use -diag-enable sc-include -diag-sv-level No replacement -diag-sv-sup use -diag-disable [,,...] -alias-args use -fargument-alias -c99 use -std=c99 -create-pch use -pch-create -fwritable-strings no replacement -Kc++ use -x c++ -no-alias-args use -fargument-noalias -use-pch use -pch-use -wn use -diag-error-limit -wd use -diag-disable -we use -diag-error -ww use -diag-warning -wr use -diag-remark -wo use -diag-once -help [category] print full or category help message Valid categories include advanced - Advanced Optimizations codegen - Code Generation compatibility - Compatibility component - Component Control data - Data deprecated - Deprecated Options diagnostics - Compiler Diagnostics float - Floating Point help - Help inline - Inlining ipo - Interprocedural Optimization (IPO) language - Language link - Linking/Linker misc - Miscellaneous opt - Optimization output - Output pgo - Profile Guided Optimization (PGO) preproc - Preprocessor reports - Optimization Reports openmp - OpenMP and Parallel Processing Copyright (C) 1985-2009, Intel Corporation. All rights reserved. * Other brands and names are the property of their respective owners. Trying Cxx compiler flag -O3 sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -wd1572 -O3 /tmp/petsc-3SW45q/config.setCompilers/conftest.cc Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icpc -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -wd1572 -O3 /tmp/petsc-3SW45q/config.setCompilers/conftest.cc sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" int main() { ; return 0; } Added Cxx compiler flag -O3 Popping language Cxx Pushing language FC sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort --version Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort --version sh: ifort (IFORT) 11.1 20090827 Copyright (C) 1985-2009 Intel Corporation. All rights reserved. getCompilerVersion: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort ifort (IFORT) 11.1 20090827 sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort --help Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort --help sh: Intel(R) Fortran Compiler Help ============================== usage: ifort [options] file1 [file2 ...] where options represents zero or more compiler options fileN is a Fortran source (.f .for .ftn .f90 .fpp .F .FOR .F90 .i .i90), assembly (.s .S), object (.o), static library (.a), or other linkable file Commonly used options may be placed in the ifort .cfg file. Some options listed are only available on a specific system i32 indicates the feature is available on systems based on IA-32 architecture i64em indicates the feature is available on systems using Intel(R) 64 architecture Compiler Option List -------------------- Optimization ------------ -O1 optimize for maximum speed, but disable some optimizations which increase code size for a small speed benefit -O2 optimize for maximum speed (DEFAULT) -O3 optimize for maximum speed and enable more aggressive optimizations that may not improve performance on some programs -O same as -O2 -Os enable speed optimizations, but disable some optimizations which increase code size for small speed benefit -O0 disable optimizations -fast enable -xHOST -O3 -ipo -no-prec-div -static options set by -fast cannot be overridden with the exception of -xHOST, list options separately to change behavior -fno-alias assume no aliasing in program -fno-fnalias assume no aliasing within functions, but assume aliasing across calls -nolib-inline disable inline expansion of intrinsic functions Code Generation --------------- -x[,,...] generate specialized code to run exclusively on processors indicated by as described below Host generate instructions for the highest instruction set and processor available on the compilation host machine SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSE3_ATOM Can generate MOVBE instructions for Intel processors and can optimize for the Intel(R) Atom(TM) processor. SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for SSE4 Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -ax[,,...] generate code specialized for processors specified by while also generating generic IA-32 instructions. includes one or more of the following: SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -tune pn1 - optimize for Pentium(R) processor (i32 only) pn2 - optimize for Pentium(R) Pro, Pentium(R) II, and Pentium(R) III processors (i32 only) pn3 - same as pn2 (i32 only) pn4 - optimize for Pentium(R) 4 processor (DEFAULT) -arch pn1 - optimize for Pentium(R) processor (i32 only) pn2 - optimize for Pentium(R) Pro, Pentium(R) II, and Pentium(R) III processors (i32 only) pn3 - same as pn2 (i32 only) pn4 - optimize for Pentium(R) 4 processor (DEFAULT) SSE - Intel Pentium III and compatible Intel processors (i32 only) SSE2 - Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations (i32 only) SSE3 - Intel(R) Core(TM) processor family. Code is expected to run properly on any processor that supports SSE3, SSE2 and SSE instruction sets SSSE3 - Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 - Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions IA32 - generate generic IA-32 architecture code for Intel Pentium III and compatible Intel processors. Disables any default or previously set extended instruction setting -mcpu= same as -mtune= -mtune= optimize for a specific pentium3 - optimize for Pentium(R) III processors pentium4 - optimize for Pentium(R) 4 processor (DEFAULT) -march= generate code exclusively for a given pentium3 - streaming SIMD extensions pentium4 - Pentium(R) 4 New Instructions -mia32 generates code which will run on any Intel Pentium or later processor. Disables any default extended instruction settings, and any previously set extended instruction settings. -msse generate code for Intel Pentium III and compatible Intel processors -msse2 generate code for Intel Pentium 4 and compatible Intel processors -msse3 generate code for Intel(R) Core(TM) Duo processors, Intel(R) Core(TM) Solo processors, Intel Pentium 4 and compatible Intel processors with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support -mssse3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) -msse4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions -minstruction= Refine instruction set output for the selected target processor [no]movbe - Do/do not generate MOVBE instructions with SSE3_ATOM (requires -xSSE3_ATOM) -f[no-]omit-frame-pointer enable(DEFAULT)/disable use of EBP as general purpose register. -fno-omit-frame-pointer replaces -fp -f[no-]exceptions enable/disable(DEFAULT) C++ exception handling table generation -f[no-]exceptions enable(DEFAULT)/disable exception handling Interprocedural Optimization (IPO) ---------------------------------- -[no-]ip enable(DEFAULT)/disable single-file IP optimization within files -ipo[n] enable multi-file IP optimization between files -ipo-c generate a multi-file object file (ipo_out.o) -ipo-S generate a multi-file assembly file (ipo_out.S) -ip-no-inlining disable full and partial inlining -ip-no-pinlining disable partial inlining -ipo-separate create one object file for every source file (overrides -ipo[n]) -ipo-jobs specify the number of jobs to be executed simultaneously during the IPO link phase Advanced Optimizations ---------------------- -unroll[n] set maximum number of times to unroll loops. Omit n to use default heuristics. Use n=0 to disable the loop unroller -[no-]unroll-aggressive enables more aggressive unrolling heuristics -funroll-loops unroll loops based on default heuristics -[no-]scalar-rep enable(DEFAULT)/disable scalar replacement (requires -O3) -[no]pad enable/disable(DEFAULT) changing variable and array memory layout -safe-cray-ptr Cray pointers do not alias with other variables -[no-]ansi-alias enable/disable(DEFAULT) use of ANSI aliasing rules optimizations; user asserts that the program adheres to these rules -[no-]complex-limited-range enable/disable(DEFAULT) the use of the basic algebraic expansions of some complex arithmetic operations. This can allow for some performance improvement in programs which use a lot of complex arithmetic at the loss of some exponent range. -reentrancy specify whether the threaded, reentrant run-time support should be used Keywords: none (same as -noreentrancy), threaded, async -noreentrancy do not use threaded, reentrant run-time support -heap-arrays [n] temporary arrays of minimum size n (in kilobytes) are allocated in heap memory rather than on the stack. If n is not specified, all temporary arrays are allocated in heap memory. -no-heap-arrays temporary arrays are allocated on the stack (DEFAULT) -[no-]opt-multi-version-aggressive enables more aggressive multi-versioning to check for pointer aliasing and scalar replacement -opt-ra-region-strategy[=] select the method that the register allocator uses to partition each routine into regions routine - one region per routine block - one region per block trace - one region per trace loop - one region per loop default - compiler selects best option -[no-]vec enables(DEFAULT)/disables vectorization -[no-]vec-guard-write enables cache/bandwidth optimization for stores under conditionals within vector loops -vec-threshold[n] sets a threshold for the vectorization of loops based on the probability of profitable execution of the vectorized loop in parallel -opt-malloc-options={0|1|2|3|4} specify malloc configuration parameters. Specifying a non-zero value will cause alternate configuration parameters to be set for how malloc allocates and frees memory -opt-jump-tables= control the generation of jump tables default - let the compiler decide when a jump table, a series of if-then-else constructs or a combination is generated large - generate jump tables up to a certain pre-defined size (64K entries) - generate jump tables up to in size use -no-opt-jump-tables to lower switch statements as chains of if-then-else constructs -fno-jump-tables do not generate jump tables for switches and if-then-else statements -opt-block-factor= specify blocking factor for loop blocking -opt-streaming-stores specifies whether streaming stores are generated always - enables generation of streaming stores under the assumption that the application is memory bound auto - compiler decides when streaming stores are used (DEFAULT) never - disables generation of streaming stores -mkl[=] link to the Intel(R) Math Kernel Library (Intel(R) MKL) and bring in the associated headers parallel - link using the threaded Intel(R) MKL libraries. This is the default when -mkl is specified sequential - link using the non-threaded Intel(R) MKL libraries cluster - link using the Intel(R) MKL Cluster libraries plus the sequential Intel(R) MKL libraries -imsl link to the International Mathematics and Statistics Library* (IMSL* library) -[no-]opt-subscript-in-range assumes no overflows in the intermediate computation of the subscripts Profile Guided Optimization (PGO) --------------------------------- -prof-dir specify directory for profiling output files (*.dyn and *.dpi) -prof-src-root specify project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -prof-src-root-cwd specify the current directory as the project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -[no-]prof-src-dir specify whether directory names of sources should be considered when looking up profile records within the .dpi file -prof-file specify file name for profiling summary file -[no-]prof-data-order enable/disable(DEFAULT) static data ordering with profiling -[no-]prof-func-order enable/disable(DEFAULT) function ordering with profiling -[no-]prof-func-groups enable(DEFAULT with PGO)/disable function grouping -prof-gen[=keyword] instrument program for profiling. Optional keyword may be srcpos or globdata -no-prof-gen disable profiling instrumentation -prof-use[=] enable use of profiling information during optimization weighted - invokes profmerge with -weighted option to scale data based on run durations [no]merge - enable(default)/disable the invocation of the profmerge tool -no-prof-use disable use of profiling information during optimization -opt-prefetch[=n] enable levels of prefetch insertion, where 0 disables. n may be 0 through 4 inclusive. Default is 2. -no-opt-prefetch disable(DEFAULT) prefetch insertion. Equivalent to -opt-prefetch=0 -p compile and link for function profiling with UNIX gprof tool On IA32 and Intel(r)64, -pg is also valid -f[no-]instrument-functions determine whether function entry and exit points are instrumented -prof-hotness-threshold= set the hotness threshold for function grouping and function ordering val indicates percentage of functions to be placed in hot region. This option requires -prof-use and -prof-func-groups or -prof-func-order Optimization Reports -------------------- -vec-report[n] control amount of vectorizer diagnostic information n=0 no diagnostic information n=1 indicate vectorized loops (DEFAULT) n=2 indicate vectorized/non-vectorized loops n=3 indicate vectorized/non-vectorized loops and prohibiting data dependence information n=4 indicate non-vectorized loops n=5 indicate non-vectorized loops and prohibiting data dependence information -opt-report [n] generate an optimization report to stderr 0 disable optimization report output 1 minimum report output 2 medium output (DEFAULT when enabled) 3 maximum report output -opt-report-file= specify the filename for the generated report -opt-report-phase= specify the phase that reports are generated against -opt-report-routine= reports on routines containing the given name -opt-report-help display the optimization phases available for reporting -tcheck [mode] enable analysis of threaded applications (requires Intel(R) Thread Checker; cannot be used with compiler alone) tci - instruments a program to perform a thread-count-independent analysis tcd - instruments a program to perform a thread-count-dependent analysis (DEFAULT when mode is not used) api - instruments a program at the api-imports level -tprofile generate instrumentation to analyze multi-threading performance (requires Intel(R) Thread Profiler; cannot be used with compiler alone) -tcollect[=] inserts instrumentation probes calling the Intel(R) Trace Collector API. The library -l is linked in the default being -lVT (requires Intel(R) Trace Collector) -tcollect-filter file Enable or disable the instrumentation of specified functions. (requires Intel(R) Trace Collector) OpenMP* and Parallel Processing ------------------------------- -openmp enable the compiler to generate multi-threaded code based on the OpenMP* directives -openmp-profile enable analysis of OpenMP application when the Intel(R) Thread Profiler is installed -openmp-stubs enables the user to compile OpenMP programs in sequential mode. The OpenMP directives are ignored and a stub OpenMP library is linked (sequential) -openmp-report{0|1|2} control the OpenMP parallelizer diagnostic level -openmp-lib choose which OpenMP library version to link with compat - use the GNU compatible OpenMP run-time libraries (DEFAULT) -openmp-link choose whether to link with the static or dynamic OpenMP libraries. Default is dynamic. -openmp-threadprivate choose which threadprivate implementation to use compat - use the GNU compatible thread local storage legacy - use the Intel compatible implementation (DEFAULT) -parallel enable the auto-parallelizer to generate multi-threaded code for loops that can be safely executed in parallel -par-report{0|1|2|3} control the auto-parallelizer diagnostic level -par-threshold[n] set threshold for the auto-parallelization of loops where n is an integer from 0 to 100 -[no-]par-runtime-control enable compiler to generate runtime control code for effective automatic parallelization -par-schedule-static[=n] Specifies a scheduling algorithm for DO loop iteration. Divides iterations into contiguous pieces. Size n if specified, equal sized pieces if not. -par-schedule-static-balanced[=n] Divides iterations into even-sized chunks. Size n if specified, equal sized pieces if not. -par-schedule-static-steal[=n] Divides iterations into even-sized chunks, but allows threads to steal parts of chunks from neighboring threads -par-schedule-dynamic[=n] Specifies a scheduling algorithm for DO loop iteration. Assigns iterations to threads in chunks dynamically. Chunk size is n iterations if specified, otherwise 1. -par-schedule-guided[=n] Specifies a scheduling algorithm for DO loop iteration. Indicates a minimum number of iterations. If specified, n is the minimum number, otherwise 1. -par-schedule-guided-analytical[=n] Divides iterations by using exponential distribution or dynamic distributions. -par-schedule-runtime Specifies a scheduling algorithm for DO loop iteration. Defers the scheduling decision until runtime. -par-schedule-auto Lets the compiler or run-time system determine the scheduling algorithm. -par-affinity=[,...][,][,] tune application performance by setting different thread affinity -par-num-threads= tune application performance by setting different number of threads Floating Point -------------- -fp-model enable floating point model variation [no-]except - enable/disable floating point semantics fast[=1|2] - enables more aggressive floating point optimizations precise - allows value-safe optimizations source - enables intermediates in source precision strict - enables -fp-model precise -fp-model except, disables contractions and enables pragma stdc fenv_access -fp-speculation= enable floating point speculations with the following conditions: fast - speculate floating point operations (DEFAULT) safe - speculate only when safe strict - same as off off - disables speculation of floating-point operations -pc32 set internal FPU precision to 24 bit significand -pc64 set internal FPU precision to 53 bit significand (DEFAULT) -pc80 set internal FPU precision to 64 bit significand -mp1 improve floating-point precision (speed impact less than -mp) -mieee-fp same as -mp, can be disabled with -mno-ieee-fp -[no-]prec-sqrt determine if certain square root optimizations are enabled -[no-]prec-div improve precision of FP divides (some speed impact) -[no-]fast-transcendentals generate a faster version of the transcendental functions -[no-]fp-port round fp results at assignments and casts (some speed impact) -fp-stack-check enable fp stack checking after every function/procedure call -rcd rounding mode to enable fast float-to-int conversions -rounding-mode chopped set internal FPU rounding control to truncate -[no-]ftz enable/disable flush denormal results to zero -fpe{0|1|3} specifies program-wide behavior on floating point exceptions -fpe-all={0|1|3} specifies floating point exception behavior on all functions and subroutines. Also sets -assume ieee_fpe_flags -[no]fltconsistency specify that improved floating-point consistency should be used -[no]recursive compile all procedures for possible recursive execution Inlining -------- -inline-level= control inline expansion: n=0 disable inlining n=1 inline functions declared with ATTRIBUTES INLINE or FORCEINLINE n=2 inline any function, at the compiler's discretion -f[no-]inline-functions inline any function at the compiler's discretion -finline-limit= set maximum number of statements a function can have and still be considered for inlining -inline-min-size= set size limit for inlining small routines -no-inline-min-size no size limit for inlining small routines -inline-max-size= set size limit for inlining large routines -no-inline-max-size no size limit for inlining large routines -inline-max-total-size= maximum increase in size for inline function expansion -no-inline-max-total-size no size limit for inline function expansion -inline-max-per-routine= maximum number of inline instances in any function -no-inline-max-per-routine no maximum number of inline instances in any function -inline-max-per-compile= maximum number of inline instances in the current compilation -no-inline-max-per-compile no maximum number of inline instances in the current compilation -inline-factor= set inlining upper limits by n percentage -no-inline-factor do not set set inlining upper limits -inline-forceinline treat inline routines as forceinline -inline-calloc directs the compiler to inline calloc() calls as malloc()/memset() Output, Debug, PCH ------------------ -c compile to object (.o) only, do not link -S compile to assembly (.s) only, do not link -fsource-asm produce assembly file with optional source annotations (requires -S) -f[no-]verbose-asm produce assembly file with compiler comments (DEFAULT) (requires -S) -fcode-asm produce assembly file with optional code annotations (requires -S) -use-msasm support Microsoft* style assembly language insertion using MASM style syntax -o name output file -g produce symbolic debug information in object file (implies -O0 when another optimization option is not explicitly set) -debug [keyword] enable debug information and control output of enhanced debug information keywords: all, full, minimal, none, [no]inline-debug-info [no]variable-locations, [no]semantic-stepping, extended parallel -debug-parameters [keyword] control output of debug information for PARAMETERS keywords: all, used, none (same as -nodebug-parameters) -nodebug-parameters do not output debug information for PARAMETERS -g0 disable generation of symbolic debug information -gdwarf-2 enable generation of debug information using the DWARF2 format -[no]d-lines compile debug statements (indicated by D in column 1) -DD compile debug statements, indicated by D in column 1. This option prevents the definition of a macro named D using the command line -Dname option (use -Dname=n syntax instead) -ftrapuv trap uninitialized variables -map-opts enable option mapping tool -print-multi-lib print information about libraries being used Preprocessor ------------ -D[=] define macro -nodefines, -noD specifies that any -D macros go to the preprocessor only, and not to the compiler -U remove predefined macro -allow nofpp-comments If a Fortran end-of-line comment is seen within a #define, treat it as part of the definition. Default is allow:fpp-comments -E preprocess to stdout -EP preprocess to stdout, omitting #line directives -P preprocess to file, omitting #line directives -preprocess-only same as -P -[no]keep keep/remove preprocessed file generated by preprocessor as input to compiler stage. Not affected by -save-temps. Default is -nokeep -fpp[n], -[no]fpp run Fortran preprocessor on source files prior to compilation n=0 disable running the preprocessor, equivalent to nofpp n=1,2,3 run preprocessor -cpp[n] same as -fpp[n] -module path specify path where mod files should be placed and first location to look for mod files -I add directory to include file search path -idirafter add directory to the second include file search path (after -I) -isystem add directory to the start of the system include path -X, -nostdinc remove standard directories from include file search path -B find libraries, headers and executables in Component Control ----------------- -Qoption,, pass options to tool specified by -Qlocation,, set as the location of tool specified by -Qinstall set as root of compiler installation Language -------- -[no]altparam specify if alternate form of parameter constant declarations (without parenthesis) is recognized. Default is to recognize Same as -[no]dps -assume specify assumptions made by the optimizer and code generator keywords: none, [no]byterecl, [no]buffered_io, [no]bscc (nobscc same as -nbs), [no]cc_omp, [no]minus0, [no]dummy_aliases (same as -common-args), [no]ieee_fpe_flags, [no]old_boz, [no]old_logical_ldio, [no]old_maxminloc, [no]old_unit_star, [no]old_xor, [no]protect_constants, [no]protect_parens, [no]realloc_lhs, [no]2underscore, [no]underscore (same as -us), [no]std_mod_proc_name, [no]source_include, [no]writeable_strings -ccdefault specify default carriage control for units 6 and * keywords: default, fortran, list or none -[no]check check run-time conditions. Default is -nocheck keywords: all (same as -C), none (same as -nocheck), [no]arg_temp_created, [no]bounds (same as -CB), [no]format, [no]output_conversion, [no]pointer (same as -CA), [no]uninit (same as -CU) -common-args assume "by reference" subprogram arguments may alias one another. Same as -assume dummy_aliases -e03 issue errors for language elements that are not standard in Fortran 2003 (same as -stand f03 -warn stderrors options) -e95 issue errors for language elements that are not standard in Fortran 95 (same as -stand f95 -warn stderrors options) -e90 issue errors for language elements that are not standard in Fortran 90 (same as -stand f90 -warn stderrors options) -[no]extend-source [] specify rightmost column for fixed form sources keywords: 72 (same as -noextend-source and -72), 80 (same as -80), 132 (same as -132. Default if you specify -extend-source without a keyword.) -fixed specify source files are in fixed format. Same as -FI -nofixed indicates free format -free specify source files are in free format. Same as -FR -nofree indicates fixed format -[no]mixed-str-len-arg indicate whether hidden lengths are passed after their character argument or after all arguments. -names specify how source code identifiers and external names are interpreted. keywords: as_is, lowercase (Default. Same as -lowercase), uppercase (same as -uppercase) -[no]pad-source make compiler acknowledge blanks at the end of a line -stand [] specifies level of conformance with ANSI standard to check for. If keyword is not specified, level of conformance is f03 keywords: f90 (same as -std90), f95(same as -std95), f03(same as -std95), none (same as -nostand) -syntax-only perform syntax and semantic checking only (no object file produced) Compiler Diagnostics -------------------- -cm suppress all comment messages, same as -warn nousage -w disable all warnings -W disable warnings (n = 0) or show warnings (n = 1 DEFAULT, same as -warn general) -w90, -w95 suppress messages about use of non-standard Fortran -warn specifies the level of warning messages issued keywords: all, none (same as -nowarn) [no]alignments, [no]declarations, [no]errors, [no]general, [no]ignore_loc, [no]interfaces, [no]stderrors, [no]truncated_source, [no]uncalled, [no]unused, [no]usage -nowarn suppress all warning messages -WB turn a compile-time bounds check into a warning -Wcheck enable more strict diagnostics -Winline enable inline diagnostics -[no]traceback specify whether the compiler generates PC correlation data used to display a symbolic traceback rather than a hexadecimal traceback at runtime failure -[no]gen-interfaces[:[no]source] generate interface blocks for all routines in the file. Can be checked using -warn interfaces nosource indicates temporary source files should not be saved -error-limit specify the maximum number of error-level or fatal-level compiler errors allowed -noerror-limit set no maximum number on error-level or fatal-level error messages -diag-enable [,,...] enable the specified diagnostics or diagnostic groups -diag-disable [,,...] disable the specified diagnostics or diagnostic groups where may be individual diagnostic numbers or group names. where group names include: sc[n] - perform source code analysis: n=1 for critical errors, n=2 for all errors and n=3 for all errors and warnings sc-include - perform source code analysis on include files sc-parallel[n] - perform analysis of parallelization in source code: n=1 for critical errors, n=2 for errors, n=3 for all errors and warnings -diag-error [,,...] output the specified diagnostics or diagnostic groups as errors -diag-warning [,,...] output the specified diagnostics or diagnostic groups as warnings -diag-remark [,,...] output the the specified diagnostics or diagnostic groups as remarks -diag-dump display the currently enabled diagnostic messages to stdout or to a specified diagnostic output file. -diag-file[=] where diagnostics are emitted to. Not specifying this causes messages to be output to stderr -diag-file-append[=] where diagnostics are emitted to. When already exists, output is appended to the file -[no-]diag-id-numbers enable(DEFAULT)/disable the diagnostic specifiers to be output in numeric form -diag-error-limit specify the maximum number of errors emitted Miscellaneous ------------- -[no]logo display compiler version information. /nologo disables the output -V display compiler version information -dumpmachine display the target machine only --version display GCC style version information -[no-]sox enable/disable(DEFAULT) saving of compiler options and version in the executable -save-temps store the intermediate files in current directory and name them based on the source file. Only saves files that are generated by default -dryrun show driver tool commands but do not execute tools -v show driver tool commands and execute tools -what display detailed compiler version information -watch tells the driver to output processing information keywords: all, none (same as -nowatch), [no]source, [no]cmd (same as -v) -nowatch suppress processing information output (DEFAULT) -Tf compile file as Fortran source -multiple-processes[=] create multiple processes that can be used to compile large numbers of source files at the same time Data ---- -i{2|4|8} set default KIND of integer and logical variables to 2, 4, or 8 -integer-size specifies the default size of integer and logical variables size: 16, 32, 64 -r{8|16} set default size of real to 8 or 16 bytes -real-size specify the size of REAL and COMPLEX declarations, constants, functions, and intrinsics size: 32, 64, 128 -autodouble same as -real-size 64 or -r8 -double-size defines the size of DOUBLE PRECISION and DOUBLE COMPLEX declarations, constants, functions, and intrinsics size: 64, 128 -[no]fpconstant extends the precision of single precision constants assigned to double precision variables to double precision -[no]intconstant use Fortran 77 semantics, rather than Fortran 90/95, to determine kind of integer constants -auto make all local variables AUTOMATIC. Same as -automatic -auto-scalar make scalar local variables AUTOMATIC (DEFAULT) -save save all variables (static allocation) (same as -noautomatic, opposite of -auto) -[no]zero enable/disable(DEFAULT) implicit initialization to zero of local scalar variables of intrinsic type INTEGER, REAL, COMPLEX, or LOGICAL that are saved and not initialized -dyncom make given common blocks dynamically-allocated -Zp[n] specify alignment constraint for structures (n=1,2,4,8,16 -Zp16 DEFAULT) -[no]align analyze and reorder memory layout for variables and arrays -align specify how data items are aligned keywords: all (same as -align), none (same as -align), [no]commons, [no]dcommons, [no]records, rec1byte, rec2byte, rec4byte, rec8byte, rec16byte, [no]sequence -fminshared Compilation is for the main executable. Absolute addressing can be used and non-position independent code generated for symbols that are at least protected -fstack-security-check enable overflow security checks. -f[no-]stack-security-check disables (DEFAULT) -fstack-protector enable stack overflow security checks. -f[no-]stack-protector disables (DEFAULT) -fpic, -fPIC generate position independent code (-fno-pic/-fno-PIC is DEFAULT) -fpie, -fPIE generate position independent code that will be linked into an executable (-fno-pie/-fno-PIE is DEFAULT) -[no-]global-hoist enable(DEFAULT)/disable external globals are load safe -f[no-]keep-static-consts enable/disable(DEFAULT) emission of static const variables even when not referenced -fpack-struct pack structure members together -f[no-]math-errno set ERRNO after calling standard math library functions -no-bss-init disable placement of zero-initialized variables in BSS (use DATA) -convert specify the format of unformatted files containing numeric data keywords: big_endian, cray, ibm, little_endian, native, vaxd, vaxg -falign-functions=[2|16] align the start of functions on a 2 (DEFAULT) or 16 byte boundary -falign-functions align the start of functions to an optimal machine-dependent value. -fno-align-functions (DEFAULT) aligns on a 2-byte boundary -falign-stack= stack alignment method to use on entry to routines default - use default heuristics maintain-16-byte - do not assume any specific alignment, but maintain alignment in case the stack is already aligned assume-16-byte - assume the stack is aligned on 16-byte boundaries -fvisibility=[extern|default|protected|hidden|internal] Global symbols (data and functions) will get the visibility attribute given by default. Symbol visibility attributes explicitly set in the source code or using the symbol visibility attribute file options will override the -fvisibility setting -fvisibility-extern= Space separated symbols listed in the argument will geti visibility set to extern -fvisibility-default= Space separated symbols listed in the argument will get visibility set to default -fvisibility-protected= Space separated symbols listed in the argument will get visibility set to protected -fvisibility-hidden= Space separated symbols listed in the argument will get visibility set to hidden -fvisibility-internal= Space separated symbols listed in the argument will get visibility set to internal -fvisibility-inlines-hidden mark inline member functions as hidden Compatibility ------------- -fpscomp specify the level of compatibility to adhere to with Fortran PowerStation keywords: all, none (same as -nofpscomp), [no]filesfromcmd, [no]general, [no]ioformat, [no]ldio_spacing, [no]libs, [no]logicals -nofpscomp no specific level of compatibility with Fortran PowerStation -1, -onetrip execute any DO loop at least once -f66, -66 allow extensions that enhance FORTRAN-66 compatibility -f77rtl specify that the Fortran 77 specific run-time support should be used -nof77rtl disables -vms enable VMS I/O statement extensions -gcc-name= name and location of gcc if not where expected -gxx-name= name and location of g++ if not where expected -gcc-version= specify the of gcc compatibility. Default value matches gcc version installed. Major/Minor versions listed but patch levels (i.e. 345) are permissible 320 - gcc 3.2.x compatibility 330 - gcc 3.3.x compatibility 340 - gcc 3.4.x compatibility 400 - gcc 4.0.x compatibility 410 - gcc 4.1.x compatibility 420 - gcc 4.2.x compatibility Linking/Linker -------------- -L instruct linker to search for libraries -l instruct the linker to link in the -l library -shared-intel link Intel provided libraries dynamically -static-intel link Intel provided libraries statically -shared-libgcc link libgcc dynamically -static-libgcc link libgcc statically -dynamic-linker select dynamic linker other than the default -no-cxxlib do not link in C++ runtime libraries -cxxlib[=dir] link using C++ run-time libraries provided with gcc dir is an optional top-level location for the gcc binaries and libraries -nodefaultlibs do not use standard libraries when linking -nostartfiles do not use standard startup files when linking -nostdlib do not use standard libraries and startup files when linking -nofor-main do not link against Fortran main object. Used when linking Fortran objects with C main program -static prevents linking with shared libraries -shared produce a shared object -Bstatic specify following libraries are linked statically -Bdynamic specify following libraries are linked dynamically -cxxlib- tell the compiler which C++ run-time libraries to use nostd - do not link in standard C++ library -T direct linker to read link commands from -Xlinker pass directly to the linker for processing -Wa,[,,...] pass options o1, o2, etc. to the assembler -Wl,[,,...] pass options o1, o2, etc. to the linker for processing -Wp,[,,...] pass options o1, o2, etc. to the preprocessor -threads specify that multi-threaded libraries should be linked against -nothreads disables multi-threaded libraries Deprecated Options ------------------ -Ob use -inline-level= -cxxlib-gcc[=dir] use -cxxlib[=dir] -i-dynamic use -shared-intel -i-static use -static-intel -inline-debug-info use -debug inline-debug-info -mp use -fp-model -use-asm no replacement -A- use -U -prefetch use -opt-prefetch -prof-genx use -prof-gen=srcpos -fwritable-strings use -assume writeable-strings -openmp-lib=legacy use -openmp-lib=compat -xB use -xSSE2 (i32 only) -xK use -xSSE (i32 only) -axK No replacement -xW use -msse2 -axW use -msse2 -xN use -xSSE2 -axN use -axSSE2 -xP use -xSSE3 -axP use -axSSE3 -xT use -xSSSE3 -axT use -axSSSE3 -xS use -xSSE4.1 -axS use -axSSE4.1 -xO use -msse3 -func-groups use -prof-func-groups -diag-enable sv use -diag-enable sc -diag-enable sv-include use -diag-enable sc-include -diag-disable sv use -diag-disable sc -diag-sv use -diag-enable sc -diag-sv-error use -diag-disable warning -diag-sv-include use -diag-enable sc-include -diag-sv-level No replacement -diag-sv-sup use -diag-disable [,,...] -help [category] print full or category help message Valid categories include advanced - Advanced Optimizations codegen - Code Generation compatibility - Compatibility component - Component Control data - Data deprecated - Deprecated Options diagnostics - Compiler Diagnostics float - Floating Point help - Help inline - Inlining ipo - Interprocedural Optimization (IPO) language - Language link - Linking/Linker misc - Miscellaneous opt - Optimization output - Output pgo - Profile Guided Optimization (PGO) preproc - Preprocessor reports - Optimization Reports openmp - OpenMP and Parallel Processing Copyright (C) 1985-2009, Intel Corporation. All rights reserved. * Other brands and names are the property of their respective owners. sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort --help Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort --help sh: Intel(R) Fortran Compiler Help ============================== usage: ifort [options] file1 [file2 ...] where options represents zero or more compiler options fileN is a Fortran source (.f .for .ftn .f90 .fpp .F .FOR .F90 .i .i90), assembly (.s .S), object (.o), static library (.a), or other linkable file Commonly used options may be placed in the ifort .cfg file. Some options listed are only available on a specific system i32 indicates the feature is available on systems based on IA-32 architecture i64em indicates the feature is available on systems using Intel(R) 64 architecture Compiler Option List -------------------- Optimization ------------ -O1 optimize for maximum speed, but disable some optimizations which increase code size for a small speed benefit -O2 optimize for maximum speed (DEFAULT) -O3 optimize for maximum speed and enable more aggressive optimizations that may not improve performance on some programs -O same as -O2 -Os enable speed optimizations, but disable some optimizations which increase code size for small speed benefit -O0 disable optimizations -fast enable -xHOST -O3 -ipo -no-prec-div -static options set by -fast cannot be overridden with the exception of -xHOST, list options separately to change behavior -fno-alias assume no aliasing in program -fno-fnalias assume no aliasing within functions, but assume aliasing across calls -nolib-inline disable inline expansion of intrinsic functions Code Generation --------------- -x[,,...] generate specialized code to run exclusively on processors indicated by as described below Host generate instructions for the highest instruction set and processor available on the compilation host machine SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSE3_ATOM Can generate MOVBE instructions for Intel processors and can optimize for the Intel(R) Atom(TM) processor. SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for SSE4 Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -ax[,,...] generate code specialized for processors specified by while also generating generic IA-32 instructions. includes one or more of the following: SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -tune pn1 - optimize for Pentium(R) processor (i32 only) pn2 - optimize for Pentium(R) Pro, Pentium(R) II, and Pentium(R) III processors (i32 only) pn3 - same as pn2 (i32 only) pn4 - optimize for Pentium(R) 4 processor (DEFAULT) -arch pn1 - optimize for Pentium(R) processor (i32 only) pn2 - optimize for Pentium(R) Pro, Pentium(R) II, and Pentium(R) III processors (i32 only) pn3 - same as pn2 (i32 only) pn4 - optimize for Pentium(R) 4 processor (DEFAULT) SSE - Intel Pentium III and compatible Intel processors (i32 only) SSE2 - Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations (i32 only) SSE3 - Intel(R) Core(TM) processor family. Code is expected to run properly on any processor that supports SSE3, SSE2 and SSE instruction sets SSSE3 - Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 - Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions IA32 - generate generic IA-32 architecture code for Intel Pentium III and compatible Intel processors. Disables any default or previously set extended instruction setting -mcpu= same as -mtune= -mtune= optimize for a specific pentium3 - optimize for Pentium(R) III processors pentium4 - optimize for Pentium(R) 4 processor (DEFAULT) -march= generate code exclusively for a given pentium3 - streaming SIMD extensions pentium4 - Pentium(R) 4 New Instructions -mia32 generates code which will run on any Intel Pentium or later processor. Disables any default extended instruction settings, and any previously set extended instruction settings. -msse generate code for Intel Pentium III and compatible Intel processors -msse2 generate code for Intel Pentium 4 and compatible Intel processors -msse3 generate code for Intel(R) Core(TM) Duo processors, Intel(R) Core(TM) Solo processors, Intel Pentium 4 and compatible Intel processors with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support -mssse3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) -msse4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions -minstruction= Refine instruction set output for the selected target processor [no]movbe - Do/do not generate MOVBE instructions with SSE3_ATOM (requires -xSSE3_ATOM) -f[no-]omit-frame-pointer enable(DEFAULT)/disable use of EBP as general purpose register. -fno-omit-frame-pointer replaces -fp -f[no-]exceptions enable/disable(DEFAULT) C++ exception handling table generation -f[no-]exceptions enable(DEFAULT)/disable exception handling Interprocedural Optimization (IPO) ---------------------------------- -[no-]ip enable(DEFAULT)/disable single-file IP optimization within files -ipo[n] enable multi-file IP optimization between files -ipo-c generate a multi-file object file (ipo_out.o) -ipo-S generate a multi-file assembly file (ipo_out.S) -ip-no-inlining disable full and partial inlining -ip-no-pinlining disable partial inlining -ipo-separate create one object file for every source file (overrides -ipo[n]) -ipo-jobs specify the number of jobs to be executed simultaneously during the IPO link phase Advanced Optimizations ---------------------- -unroll[n] set maximum number of times to unroll loops. Omit n to use default heuristics. Use n=0 to disable the loop unroller -[no-]unroll-aggressive enables more aggressive unrolling heuristics -funroll-loops unroll loops based on default heuristics -[no-]scalar-rep enable(DEFAULT)/disable scalar replacement (requires -O3) -[no]pad enable/disable(DEFAULT) changing variable and array memory layout -safe-cray-ptr Cray pointers do not alias with other variables -[no-]ansi-alias enable/disable(DEFAULT) use of ANSI aliasing rules optimizations; user asserts that the program adheres to these rules -[no-]complex-limited-range enable/disable(DEFAULT) the use of the basic algebraic expansions of some complex arithmetic operations. This can allow for some performance improvement in programs which use a lot of complex arithmetic at the loss of some exponent range. -reentrancy specify whether the threaded, reentrant run-time support should be used Keywords: none (same as -noreentrancy), threaded, async -noreentrancy do not use threaded, reentrant run-time support -heap-arrays [n] temporary arrays of minimum size n (in kilobytes) are allocated in heap memory rather than on the stack. If n is not specified, all temporary arrays are allocated in heap memory. -no-heap-arrays temporary arrays are allocated on the stack (DEFAULT) -[no-]opt-multi-version-aggressive enables more aggressive multi-versioning to check for pointer aliasing and scalar replacement -opt-ra-region-strategy[=] select the method that the register allocator uses to partition each routine into regions routine - one region per routine block - one region per block trace - one region per trace loop - one region per loop default - compiler selects best option -[no-]vec enables(DEFAULT)/disables vectorization -[no-]vec-guard-write enables cache/bandwidth optimization for stores under conditionals within vector loops -vec-threshold[n] sets a threshold for the vectorization of loops based on the probability of profitable execution of the vectorized loop in parallel -opt-malloc-options={0|1|2|3|4} specify malloc configuration parameters. Specifying a non-zero value will cause alternate configuration parameters to be set for how malloc allocates and frees memory -opt-jump-tables= control the generation of jump tables default - let the compiler decide when a jump table, a series of if-then-else constructs or a combination is generated large - generate jump tables up to a certain pre-defined size (64K entries) - generate jump tables up to in size use -no-opt-jump-tables to lower switch statements as chains of if-then-else constructs -fno-jump-tables do not generate jump tables for switches and if-then-else statements -opt-block-factor= specify blocking factor for loop blocking -opt-streaming-stores specifies whether streaming stores are generated always - enables generation of streaming stores under the assumption that the application is memory bound auto - compiler decides when streaming stores are used (DEFAULT) never - disables generation of streaming stores -mkl[=] link to the Intel(R) Math Kernel Library (Intel(R) MKL) and bring in the associated headers parallel - link using the threaded Intel(R) MKL libraries. This is the default when -mkl is specified sequential - link using the non-threaded Intel(R) MKL libraries cluster - link using the Intel(R) MKL Cluster libraries plus the sequential Intel(R) MKL libraries -imsl link to the International Mathematics and Statistics Library* (IMSL* library) -[no-]opt-subscript-in-range assumes no overflows in the intermediate computation of the subscripts Profile Guided Optimization (PGO) --------------------------------- -prof-dir specify directory for profiling output files (*.dyn and *.dpi) -prof-src-root specify project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -prof-src-root-cwd specify the current directory as the project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -[no-]prof-src-dir specify whether directory names of sources should be considered when looking up profile records within the .dpi file -prof-file specify file name for profiling summary file -[no-]prof-data-order enable/disable(DEFAULT) static data ordering with profiling -[no-]prof-func-order enable/disable(DEFAULT) function ordering with profiling -[no-]prof-func-groups enable(DEFAULT with PGO)/disable function grouping -prof-gen[=keyword] instrument program for profiling. Optional keyword may be srcpos or globdata -no-prof-gen disable profiling instrumentation -prof-use[=] enable use of profiling information during optimization weighted - invokes profmerge with -weighted option to scale data based on run durations [no]merge - enable(default)/disable the invocation of the profmerge tool -no-prof-use disable use of profiling information during optimization -opt-prefetch[=n] enable levels of prefetch insertion, where 0 disables. n may be 0 through 4 inclusive. Default is 2. -no-opt-prefetch disable(DEFAULT) prefetch insertion. Equivalent to -opt-prefetch=0 -p compile and link for function profiling with UNIX gprof tool On IA32 and Intel(r)64, -pg is also valid -f[no-]instrument-functions determine whether function entry and exit points are instrumented -prof-hotness-threshold= set the hotness threshold for function grouping and function ordering val indicates percentage of functions to be placed in hot region. This option requires -prof-use and -prof-func-groups or -prof-func-order Optimization Reports -------------------- -vec-report[n] control amount of vectorizer diagnostic information n=0 no diagnostic information n=1 indicate vectorized loops (DEFAULT) n=2 indicate vectorized/non-vectorized loops n=3 indicate vectorized/non-vectorized loops and prohibiting data dependence information n=4 indicate non-vectorized loops n=5 indicate non-vectorized loops and prohibiting data dependence information -opt-report [n] generate an optimization report to stderr 0 disable optimization report output 1 minimum report output 2 medium output (DEFAULT when enabled) 3 maximum report output -opt-report-file= specify the filename for the generated report -opt-report-phase= specify the phase that reports are generated against -opt-report-routine= reports on routines containing the given name -opt-report-help display the optimization phases available for reporting -tcheck [mode] enable analysis of threaded applications (requires Intel(R) Thread Checker; cannot be used with compiler alone) tci - instruments a program to perform a thread-count-independent analysis tcd - instruments a program to perform a thread-count-dependent analysis (DEFAULT when mode is not used) api - instruments a program at the api-imports level -tprofile generate instrumentation to analyze multi-threading performance (requires Intel(R) Thread Profiler; cannot be used with compiler alone) -tcollect[=] inserts instrumentation probes calling the Intel(R) Trace Collector API. The library -l is linked in the default being -lVT (requires Intel(R) Trace Collector) -tcollect-filter file Enable or disable the instrumentation of specified functions. (requires Intel(R) Trace Collector) OpenMP* and Parallel Processing ------------------------------- -openmp enable the compiler to generate multi-threaded code based on the OpenMP* directives -openmp-profile enable analysis of OpenMP application when the Intel(R) Thread Profiler is installed -openmp-stubs enables the user to compile OpenMP programs in sequential mode. The OpenMP directives are ignored and a stub OpenMP library is linked (sequential) -openmp-report{0|1|2} control the OpenMP parallelizer diagnostic level -openmp-lib choose which OpenMP library version to link with compat - use the GNU compatible OpenMP run-time libraries (DEFAULT) -openmp-link choose whether to link with the static or dynamic OpenMP libraries. Default is dynamic. -openmp-threadprivate choose which threadprivate implementation to use compat - use the GNU compatible thread local storage legacy - use the Intel compatible implementation (DEFAULT) -parallel enable the auto-parallelizer to generate multi-threaded code for loops that can be safely executed in parallel -par-report{0|1|2|3} control the auto-parallelizer diagnostic level -par-threshold[n] set threshold for the auto-parallelization of loops where n is an integer from 0 to 100 -[no-]par-runtime-control enable compiler to generate runtime control code for effective automatic parallelization -par-schedule-static[=n] Specifies a scheduling algorithm for DO loop iteration. Divides iterations into contiguous pieces. Size n if specified, equal sized pieces if not. -par-schedule-static-balanced[=n] Divides iterations into even-sized chunks. Size n if specified, equal sized pieces if not. -par-schedule-static-steal[=n] Divides iterations into even-sized chunks, but allows threads to steal parts of chunks from neighboring threads -par-schedule-dynamic[=n] Specifies a scheduling algorithm for DO loop iteration. Assigns iterations to threads in chunks dynamically. Chunk size is n iterations if specified, otherwise 1. -par-schedule-guided[=n] Specifies a scheduling algorithm for DO loop iteration. Indicates a minimum number of iterations. If specified, n is the minimum number, otherwise 1. -par-schedule-guided-analytical[=n] Divides iterations by using exponential distribution or dynamic distributions. -par-schedule-runtime Specifies a scheduling algorithm for DO loop iteration. Defers the scheduling decision until runtime. -par-schedule-auto Lets the compiler or run-time system determine the scheduling algorithm. -par-affinity=[,...][,][,] tune application performance by setting different thread affinity -par-num-threads= tune application performance by setting different number of threads Floating Point -------------- -fp-model enable floating point model variation [no-]except - enable/disable floating point semantics fast[=1|2] - enables more aggressive floating point optimizations precise - allows value-safe optimizations source - enables intermediates in source precision strict - enables -fp-model precise -fp-model except, disables contractions and enables pragma stdc fenv_access -fp-speculation= enable floating point speculations with the following conditions: fast - speculate floating point operations (DEFAULT) safe - speculate only when safe strict - same as off off - disables speculation of floating-point operations -pc32 set internal FPU precision to 24 bit significand -pc64 set internal FPU precision to 53 bit significand (DEFAULT) -pc80 set internal FPU precision to 64 bit significand -mp1 improve floating-point precision (speed impact less than -mp) -mieee-fp same as -mp, can be disabled with -mno-ieee-fp -[no-]prec-sqrt determine if certain square root optimizations are enabled -[no-]prec-div improve precision of FP divides (some speed impact) -[no-]fast-transcendentals generate a faster version of the transcendental functions -[no-]fp-port round fp results at assignments and casts (some speed impact) -fp-stack-check enable fp stack checking after every function/procedure call -rcd rounding mode to enable fast float-to-int conversions -rounding-mode chopped set internal FPU rounding control to truncate -[no-]ftz enable/disable flush denormal results to zero -fpe{0|1|3} specifies program-wide behavior on floating point exceptions -fpe-all={0|1|3} specifies floating point exception behavior on all functions and subroutines. Also sets -assume ieee_fpe_flags -[no]fltconsistency specify that improved floating-point consistency should be used -[no]recursive compile all procedures for possible recursive execution Inlining -------- -inline-level= control inline expansion: n=0 disable inlining n=1 inline functions declared with ATTRIBUTES INLINE or FORCEINLINE n=2 inline any function, at the compiler's discretion -f[no-]inline-functions inline any function at the compiler's discretion -finline-limit= set maximum number of statements a function can have and still be considered for inlining -inline-min-size= set size limit for inlining small routines -no-inline-min-size no size limit for inlining small routines -inline-max-size= set size limit for inlining large routines -no-inline-max-size no size limit for inlining large routines -inline-max-total-size= maximum increase in size for inline function expansion -no-inline-max-total-size no size limit for inline function expansion -inline-max-per-routine= maximum number of inline instances in any function -no-inline-max-per-routine no maximum number of inline instances in any function -inline-max-per-compile= maximum number of inline instances in the current compilation -no-inline-max-per-compile no maximum number of inline instances in the current compilation -inline-factor= set inlining upper limits by n percentage -no-inline-factor do not set set inlining upper limits -inline-forceinline treat inline routines as forceinline -inline-calloc directs the compiler to inline calloc() calls as malloc()/memset() Output, Debug, PCH ------------------ -c compile to object (.o) only, do not link -S compile to assembly (.s) only, do not link -fsource-asm produce assembly file with optional source annotations (requires -S) -f[no-]verbose-asm produce assembly file with compiler comments (DEFAULT) (requires -S) -fcode-asm produce assembly file with optional code annotations (requires -S) -use-msasm support Microsoft* style assembly language insertion using MASM style syntax -o name output file -g produce symbolic debug information in object file (implies -O0 when another optimization option is not explicitly set) -debug [keyword] enable debug information and control output of enhanced debug information keywords: all, full, minimal, none, [no]inline-debug-info [no]variable-locations, [no]semantic-stepping, extended parallel -debug-parameters [keyword] control output of debug information for PARAMETERS keywords: all, used, none (same as -nodebug-parameters) -nodebug-parameters do not output debug information for PARAMETERS -g0 disable generation of symbolic debug information -gdwarf-2 enable generation of debug information using the DWARF2 format -[no]d-lines compile debug statements (indicated by D in column 1) -DD compile debug statements, indicated by D in column 1. This option prevents the definition of a macro named D using the command line -Dname option (use -Dname=n syntax instead) -ftrapuv trap uninitialized variables -map-opts enable option mapping tool -print-multi-lib print information about libraries being used Preprocessor ------------ -D[=] define macro -nodefines, -noD specifies that any -D macros go to the preprocessor only, and not to the compiler -U remove predefined macro -allow nofpp-comments If a Fortran end-of-line comment is seen within a #define, treat it as part of the definition. Default is allow:fpp-comments -E preprocess to stdout -EP preprocess to stdout, omitting #line directives -P preprocess to file, omitting #line directives -preprocess-only same as -P -[no]keep keep/remove preprocessed file generated by preprocessor as input to compiler stage. Not affected by -save-temps. Default is -nokeep -fpp[n], -[no]fpp run Fortran preprocessor on source files prior to compilation n=0 disable running the preprocessor, equivalent to nofpp n=1,2,3 run preprocessor -cpp[n] same as -fpp[n] -module path specify path where mod files should be placed and first location to look for mod files -I add directory to include file search path -idirafter add directory to the second include file search path (after -I) -isystem add directory to the start of the system include path -X, -nostdinc remove standard directories from include file search path -B find libraries, headers and executables in Component Control ----------------- -Qoption,, pass options to tool specified by -Qlocation,, set as the location of tool specified by -Qinstall set as root of compiler installation Language -------- -[no]altparam specify if alternate form of parameter constant declarations (without parenthesis) is recognized. Default is to recognize Same as -[no]dps -assume specify assumptions made by the optimizer and code generator keywords: none, [no]byterecl, [no]buffered_io, [no]bscc (nobscc same as -nbs), [no]cc_omp, [no]minus0, [no]dummy_aliases (same as -common-args), [no]ieee_fpe_flags, [no]old_boz, [no]old_logical_ldio, [no]old_maxminloc, [no]old_unit_star, [no]old_xor, [no]protect_constants, [no]protect_parens, [no]realloc_lhs, [no]2underscore, [no]underscore (same as -us), [no]std_mod_proc_name, [no]source_include, [no]writeable_strings -ccdefault specify default carriage control for units 6 and * keywords: default, fortran, list or none -[no]check check run-time conditions. Default is -nocheck keywords: all (same as -C), none (same as -nocheck), [no]arg_temp_created, [no]bounds (same as -CB), [no]format, [no]output_conversion, [no]pointer (same as -CA), [no]uninit (same as -CU) -common-args assume "by reference" subprogram arguments may alias one another. Same as -assume dummy_aliases -e03 issue errors for language elements that are not standard in Fortran 2003 (same as -stand f03 -warn stderrors options) -e95 issue errors for language elements that are not standard in Fortran 95 (same as -stand f95 -warn stderrors options) -e90 issue errors for language elements that are not standard in Fortran 90 (same as -stand f90 -warn stderrors options) -[no]extend-source [] specify rightmost column for fixed form sources keywords: 72 (same as -noextend-source and -72), 80 (same as -80), 132 (same as -132. Default if you specify -extend-source without a keyword.) -fixed specify source files are in fixed format. Same as -FI -nofixed indicates free format -free specify source files are in free format. Same as -FR -nofree indicates fixed format -[no]mixed-str-len-arg indicate whether hidden lengths are passed after their character argument or after all arguments. -names specify how source code identifiers and external names are interpreted. keywords: as_is, lowercase (Default. Same as -lowercase), uppercase (same as -uppercase) -[no]pad-source make compiler acknowledge blanks at the end of a line -stand [] specifies level of conformance with ANSI standard to check for. If keyword is not specified, level of conformance is f03 keywords: f90 (same as -std90), f95(same as -std95), f03(same as -std95), none (same as -nostand) -syntax-only perform syntax and semantic checking only (no object file produced) Compiler Diagnostics -------------------- -cm suppress all comment messages, same as -warn nousage -w disable all warnings -W disable warnings (n = 0) or show warnings (n = 1 DEFAULT, same as -warn general) -w90, -w95 suppress messages about use of non-standard Fortran -warn specifies the level of warning messages issued keywords: all, none (same as -nowarn) [no]alignments, [no]declarations, [no]errors, [no]general, [no]ignore_loc, [no]interfaces, [no]stderrors, [no]truncated_source, [no]uncalled, [no]unused, [no]usage -nowarn suppress all warning messages -WB turn a compile-time bounds check into a warning -Wcheck enable more strict diagnostics -Winline enable inline diagnostics -[no]traceback specify whether the compiler generates PC correlation data used to display a symbolic traceback rather than a hexadecimal traceback at runtime failure -[no]gen-interfaces[:[no]source] generate interface blocks for all routines in the file. Can be checked using -warn interfaces nosource indicates temporary source files should not be saved -error-limit specify the maximum number of error-level or fatal-level compiler errors allowed -noerror-limit set no maximum number on error-level or fatal-level error messages -diag-enable [,,...] enable the specified diagnostics or diagnostic groups -diag-disable [,,...] disable the specified diagnostics or diagnostic groups where may be individual diagnostic numbers or group names. where group names include: sc[n] - perform source code analysis: n=1 for critical errors, n=2 for all errors and n=3 for all errors and warnings sc-include - perform source code analysis on include files sc-parallel[n] - perform analysis of parallelization in source code: n=1 for critical errors, n=2 for errors, n=3 for all errors and warnings -diag-error [,,...] output the specified diagnostics or diagnostic groups as errors -diag-warning [,,...] output the specified diagnostics or diagnostic groups as warnings -diag-remark [,,...] output the the specified diagnostics or diagnostic groups as remarks -diag-dump display the currently enabled diagnostic messages to stdout or to a specified diagnostic output file. -diag-file[=] where diagnostics are emitted to. Not specifying this causes messages to be output to stderr -diag-file-append[=] where diagnostics are emitted to. When already exists, output is appended to the file -[no-]diag-id-numbers enable(DEFAULT)/disable the diagnostic specifiers to be output in numeric form -diag-error-limit specify the maximum number of errors emitted Miscellaneous ------------- -[no]logo display compiler version information. /nologo disables the output -V display compiler version information -dumpmachine display the target machine only --version display GCC style version information -[no-]sox enable/disable(DEFAULT) saving of compiler options and version in the executable -save-temps store the intermediate files in current directory and name them based on the source file. Only saves files that are generated by default -dryrun show driver tool commands but do not execute tools -v show driver tool commands and execute tools -what display detailed compiler version information -watch tells the driver to output processing information keywords: all, none (same as -nowatch), [no]source, [no]cmd (same as -v) -nowatch suppress processing information output (DEFAULT) -Tf compile file as Fortran source -multiple-processes[=] create multiple processes that can be used to compile large numbers of source files at the same time Data ---- -i{2|4|8} set default KIND of integer and logical variables to 2, 4, or 8 -integer-size specifies the default size of integer and logical variables size: 16, 32, 64 -r{8|16} set default size of real to 8 or 16 bytes -real-size specify the size of REAL and COMPLEX declarations, constants, functions, and intrinsics size: 32, 64, 128 -autodouble same as -real-size 64 or -r8 -double-size defines the size of DOUBLE PRECISION and DOUBLE COMPLEX declarations, constants, functions, and intrinsics size: 64, 128 -[no]fpconstant extends the precision of single precision constants assigned to double precision variables to double precision -[no]intconstant use Fortran 77 semantics, rather than Fortran 90/95, to determine kind of integer constants -auto make all local variables AUTOMATIC. Same as -automatic -auto-scalar make scalar local variables AUTOMATIC (DEFAULT) -save save all variables (static allocation) (same as -noautomatic, opposite of -auto) -[no]zero enable/disable(DEFAULT) implicit initialization to zero of local scalar variables of intrinsic type INTEGER, REAL, COMPLEX, or LOGICAL that are saved and not initialized -dyncom make given common blocks dynamically-allocated -Zp[n] specify alignment constraint for structures (n=1,2,4,8,16 -Zp16 DEFAULT) -[no]align analyze and reorder memory layout for variables and arrays -align specify how data items are aligned keywords: all (same as -align), none (same as -align), [no]commons, [no]dcommons, [no]records, rec1byte, rec2byte, rec4byte, rec8byte, rec16byte, [no]sequence -fminshared Compilation is for the main executable. Absolute addressing can be used and non-position independent code generated for symbols that are at least protected -fstack-security-check enable overflow security checks. -f[no-]stack-security-check disables (DEFAULT) -fstack-protector enable stack overflow security checks. -f[no-]stack-protector disables (DEFAULT) -fpic, -fPIC generate position independent code (-fno-pic/-fno-PIC is DEFAULT) -fpie, -fPIE generate position independent code that will be linked into an executable (-fno-pie/-fno-PIE is DEFAULT) -[no-]global-hoist enable(DEFAULT)/disable external globals are load safe -f[no-]keep-static-consts enable/disable(DEFAULT) emission of static const variables even when not referenced -fpack-struct pack structure members together -f[no-]math-errno set ERRNO after calling standard math library functions -no-bss-init disable placement of zero-initialized variables in BSS (use DATA) -convert specify the format of unformatted files containing numeric data keywords: big_endian, cray, ibm, little_endian, native, vaxd, vaxg -falign-functions=[2|16] align the start of functions on a 2 (DEFAULT) or 16 byte boundary -falign-functions align the start of functions to an optimal machine-dependent value. -fno-align-functions (DEFAULT) aligns on a 2-byte boundary -falign-stack= stack alignment method to use on entry to routines default - use default heuristics maintain-16-byte - do not assume any specific alignment, but maintain alignment in case the stack is already aligned assume-16-byte - assume the stack is aligned on 16-byte boundaries -fvisibility=[extern|default|protected|hidden|internal] Global symbols (data and functions) will get the visibility attribute given by default. Symbol visibility attributes explicitly set in the source code or using the symbol visibility attribute file options will override the -fvisibility setting -fvisibility-extern= Space separated symbols listed in the argument will geti visibility set to extern -fvisibility-default= Space separated symbols listed in the argument will get visibility set to default -fvisibility-protected= Space separated symbols listed in the argument will get visibility set to protected -fvisibility-hidden= Space separated symbols listed in the argument will get visibility set to hidden -fvisibility-internal= Space separated symbols listed in the argument will get visibility set to internal -fvisibility-inlines-hidden mark inline member functions as hidden Compatibility ------------- -fpscomp specify the level of compatibility to adhere to with Fortran PowerStation keywords: all, none (same as -nofpscomp), [no]filesfromcmd, [no]general, [no]ioformat, [no]ldio_spacing, [no]libs, [no]logicals -nofpscomp no specific level of compatibility with Fortran PowerStation -1, -onetrip execute any DO loop at least once -f66, -66 allow extensions that enhance FORTRAN-66 compatibility -f77rtl specify that the Fortran 77 specific run-time support should be used -nof77rtl disables -vms enable VMS I/O statement extensions -gcc-name= name and location of gcc if not where expected -gxx-name= name and location of g++ if not where expected -gcc-version= specify the of gcc compatibility. Default value matches gcc version installed. Major/Minor versions listed but patch levels (i.e. 345) are permissible 320 - gcc 3.2.x compatibility 330 - gcc 3.3.x compatibility 340 - gcc 3.4.x compatibility 400 - gcc 4.0.x compatibility 410 - gcc 4.1.x compatibility 420 - gcc 4.2.x compatibility Linking/Linker -------------- -L instruct linker to search for libraries -l instruct the linker to link in the -l library -shared-intel link Intel provided libraries dynamically -static-intel link Intel provided libraries statically -shared-libgcc link libgcc dynamically -static-libgcc link libgcc statically -dynamic-linker select dynamic linker other than the default -no-cxxlib do not link in C++ runtime libraries -cxxlib[=dir] link using C++ run-time libraries provided with gcc dir is an optional top-level location for the gcc binaries and libraries -nodefaultlibs do not use standard libraries when linking -nostartfiles do not use standard startup files when linking -nostdlib do not use standard libraries and startup files when linking -nofor-main do not link against Fortran main object. Used when linking Fortran objects with C main program -static prevents linking with shared libraries -shared produce a shared object -Bstatic specify following libraries are linked statically -Bdynamic specify following libraries are linked dynamically -cxxlib- tell the compiler which C++ run-time libraries to use nostd - do not link in standard C++ library -T direct linker to read link commands from -Xlinker pass directly to the linker for processing -Wa,[,,...] pass options o1, o2, etc. to the assembler -Wl,[,,...] pass options o1, o2, etc. to the linker for processing -Wp,[,,...] pass options o1, o2, etc. to the preprocessor -threads specify that multi-threaded libraries should be linked against -nothreads disables multi-threaded libraries Deprecated Options ------------------ -Ob use -inline-level= -cxxlib-gcc[=dir] use -cxxlib[=dir] -i-dynamic use -shared-intel -i-static use -static-intel -inline-debug-info use -debug inline-debug-info -mp use -fp-model -use-asm no replacement -A- use -U -prefetch use -opt-prefetch -prof-genx use -prof-gen=srcpos -fwritable-strings use -assume writeable-strings -openmp-lib=legacy use -openmp-lib=compat -xB use -xSSE2 (i32 only) -xK use -xSSE (i32 only) -axK No replacement -xW use -msse2 -axW use -msse2 -xN use -xSSE2 -axN use -axSSE2 -xP use -xSSE3 -axP use -axSSE3 -xT use -xSSSE3 -axT use -axSSSE3 -xS use -xSSE4.1 -axS use -axSSE4.1 -xO use -msse3 -func-groups use -prof-func-groups -diag-enable sv use -diag-enable sc -diag-enable sv-include use -diag-enable sc-include -diag-disable sv use -diag-disable sc -diag-sv use -diag-enable sc -diag-sv-error use -diag-disable warning -diag-sv-include use -diag-enable sc-include -diag-sv-level No replacement -diag-sv-sup use -diag-disable [,,...] -help [category] print full or category help message Valid categories include advanced - Advanced Optimizations codegen - Code Generation compatibility - Compatibility component - Component Control data - Data deprecated - Deprecated Options diagnostics - Compiler Diagnostics float - Floating Point help - Help inline - Inlining ipo - Interprocedural Optimization (IPO) language - Language link - Linking/Linker misc - Miscellaneous opt - Optimization output - Output pgo - Profile Guided Optimization (PGO) preproc - Preprocessor reports - Optimization Reports openmp - OpenMP and Parallel Processing Copyright (C) 1985-2009, Intel Corporation. All rights reserved. * Other brands and names are the property of their respective owners. sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort --help Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort --help sh: Intel(R) Fortran Compiler Help ============================== usage: ifort [options] file1 [file2 ...] where options represents zero or more compiler options fileN is a Fortran source (.f .for .ftn .f90 .fpp .F .FOR .F90 .i .i90), assembly (.s .S), object (.o), static library (.a), or other linkable file Commonly used options may be placed in the ifort .cfg file. Some options listed are only available on a specific system i32 indicates the feature is available on systems based on IA-32 architecture i64em indicates the feature is available on systems using Intel(R) 64 architecture Compiler Option List -------------------- Optimization ------------ -O1 optimize for maximum speed, but disable some optimizations which increase code size for a small speed benefit -O2 optimize for maximum speed (DEFAULT) -O3 optimize for maximum speed and enable more aggressive optimizations that may not improve performance on some programs -O same as -O2 -Os enable speed optimizations, but disable some optimizations which increase code size for small speed benefit -O0 disable optimizations -fast enable -xHOST -O3 -ipo -no-prec-div -static options set by -fast cannot be overridden with the exception of -xHOST, list options separately to change behavior -fno-alias assume no aliasing in program -fno-fnalias assume no aliasing within functions, but assume aliasing across calls -nolib-inline disable inline expansion of intrinsic functions Code Generation --------------- -x[,,...] generate specialized code to run exclusively on processors indicated by as described below Host generate instructions for the highest instruction set and processor available on the compilation host machine SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSE3_ATOM Can generate MOVBE instructions for Intel processors and can optimize for the Intel(R) Atom(TM) processor. SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for SSE4 Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -ax[,,...] generate code specialized for processors specified by while also generating generic IA-32 instructions. includes one or more of the following: SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -tune pn1 - optimize for Pentium(R) processor (i32 only) pn2 - optimize for Pentium(R) Pro, Pentium(R) II, and Pentium(R) III processors (i32 only) pn3 - same as pn2 (i32 only) pn4 - optimize for Pentium(R) 4 processor (DEFAULT) -arch pn1 - optimize for Pentium(R) processor (i32 only) pn2 - optimize for Pentium(R) Pro, Pentium(R) II, and Pentium(R) III processors (i32 only) pn3 - same as pn2 (i32 only) pn4 - optimize for Pentium(R) 4 processor (DEFAULT) SSE - Intel Pentium III and compatible Intel processors (i32 only) SSE2 - Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations (i32 only) SSE3 - Intel(R) Core(TM) processor family. Code is expected to run properly on any processor that supports SSE3, SSE2 and SSE instruction sets SSSE3 - Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 - Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions IA32 - generate generic IA-32 architecture code for Intel Pentium III and compatible Intel processors. Disables any default or previously set extended instruction setting -mcpu= same as -mtune= -mtune= optimize for a specific pentium3 - optimize for Pentium(R) III processors pentium4 - optimize for Pentium(R) 4 processor (DEFAULT) -march= generate code exclusively for a given pentium3 - streaming SIMD extensions pentium4 - Pentium(R) 4 New Instructions -mia32 generates code which will run on any Intel Pentium or later processor. Disables any default extended instruction settings, and any previously set extended instruction settings. -msse generate code for Intel Pentium III and compatible Intel processors -msse2 generate code for Intel Pentium 4 and compatible Intel processors -msse3 generate code for Intel(R) Core(TM) Duo processors, Intel(R) Core(TM) Solo processors, Intel Pentium 4 and compatible Intel processors with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support -mssse3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) -msse4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions -minstruction= Refine instruction set output for the selected target processor [no]movbe - Do/do not generate MOVBE instructions with SSE3_ATOM (requires -xSSE3_ATOM) -f[no-]omit-frame-pointer enable(DEFAULT)/disable use of EBP as general purpose register. -fno-omit-frame-pointer replaces -fp -f[no-]exceptions enable/disable(DEFAULT) C++ exception handling table generation -f[no-]exceptions enable(DEFAULT)/disable exception handling Interprocedural Optimization (IPO) ---------------------------------- -[no-]ip enable(DEFAULT)/disable single-file IP optimization within files -ipo[n] enable multi-file IP optimization between files -ipo-c generate a multi-file object file (ipo_out.o) -ipo-S generate a multi-file assembly file (ipo_out.S) -ip-no-inlining disable full and partial inlining -ip-no-pinlining disable partial inlining -ipo-separate create one object file for every source file (overrides -ipo[n]) -ipo-jobs specify the number of jobs to be executed simultaneously during the IPO link phase Advanced Optimizations ---------------------- -unroll[n] set maximum number of times to unroll loops. Omit n to use default heuristics. Use n=0 to disable the loop unroller -[no-]unroll-aggressive enables more aggressive unrolling heuristics -funroll-loops unroll loops based on default heuristics -[no-]scalar-rep enable(DEFAULT)/disable scalar replacement (requires -O3) -[no]pad enable/disable(DEFAULT) changing variable and array memory layout -safe-cray-ptr Cray pointers do not alias with other variables -[no-]ansi-alias enable/disable(DEFAULT) use of ANSI aliasing rules optimizations; user asserts that the program adheres to these rules -[no-]complex-limited-range enable/disable(DEFAULT) the use of the basic algebraic expansions of some complex arithmetic operations. This can allow for some performance improvement in programs which use a lot of complex arithmetic at the loss of some exponent range. -reentrancy specify whether the threaded, reentrant run-time support should be used Keywords: none (same as -noreentrancy), threaded, async -noreentrancy do not use threaded, reentrant run-time support -heap-arrays [n] temporary arrays of minimum size n (in kilobytes) are allocated in heap memory rather than on the stack. If n is not specified, all temporary arrays are allocated in heap memory. -no-heap-arrays temporary arrays are allocated on the stack (DEFAULT) -[no-]opt-multi-version-aggressive enables more aggressive multi-versioning to check for pointer aliasing and scalar replacement -opt-ra-region-strategy[=] select the method that the register allocator uses to partition each routine into regions routine - one region per routine block - one region per block trace - one region per trace loop - one region per loop default - compiler selects best option -[no-]vec enables(DEFAULT)/disables vectorization -[no-]vec-guard-write enables cache/bandwidth optimization for stores under conditionals within vector loops -vec-threshold[n] sets a threshold for the vectorization of loops based on the probability of profitable execution of the vectorized loop in parallel -opt-malloc-options={0|1|2|3|4} specify malloc configuration parameters. Specifying a non-zero value will cause alternate configuration parameters to be set for how malloc allocates and frees memory -opt-jump-tables= control the generation of jump tables default - let the compiler decide when a jump table, a series of if-then-else constructs or a combination is generated large - generate jump tables up to a certain pre-defined size (64K entries) - generate jump tables up to in size use -no-opt-jump-tables to lower switch statements as chains of if-then-else constructs -fno-jump-tables do not generate jump tables for switches and if-then-else statements -opt-block-factor= specify blocking factor for loop blocking -opt-streaming-stores specifies whether streaming stores are generated always - enables generation of streaming stores under the assumption that the application is memory bound auto - compiler decides when streaming stores are used (DEFAULT) never - disables generation of streaming stores -mkl[=] link to the Intel(R) Math Kernel Library (Intel(R) MKL) and bring in the associated headers parallel - link using the threaded Intel(R) MKL libraries. This is the default when -mkl is specified sequential - link using the non-threaded Intel(R) MKL libraries cluster - link using the Intel(R) MKL Cluster libraries plus the sequential Intel(R) MKL libraries -imsl link to the International Mathematics and Statistics Library* (IMSL* library) -[no-]opt-subscript-in-range assumes no overflows in the intermediate computation of the subscripts Profile Guided Optimization (PGO) --------------------------------- -prof-dir specify directory for profiling output files (*.dyn and *.dpi) -prof-src-root specify project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -prof-src-root-cwd specify the current directory as the project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -[no-]prof-src-dir specify whether directory names of sources should be considered when looking up profile records within the .dpi file -prof-file specify file name for profiling summary file -[no-]prof-data-order enable/disable(DEFAULT) static data ordering with profiling -[no-]prof-func-order enable/disable(DEFAULT) function ordering with profiling -[no-]prof-func-groups enable(DEFAULT with PGO)/disable function grouping -prof-gen[=keyword] instrument program for profiling. Optional keyword may be srcpos or globdata -no-prof-gen disable profiling instrumentation -prof-use[=] enable use of profiling information during optimization weighted - invokes profmerge with -weighted option to scale data based on run durations [no]merge - enable(default)/disable the invocation of the profmerge tool -no-prof-use disable use of profiling information during optimization -opt-prefetch[=n] enable levels of prefetch insertion, where 0 disables. n may be 0 through 4 inclusive. Default is 2. -no-opt-prefetch disable(DEFAULT) prefetch insertion. Equivalent to -opt-prefetch=0 -p compile and link for function profiling with UNIX gprof tool On IA32 and Intel(r)64, -pg is also valid -f[no-]instrument-functions determine whether function entry and exit points are instrumented -prof-hotness-threshold= set the hotness threshold for function grouping and function ordering val indicates percentage of functions to be placed in hot region. This option requires -prof-use and -prof-func-groups or -prof-func-order Optimization Reports -------------------- -vec-report[n] control amount of vectorizer diagnostic information n=0 no diagnostic information n=1 indicate vectorized loops (DEFAULT) n=2 indicate vectorized/non-vectorized loops n=3 indicate vectorized/non-vectorized loops and prohibiting data dependence information n=4 indicate non-vectorized loops n=5 indicate non-vectorized loops and prohibiting data dependence information -opt-report [n] generate an optimization report to stderr 0 disable optimization report output 1 minimum report output 2 medium output (DEFAULT when enabled) 3 maximum report output -opt-report-file= specify the filename for the generated report -opt-report-phase= specify the phase that reports are generated against -opt-report-routine= reports on routines containing the given name -opt-report-help display the optimization phases available for reporting -tcheck [mode] enable analysis of threaded applications (requires Intel(R) Thread Checker; cannot be used with compiler alone) tci - instruments a program to perform a thread-count-independent analysis tcd - instruments a program to perform a thread-count-dependent analysis (DEFAULT when mode is not used) api - instruments a program at the api-imports level -tprofile generate instrumentation to analyze multi-threading performance (requires Intel(R) Thread Profiler; cannot be used with compiler alone) -tcollect[=] inserts instrumentation probes calling the Intel(R) Trace Collector API. The library -l is linked in the default being -lVT (requires Intel(R) Trace Collector) -tcollect-filter file Enable or disable the instrumentation of specified functions. (requires Intel(R) Trace Collector) OpenMP* and Parallel Processing ------------------------------- -openmp enable the compiler to generate multi-threaded code based on the OpenMP* directives -openmp-profile enable analysis of OpenMP application when the Intel(R) Thread Profiler is installed -openmp-stubs enables the user to compile OpenMP programs in sequential mode. The OpenMP directives are ignored and a stub OpenMP library is linked (sequential) -openmp-report{0|1|2} control the OpenMP parallelizer diagnostic level -openmp-lib choose which OpenMP library version to link with compat - use the GNU compatible OpenMP run-time libraries (DEFAULT) -openmp-link choose whether to link with the static or dynamic OpenMP libraries. Default is dynamic. -openmp-threadprivate choose which threadprivate implementation to use compat - use the GNU compatible thread local storage legacy - use the Intel compatible implementation (DEFAULT) -parallel enable the auto-parallelizer to generate multi-threaded code for loops that can be safely executed in parallel -par-report{0|1|2|3} control the auto-parallelizer diagnostic level -par-threshold[n] set threshold for the auto-parallelization of loops where n is an integer from 0 to 100 -[no-]par-runtime-control enable compiler to generate runtime control code for effective automatic parallelization -par-schedule-static[=n] Specifies a scheduling algorithm for DO loop iteration. Divides iterations into contiguous pieces. Size n if specified, equal sized pieces if not. -par-schedule-static-balanced[=n] Divides iterations into even-sized chunks. Size n if specified, equal sized pieces if not. -par-schedule-static-steal[=n] Divides iterations into even-sized chunks, but allows threads to steal parts of chunks from neighboring threads -par-schedule-dynamic[=n] Specifies a scheduling algorithm for DO loop iteration. Assigns iterations to threads in chunks dynamically. Chunk size is n iterations if specified, otherwise 1. -par-schedule-guided[=n] Specifies a scheduling algorithm for DO loop iteration. Indicates a minimum number of iterations. If specified, n is the minimum number, otherwise 1. -par-schedule-guided-analytical[=n] Divides iterations by using exponential distribution or dynamic distributions. -par-schedule-runtime Specifies a scheduling algorithm for DO loop iteration. Defers the scheduling decision until runtime. -par-schedule-auto Lets the compiler or run-time system determine the scheduling algorithm. -par-affinity=[,...][,][,] tune application performance by setting different thread affinity -par-num-threads= tune application performance by setting different number of threads Floating Point -------------- -fp-model enable floating point model variation [no-]except - enable/disable floating point semantics fast[=1|2] - enables more aggressive floating point optimizations precise - allows value-safe optimizations source - enables intermediates in source precision strict - enables -fp-model precise -fp-model except, disables contractions and enables pragma stdc fenv_access -fp-speculation= enable floating point speculations with the following conditions: fast - speculate floating point operations (DEFAULT) safe - speculate only when safe strict - same as off off - disables speculation of floating-point operations -pc32 set internal FPU precision to 24 bit significand -pc64 set internal FPU precision to 53 bit significand (DEFAULT) -pc80 set internal FPU precision to 64 bit significand -mp1 improve floating-point precision (speed impact less than -mp) -mieee-fp same as -mp, can be disabled with -mno-ieee-fp -[no-]prec-sqrt determine if certain square root optimizations are enabled -[no-]prec-div improve precision of FP divides (some speed impact) -[no-]fast-transcendentals generate a faster version of the transcendental functions -[no-]fp-port round fp results at assignments and casts (some speed impact) -fp-stack-check enable fp stack checking after every function/procedure call -rcd rounding mode to enable fast float-to-int conversions -rounding-mode chopped set internal FPU rounding control to truncate -[no-]ftz enable/disable flush denormal results to zero -fpe{0|1|3} specifies program-wide behavior on floating point exceptions -fpe-all={0|1|3} specifies floating point exception behavior on all functions and subroutines. Also sets -assume ieee_fpe_flags -[no]fltconsistency specify that improved floating-point consistency should be used -[no]recursive compile all procedures for possible recursive execution Inlining -------- -inline-level= control inline expansion: n=0 disable inlining n=1 inline functions declared with ATTRIBUTES INLINE or FORCEINLINE n=2 inline any function, at the compiler's discretion -f[no-]inline-functions inline any function at the compiler's discretion -finline-limit= set maximum number of statements a function can have and still be considered for inlining -inline-min-size= set size limit for inlining small routines -no-inline-min-size no size limit for inlining small routines -inline-max-size= set size limit for inlining large routines -no-inline-max-size no size limit for inlining large routines -inline-max-total-size= maximum increase in size for inline function expansion -no-inline-max-total-size no size limit for inline function expansion -inline-max-per-routine= maximum number of inline instances in any function -no-inline-max-per-routine no maximum number of inline instances in any function -inline-max-per-compile= maximum number of inline instances in the current compilation -no-inline-max-per-compile no maximum number of inline instances in the current compilation -inline-factor= set inlining upper limits by n percentage -no-inline-factor do not set set inlining upper limits -inline-forceinline treat inline routines as forceinline -inline-calloc directs the compiler to inline calloc() calls as malloc()/memset() Output, Debug, PCH ------------------ -c compile to object (.o) only, do not link -S compile to assembly (.s) only, do not link -fsource-asm produce assembly file with optional source annotations (requires -S) -f[no-]verbose-asm produce assembly file with compiler comments (DEFAULT) (requires -S) -fcode-asm produce assembly file with optional code annotations (requires -S) -use-msasm support Microsoft* style assembly language insertion using MASM style syntax -o name output file -g produce symbolic debug information in object file (implies -O0 when another optimization option is not explicitly set) -debug [keyword] enable debug information and control output of enhanced debug information keywords: all, full, minimal, none, [no]inline-debug-info [no]variable-locations, [no]semantic-stepping, extended parallel -debug-parameters [keyword] control output of debug information for PARAMETERS keywords: all, used, none (same as -nodebug-parameters) -nodebug-parameters do not output debug information for PARAMETERS -g0 disable generation of symbolic debug information -gdwarf-2 enable generation of debug information using the DWARF2 format -[no]d-lines compile debug statements (indicated by D in column 1) -DD compile debug statements, indicated by D in column 1. This option prevents the definition of a macro named D using the command line -Dname option (use -Dname=n syntax instead) -ftrapuv trap uninitialized variables -map-opts enable option mapping tool -print-multi-lib print information about libraries being used Preprocessor ------------ -D[=] define macro -nodefines, -noD specifies that any -D macros go to the preprocessor only, and not to the compiler -U remove predefined macro -allow nofpp-comments If a Fortran end-of-line comment is seen within a #define, treat it as part of the definition. Default is allow:fpp-comments -E preprocess to stdout -EP preprocess to stdout, omitting #line directives -P preprocess to file, omitting #line directives -preprocess-only same as -P -[no]keep keep/remove preprocessed file generated by preprocessor as input to compiler stage. Not affected by -save-temps. Default is -nokeep -fpp[n], -[no]fpp run Fortran preprocessor on source files prior to compilation n=0 disable running the preprocessor, equivalent to nofpp n=1,2,3 run preprocessor -cpp[n] same as -fpp[n] -module path specify path where mod files should be placed and first location to look for mod files -I add directory to include file search path -idirafter add directory to the second include file search path (after -I) -isystem add directory to the start of the system include path -X, -nostdinc remove standard directories from include file search path -B find libraries, headers and executables in Component Control ----------------- -Qoption,, pass options to tool specified by -Qlocation,, set as the location of tool specified by -Qinstall set as root of compiler installation Language -------- -[no]altparam specify if alternate form of parameter constant declarations (without parenthesis) is recognized. Default is to recognize Same as -[no]dps -assume specify assumptions made by the optimizer and code generator keywords: none, [no]byterecl, [no]buffered_io, [no]bscc (nobscc same as -nbs), [no]cc_omp, [no]minus0, [no]dummy_aliases (same as -common-args), [no]ieee_fpe_flags, [no]old_boz, [no]old_logical_ldio, [no]old_maxminloc, [no]old_unit_star, [no]old_xor, [no]protect_constants, [no]protect_parens, [no]realloc_lhs, [no]2underscore, [no]underscore (same as -us), [no]std_mod_proc_name, [no]source_include, [no]writeable_strings -ccdefault specify default carriage control for units 6 and * keywords: default, fortran, list or none -[no]check check run-time conditions. Default is -nocheck keywords: all (same as -C), none (same as -nocheck), [no]arg_temp_created, [no]bounds (same as -CB), [no]format, [no]output_conversion, [no]pointer (same as -CA), [no]uninit (same as -CU) -common-args assume "by reference" subprogram arguments may alias one another. Same as -assume dummy_aliases -e03 issue errors for language elements that are not standard in Fortran 2003 (same as -stand f03 -warn stderrors options) -e95 issue errors for language elements that are not standard in Fortran 95 (same as -stand f95 -warn stderrors options) -e90 issue errors for language elements that are not standard in Fortran 90 (same as -stand f90 -warn stderrors options) -[no]extend-source [] specify rightmost column for fixed form sources keywords: 72 (same as -noextend-source and -72), 80 (same as -80), 132 (same as -132. Default if you specify -extend-source without a keyword.) -fixed specify source files are in fixed format. Same as -FI -nofixed indicates free format -free specify source files are in free format. Same as -FR -nofree indicates fixed format -[no]mixed-str-len-arg indicate whether hidden lengths are passed after their character argument or after all arguments. -names specify how source code identifiers and external names are interpreted. keywords: as_is, lowercase (Default. Same as -lowercase), uppercase (same as -uppercase) -[no]pad-source make compiler acknowledge blanks at the end of a line -stand [] specifies level of conformance with ANSI standard to check for. If keyword is not specified, level of conformance is f03 keywords: f90 (same as -std90), f95(same as -std95), f03(same as -std95), none (same as -nostand) -syntax-only perform syntax and semantic checking only (no object file produced) Compiler Diagnostics -------------------- -cm suppress all comment messages, same as -warn nousage -w disable all warnings -W disable warnings (n = 0) or show warnings (n = 1 DEFAULT, same as -warn general) -w90, -w95 suppress messages about use of non-standard Fortran -warn specifies the level of warning messages issued keywords: all, none (same as -nowarn) [no]alignments, [no]declarations, [no]errors, [no]general, [no]ignore_loc, [no]interfaces, [no]stderrors, [no]truncated_source, [no]uncalled, [no]unused, [no]usage -nowarn suppress all warning messages -WB turn a compile-time bounds check into a warning -Wcheck enable more strict diagnostics -Winline enable inline diagnostics -[no]traceback specify whether the compiler generates PC correlation data used to display a symbolic traceback rather than a hexadecimal traceback at runtime failure -[no]gen-interfaces[:[no]source] generate interface blocks for all routines in the file. Can be checked using -warn interfaces nosource indicates temporary source files should not be saved -error-limit specify the maximum number of error-level or fatal-level compiler errors allowed -noerror-limit set no maximum number on error-level or fatal-level error messages -diag-enable [,,...] enable the specified diagnostics or diagnostic groups -diag-disable [,,...] disable the specified diagnostics or diagnostic groups where may be individual diagnostic numbers or group names. where group names include: sc[n] - perform source code analysis: n=1 for critical errors, n=2 for all errors and n=3 for all errors and warnings sc-include - perform source code analysis on include files sc-parallel[n] - perform analysis of parallelization in source code: n=1 for critical errors, n=2 for errors, n=3 for all errors and warnings -diag-error [,,...] output the specified diagnostics or diagnostic groups as errors -diag-warning [,,...] output the specified diagnostics or diagnostic groups as warnings -diag-remark [,,...] output the the specified diagnostics or diagnostic groups as remarks -diag-dump display the currently enabled diagnostic messages to stdout or to a specified diagnostic output file. -diag-file[=] where diagnostics are emitted to. Not specifying this causes messages to be output to stderr -diag-file-append[=] where diagnostics are emitted to. When already exists, output is appended to the file -[no-]diag-id-numbers enable(DEFAULT)/disable the diagnostic specifiers to be output in numeric form -diag-error-limit specify the maximum number of errors emitted Miscellaneous ------------- -[no]logo display compiler version information. /nologo disables the output -V display compiler version information -dumpmachine display the target machine only --version display GCC style version information -[no-]sox enable/disable(DEFAULT) saving of compiler options and version in the executable -save-temps store the intermediate files in current directory and name them based on the source file. Only saves files that are generated by default -dryrun show driver tool commands but do not execute tools -v show driver tool commands and execute tools -what display detailed compiler version information -watch tells the driver to output processing information keywords: all, none (same as -nowatch), [no]source, [no]cmd (same as -v) -nowatch suppress processing information output (DEFAULT) -Tf compile file as Fortran source -multiple-processes[=] create multiple processes that can be used to compile large numbers of source files at the same time Data ---- -i{2|4|8} set default KIND of integer and logical variables to 2, 4, or 8 -integer-size specifies the default size of integer and logical variables size: 16, 32, 64 -r{8|16} set default size of real to 8 or 16 bytes -real-size specify the size of REAL and COMPLEX declarations, constants, functions, and intrinsics size: 32, 64, 128 -autodouble same as -real-size 64 or -r8 -double-size defines the size of DOUBLE PRECISION and DOUBLE COMPLEX declarations, constants, functions, and intrinsics size: 64, 128 -[no]fpconstant extends the precision of single precision constants assigned to double precision variables to double precision -[no]intconstant use Fortran 77 semantics, rather than Fortran 90/95, to determine kind of integer constants -auto make all local variables AUTOMATIC. Same as -automatic -auto-scalar make scalar local variables AUTOMATIC (DEFAULT) -save save all variables (static allocation) (same as -noautomatic, opposite of -auto) -[no]zero enable/disable(DEFAULT) implicit initialization to zero of local scalar variables of intrinsic type INTEGER, REAL, COMPLEX, or LOGICAL that are saved and not initialized -dyncom make given common blocks dynamically-allocated -Zp[n] specify alignment constraint for structures (n=1,2,4,8,16 -Zp16 DEFAULT) -[no]align analyze and reorder memory layout for variables and arrays -align specify how data items are aligned keywords: all (same as -align), none (same as -align), [no]commons, [no]dcommons, [no]records, rec1byte, rec2byte, rec4byte, rec8byte, rec16byte, [no]sequence -fminshared Compilation is for the main executable. Absolute addressing can be used and non-position independent code generated for symbols that are at least protected -fstack-security-check enable overflow security checks. -f[no-]stack-security-check disables (DEFAULT) -fstack-protector enable stack overflow security checks. -f[no-]stack-protector disables (DEFAULT) -fpic, -fPIC generate position independent code (-fno-pic/-fno-PIC is DEFAULT) -fpie, -fPIE generate position independent code that will be linked into an executable (-fno-pie/-fno-PIE is DEFAULT) -[no-]global-hoist enable(DEFAULT)/disable external globals are load safe -f[no-]keep-static-consts enable/disable(DEFAULT) emission of static const variables even when not referenced -fpack-struct pack structure members together -f[no-]math-errno set ERRNO after calling standard math library functions -no-bss-init disable placement of zero-initialized variables in BSS (use DATA) -convert specify the format of unformatted files containing numeric data keywords: big_endian, cray, ibm, little_endian, native, vaxd, vaxg -falign-functions=[2|16] align the start of functions on a 2 (DEFAULT) or 16 byte boundary -falign-functions align the start of functions to an optimal machine-dependent value. -fno-align-functions (DEFAULT) aligns on a 2-byte boundary -falign-stack= stack alignment method to use on entry to routines default - use default heuristics maintain-16-byte - do not assume any specific alignment, but maintain alignment in case the stack is already aligned assume-16-byte - assume the stack is aligned on 16-byte boundaries -fvisibility=[extern|default|protected|hidden|internal] Global symbols (data and functions) will get the visibility attribute given by default. Symbol visibility attributes explicitly set in the source code or using the symbol visibility attribute file options will override the -fvisibility setting -fvisibility-extern= Space separated symbols listed in the argument will geti visibility set to extern -fvisibility-default= Space separated symbols listed in the argument will get visibility set to default -fvisibility-protected= Space separated symbols listed in the argument will get visibility set to protected -fvisibility-hidden= Space separated symbols listed in the argument will get visibility set to hidden -fvisibility-internal= Space separated symbols listed in the argument will get visibility set to internal -fvisibility-inlines-hidden mark inline member functions as hidden Compatibility ------------- -fpscomp specify the level of compatibility to adhere to with Fortran PowerStation keywords: all, none (same as -nofpscomp), [no]filesfromcmd, [no]general, [no]ioformat, [no]ldio_spacing, [no]libs, [no]logicals -nofpscomp no specific level of compatibility with Fortran PowerStation -1, -onetrip execute any DO loop at least once -f66, -66 allow extensions that enhance FORTRAN-66 compatibility -f77rtl specify that the Fortran 77 specific run-time support should be used -nof77rtl disables -vms enable VMS I/O statement extensions -gcc-name= name and location of gcc if not where expected -gxx-name= name and location of g++ if not where expected -gcc-version= specify the of gcc compatibility. Default value matches gcc version installed. Major/Minor versions listed but patch levels (i.e. 345) are permissible 320 - gcc 3.2.x compatibility 330 - gcc 3.3.x compatibility 340 - gcc 3.4.x compatibility 400 - gcc 4.0.x compatibility 410 - gcc 4.1.x compatibility 420 - gcc 4.2.x compatibility Linking/Linker -------------- -L instruct linker to search for libraries -l instruct the linker to link in the -l library -shared-intel link Intel provided libraries dynamically -static-intel link Intel provided libraries statically -shared-libgcc link libgcc dynamically -static-libgcc link libgcc statically -dynamic-linker select dynamic linker other than the default -no-cxxlib do not link in C++ runtime libraries -cxxlib[=dir] link using C++ run-time libraries provided with gcc dir is an optional top-level location for the gcc binaries and libraries -nodefaultlibs do not use standard libraries when linking -nostartfiles do not use standard startup files when linking -nostdlib do not use standard libraries and startup files when linking -nofor-main do not link against Fortran main object. Used when linking Fortran objects with C main program -static prevents linking with shared libraries -shared produce a shared object -Bstatic specify following libraries are linked statically -Bdynamic specify following libraries are linked dynamically -cxxlib- tell the compiler which C++ run-time libraries to use nostd - do not link in standard C++ library -T direct linker to read link commands from -Xlinker pass directly to the linker for processing -Wa,[,,...] pass options o1, o2, etc. to the assembler -Wl,[,,...] pass options o1, o2, etc. to the linker for processing -Wp,[,,...] pass options o1, o2, etc. to the preprocessor -threads specify that multi-threaded libraries should be linked against -nothreads disables multi-threaded libraries Deprecated Options ------------------ -Ob use -inline-level= -cxxlib-gcc[=dir] use -cxxlib[=dir] -i-dynamic use -shared-intel -i-static use -static-intel -inline-debug-info use -debug inline-debug-info -mp use -fp-model -use-asm no replacement -A- use -U -prefetch use -opt-prefetch -prof-genx use -prof-gen=srcpos -fwritable-strings use -assume writeable-strings -openmp-lib=legacy use -openmp-lib=compat -xB use -xSSE2 (i32 only) -xK use -xSSE (i32 only) -axK No replacement -xW use -msse2 -axW use -msse2 -xN use -xSSE2 -axN use -axSSE2 -xP use -xSSE3 -axP use -axSSE3 -xT use -xSSSE3 -axT use -axSSSE3 -xS use -xSSE4.1 -axS use -axSSE4.1 -xO use -msse3 -func-groups use -prof-func-groups -diag-enable sv use -diag-enable sc -diag-enable sv-include use -diag-enable sc-include -diag-disable sv use -diag-disable sc -diag-sv use -diag-enable sc -diag-sv-error use -diag-disable warning -diag-sv-include use -diag-enable sc-include -diag-sv-level No replacement -diag-sv-sup use -diag-disable [,,...] -help [category] print full or category help message Valid categories include advanced - Advanced Optimizations codegen - Code Generation compatibility - Compatibility component - Component Control data - Data deprecated - Deprecated Options diagnostics - Compiler Diagnostics float - Floating Point help - Help inline - Inlining ipo - Interprocedural Optimization (IPO) language - Language link - Linking/Linker misc - Miscellaneous opt - Optimization output - Output pgo - Profile Guided Optimization (PGO) preproc - Preprocessor reports - Optimization Reports openmp - OpenMP and Parallel Processing Copyright (C) 1985-2009, Intel Corporation. All rights reserved. * Other brands and names are the property of their respective owners. sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort --help Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort --help sh: Intel(R) Fortran Compiler Help ============================== usage: ifort [options] file1 [file2 ...] where options represents zero or more compiler options fileN is a Fortran source (.f .for .ftn .f90 .fpp .F .FOR .F90 .i .i90), assembly (.s .S), object (.o), static library (.a), or other linkable file Commonly used options may be placed in the ifort .cfg file. Some options listed are only available on a specific system i32 indicates the feature is available on systems based on IA-32 architecture i64em indicates the feature is available on systems using Intel(R) 64 architecture Compiler Option List -------------------- Optimization ------------ -O1 optimize for maximum speed, but disable some optimizations which increase code size for a small speed benefit -O2 optimize for maximum speed (DEFAULT) -O3 optimize for maximum speed and enable more aggressive optimizations that may not improve performance on some programs -O same as -O2 -Os enable speed optimizations, but disable some optimizations which increase code size for small speed benefit -O0 disable optimizations -fast enable -xHOST -O3 -ipo -no-prec-div -static options set by -fast cannot be overridden with the exception of -xHOST, list options separately to change behavior -fno-alias assume no aliasing in program -fno-fnalias assume no aliasing within functions, but assume aliasing across calls -nolib-inline disable inline expansion of intrinsic functions Code Generation --------------- -x[,,...] generate specialized code to run exclusively on processors indicated by as described below Host generate instructions for the highest instruction set and processor available on the compilation host machine SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSE3_ATOM Can generate MOVBE instructions for Intel processors and can optimize for the Intel(R) Atom(TM) processor. SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for SSE4 Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -ax[,,...] generate code specialized for processors specified by while also generating generic IA-32 instructions. includes one or more of the following: SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -tune pn1 - optimize for Pentium(R) processor (i32 only) pn2 - optimize for Pentium(R) Pro, Pentium(R) II, and Pentium(R) III processors (i32 only) pn3 - same as pn2 (i32 only) pn4 - optimize for Pentium(R) 4 processor (DEFAULT) -arch pn1 - optimize for Pentium(R) processor (i32 only) pn2 - optimize for Pentium(R) Pro, Pentium(R) II, and Pentium(R) III processors (i32 only) pn3 - same as pn2 (i32 only) pn4 - optimize for Pentium(R) 4 processor (DEFAULT) SSE - Intel Pentium III and compatible Intel processors (i32 only) SSE2 - Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations (i32 only) SSE3 - Intel(R) Core(TM) processor family. Code is expected to run properly on any processor that supports SSE3, SSE2 and SSE instruction sets SSSE3 - Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 - Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions IA32 - generate generic IA-32 architecture code for Intel Pentium III and compatible Intel processors. Disables any default or previously set extended instruction setting -mcpu= same as -mtune= -mtune= optimize for a specific pentium3 - optimize for Pentium(R) III processors pentium4 - optimize for Pentium(R) 4 processor (DEFAULT) -march= generate code exclusively for a given pentium3 - streaming SIMD extensions pentium4 - Pentium(R) 4 New Instructions -mia32 generates code which will run on any Intel Pentium or later processor. Disables any default extended instruction settings, and any previously set extended instruction settings. -msse generate code for Intel Pentium III and compatible Intel processors -msse2 generate code for Intel Pentium 4 and compatible Intel processors -msse3 generate code for Intel(R) Core(TM) Duo processors, Intel(R) Core(TM) Solo processors, Intel Pentium 4 and compatible Intel processors with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support -mssse3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) -msse4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions -minstruction= Refine instruction set output for the selected target processor [no]movbe - Do/do not generate MOVBE instructions with SSE3_ATOM (requires -xSSE3_ATOM) -f[no-]omit-frame-pointer enable(DEFAULT)/disable use of EBP as general purpose register. -fno-omit-frame-pointer replaces -fp -f[no-]exceptions enable/disable(DEFAULT) C++ exception handling table generation -f[no-]exceptions enable(DEFAULT)/disable exception handling Interprocedural Optimization (IPO) ---------------------------------- -[no-]ip enable(DEFAULT)/disable single-file IP optimization within files -ipo[n] enable multi-file IP optimization between files -ipo-c generate a multi-file object file (ipo_out.o) -ipo-S generate a multi-file assembly file (ipo_out.S) -ip-no-inlining disable full and partial inlining -ip-no-pinlining disable partial inlining -ipo-separate create one object file for every source file (overrides -ipo[n]) -ipo-jobs specify the number of jobs to be executed simultaneously during the IPO link phase Advanced Optimizations ---------------------- -unroll[n] set maximum number of times to unroll loops. Omit n to use default heuristics. Use n=0 to disable the loop unroller -[no-]unroll-aggressive enables more aggressive unrolling heuristics -funroll-loops unroll loops based on default heuristics -[no-]scalar-rep enable(DEFAULT)/disable scalar replacement (requires -O3) -[no]pad enable/disable(DEFAULT) changing variable and array memory layout -safe-cray-ptr Cray pointers do not alias with other variables -[no-]ansi-alias enable/disable(DEFAULT) use of ANSI aliasing rules optimizations; user asserts that the program adheres to these rules -[no-]complex-limited-range enable/disable(DEFAULT) the use of the basic algebraic expansions of some complex arithmetic operations. This can allow for some performance improvement in programs which use a lot of complex arithmetic at the loss of some exponent range. -reentrancy specify whether the threaded, reentrant run-time support should be used Keywords: none (same as -noreentrancy), threaded, async -noreentrancy do not use threaded, reentrant run-time support -heap-arrays [n] temporary arrays of minimum size n (in kilobytes) are allocated in heap memory rather than on the stack. If n is not specified, all temporary arrays are allocated in heap memory. -no-heap-arrays temporary arrays are allocated on the stack (DEFAULT) -[no-]opt-multi-version-aggressive enables more aggressive multi-versioning to check for pointer aliasing and scalar replacement -opt-ra-region-strategy[=] select the method that the register allocator uses to partition each routine into regions routine - one region per routine block - one region per block trace - one region per trace loop - one region per loop default - compiler selects best option -[no-]vec enables(DEFAULT)/disables vectorization -[no-]vec-guard-write enables cache/bandwidth optimization for stores under conditionals within vector loops -vec-threshold[n] sets a threshold for the vectorization of loops based on the probability of profitable execution of the vectorized loop in parallel -opt-malloc-options={0|1|2|3|4} specify malloc configuration parameters. Specifying a non-zero value will cause alternate configuration parameters to be set for how malloc allocates and frees memory -opt-jump-tables= control the generation of jump tables default - let the compiler decide when a jump table, a series of if-then-else constructs or a combination is generated large - generate jump tables up to a certain pre-defined size (64K entries) - generate jump tables up to in size use -no-opt-jump-tables to lower switch statements as chains of if-then-else constructs -fno-jump-tables do not generate jump tables for switches and if-then-else statements -opt-block-factor= specify blocking factor for loop blocking -opt-streaming-stores specifies whether streaming stores are generated always - enables generation of streaming stores under the assumption that the application is memory bound auto - compiler decides when streaming stores are used (DEFAULT) never - disables generation of streaming stores -mkl[=] link to the Intel(R) Math Kernel Library (Intel(R) MKL) and bring in the associated headers parallel - link using the threaded Intel(R) MKL libraries. This is the default when -mkl is specified sequential - link using the non-threaded Intel(R) MKL libraries cluster - link using the Intel(R) MKL Cluster libraries plus the sequential Intel(R) MKL libraries -imsl link to the International Mathematics and Statistics Library* (IMSL* library) -[no-]opt-subscript-in-range assumes no overflows in the intermediate computation of the subscripts Profile Guided Optimization (PGO) --------------------------------- -prof-dir specify directory for profiling output files (*.dyn and *.dpi) -prof-src-root specify project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -prof-src-root-cwd specify the current directory as the project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -[no-]prof-src-dir specify whether directory names of sources should be considered when looking up profile records within the .dpi file -prof-file specify file name for profiling summary file -[no-]prof-data-order enable/disable(DEFAULT) static data ordering with profiling -[no-]prof-func-order enable/disable(DEFAULT) function ordering with profiling -[no-]prof-func-groups enable(DEFAULT with PGO)/disable function grouping -prof-gen[=keyword] instrument program for profiling. Optional keyword may be srcpos or globdata -no-prof-gen disable profiling instrumentation -prof-use[=] enable use of profiling information during optimization weighted - invokes profmerge with -weighted option to scale data based on run durations [no]merge - enable(default)/disable the invocation of the profmerge tool -no-prof-use disable use of profiling information during optimization -opt-prefetch[=n] enable levels of prefetch insertion, where 0 disables. n may be 0 through 4 inclusive. Default is 2. -no-opt-prefetch disable(DEFAULT) prefetch insertion. Equivalent to -opt-prefetch=0 -p compile and link for function profiling with UNIX gprof tool On IA32 and Intel(r)64, -pg is also valid -f[no-]instrument-functions determine whether function entry and exit points are instrumented -prof-hotness-threshold= set the hotness threshold for function grouping and function ordering val indicates percentage of functions to be placed in hot region. This option requires -prof-use and -prof-func-groups or -prof-func-order Optimization Reports -------------------- -vec-report[n] control amount of vectorizer diagnostic information n=0 no diagnostic information n=1 indicate vectorized loops (DEFAULT) n=2 indicate vectorized/non-vectorized loops n=3 indicate vectorized/non-vectorized loops and prohibiting data dependence information n=4 indicate non-vectorized loops n=5 indicate non-vectorized loops and prohibiting data dependence information -opt-report [n] generate an optimization report to stderr 0 disable optimization report output 1 minimum report output 2 medium output (DEFAULT when enabled) 3 maximum report output -opt-report-file= specify the filename for the generated report -opt-report-phase= specify the phase that reports are generated against -opt-report-routine= reports on routines containing the given name -opt-report-help display the optimization phases available for reporting -tcheck [mode] enable analysis of threaded applications (requires Intel(R) Thread Checker; cannot be used with compiler alone) tci - instruments a program to perform a thread-count-independent analysis tcd - instruments a program to perform a thread-count-dependent analysis (DEFAULT when mode is not used) api - instruments a program at the api-imports level -tprofile generate instrumentation to analyze multi-threading performance (requires Intel(R) Thread Profiler; cannot be used with compiler alone) -tcollect[=] inserts instrumentation probes calling the Intel(R) Trace Collector API. The library -l is linked in the default being -lVT (requires Intel(R) Trace Collector) -tcollect-filter file Enable or disable the instrumentation of specified functions. (requires Intel(R) Trace Collector) OpenMP* and Parallel Processing ------------------------------- -openmp enable the compiler to generate multi-threaded code based on the OpenMP* directives -openmp-profile enable analysis of OpenMP application when the Intel(R) Thread Profiler is installed -openmp-stubs enables the user to compile OpenMP programs in sequential mode. The OpenMP directives are ignored and a stub OpenMP library is linked (sequential) -openmp-report{0|1|2} control the OpenMP parallelizer diagnostic level -openmp-lib choose which OpenMP library version to link with compat - use the GNU compatible OpenMP run-time libraries (DEFAULT) -openmp-link choose whether to link with the static or dynamic OpenMP libraries. Default is dynamic. -openmp-threadprivate choose which threadprivate implementation to use compat - use the GNU compatible thread local storage legacy - use the Intel compatible implementation (DEFAULT) -parallel enable the auto-parallelizer to generate multi-threaded code for loops that can be safely executed in parallel -par-report{0|1|2|3} control the auto-parallelizer diagnostic level -par-threshold[n] set threshold for the auto-parallelization of loops where n is an integer from 0 to 100 -[no-]par-runtime-control enable compiler to generate runtime control code for effective automatic parallelization -par-schedule-static[=n] Specifies a scheduling algorithm for DO loop iteration. Divides iterations into contiguous pieces. Size n if specified, equal sized pieces if not. -par-schedule-static-balanced[=n] Divides iterations into even-sized chunks. Size n if specified, equal sized pieces if not. -par-schedule-static-steal[=n] Divides iterations into even-sized chunks, but allows threads to steal parts of chunks from neighboring threads -par-schedule-dynamic[=n] Specifies a scheduling algorithm for DO loop iteration. Assigns iterations to threads in chunks dynamically. Chunk size is n iterations if specified, otherwise 1. -par-schedule-guided[=n] Specifies a scheduling algorithm for DO loop iteration. Indicates a minimum number of iterations. If specified, n is the minimum number, otherwise 1. -par-schedule-guided-analytical[=n] Divides iterations by using exponential distribution or dynamic distributions. -par-schedule-runtime Specifies a scheduling algorithm for DO loop iteration. Defers the scheduling decision until runtime. -par-schedule-auto Lets the compiler or run-time system determine the scheduling algorithm. -par-affinity=[,...][,][,] tune application performance by setting different thread affinity -par-num-threads= tune application performance by setting different number of threads Floating Point -------------- -fp-model enable floating point model variation [no-]except - enable/disable floating point semantics fast[=1|2] - enables more aggressive floating point optimizations precise - allows value-safe optimizations source - enables intermediates in source precision strict - enables -fp-model precise -fp-model except, disables contractions and enables pragma stdc fenv_access -fp-speculation= enable floating point speculations with the following conditions: fast - speculate floating point operations (DEFAULT) safe - speculate only when safe strict - same as off off - disables speculation of floating-point operations -pc32 set internal FPU precision to 24 bit significand -pc64 set internal FPU precision to 53 bit significand (DEFAULT) -pc80 set internal FPU precision to 64 bit significand -mp1 improve floating-point precision (speed impact less than -mp) -mieee-fp same as -mp, can be disabled with -mno-ieee-fp -[no-]prec-sqrt determine if certain square root optimizations are enabled -[no-]prec-div improve precision of FP divides (some speed impact) -[no-]fast-transcendentals generate a faster version of the transcendental functions -[no-]fp-port round fp results at assignments and casts (some speed impact) -fp-stack-check enable fp stack checking after every function/procedure call -rcd rounding mode to enable fast float-to-int conversions -rounding-mode chopped set internal FPU rounding control to truncate -[no-]ftz enable/disable flush denormal results to zero -fpe{0|1|3} specifies program-wide behavior on floating point exceptions -fpe-all={0|1|3} specifies floating point exception behavior on all functions and subroutines. Also sets -assume ieee_fpe_flags -[no]fltconsistency specify that improved floating-point consistency should be used -[no]recursive compile all procedures for possible recursive execution Inlining -------- -inline-level= control inline expansion: n=0 disable inlining n=1 inline functions declared with ATTRIBUTES INLINE or FORCEINLINE n=2 inline any function, at the compiler's discretion -f[no-]inline-functions inline any function at the compiler's discretion -finline-limit= set maximum number of statements a function can have and still be considered for inlining -inline-min-size= set size limit for inlining small routines -no-inline-min-size no size limit for inlining small routines -inline-max-size= set size limit for inlining large routines -no-inline-max-size no size limit for inlining large routines -inline-max-total-size= maximum increase in size for inline function expansion -no-inline-max-total-size no size limit for inline function expansion -inline-max-per-routine= maximum number of inline instances in any function -no-inline-max-per-routine no maximum number of inline instances in any function -inline-max-per-compile= maximum number of inline instances in the current compilation -no-inline-max-per-compile no maximum number of inline instances in the current compilation -inline-factor= set inlining upper limits by n percentage -no-inline-factor do not set set inlining upper limits -inline-forceinline treat inline routines as forceinline -inline-calloc directs the compiler to inline calloc() calls as malloc()/memset() Output, Debug, PCH ------------------ -c compile to object (.o) only, do not link -S compile to assembly (.s) only, do not link -fsource-asm produce assembly file with optional source annotations (requires -S) -f[no-]verbose-asm produce assembly file with compiler comments (DEFAULT) (requires -S) -fcode-asm produce assembly file with optional code annotations (requires -S) -use-msasm support Microsoft* style assembly language insertion using MASM style syntax -o name output file -g produce symbolic debug information in object file (implies -O0 when another optimization option is not explicitly set) -debug [keyword] enable debug information and control output of enhanced debug information keywords: all, full, minimal, none, [no]inline-debug-info [no]variable-locations, [no]semantic-stepping, extended parallel -debug-parameters [keyword] control output of debug information for PARAMETERS keywords: all, used, none (same as -nodebug-parameters) -nodebug-parameters do not output debug information for PARAMETERS -g0 disable generation of symbolic debug information -gdwarf-2 enable generation of debug information using the DWARF2 format -[no]d-lines compile debug statements (indicated by D in column 1) -DD compile debug statements, indicated by D in column 1. This option prevents the definition of a macro named D using the command line -Dname option (use -Dname=n syntax instead) -ftrapuv trap uninitialized variables -map-opts enable option mapping tool -print-multi-lib print information about libraries being used Preprocessor ------------ -D[=] define macro -nodefines, -noD specifies that any -D macros go to the preprocessor only, and not to the compiler -U remove predefined macro -allow nofpp-comments If a Fortran end-of-line comment is seen within a #define, treat it as part of the definition. Default is allow:fpp-comments -E preprocess to stdout -EP preprocess to stdout, omitting #line directives -P preprocess to file, omitting #line directives -preprocess-only same as -P -[no]keep keep/remove preprocessed file generated by preprocessor as input to compiler stage. Not affected by -save-temps. Default is -nokeep -fpp[n], -[no]fpp run Fortran preprocessor on source files prior to compilation n=0 disable running the preprocessor, equivalent to nofpp n=1,2,3 run preprocessor -cpp[n] same as -fpp[n] -module path specify path where mod files should be placed and first location to look for mod files -I add directory to include file search path -idirafter add directory to the second include file search path (after -I) -isystem add directory to the start of the system include path -X, -nostdinc remove standard directories from include file search path -B find libraries, headers and executables in Component Control ----------------- -Qoption,, pass options to tool specified by -Qlocation,, set as the location of tool specified by -Qinstall set as root of compiler installation Language -------- -[no]altparam specify if alternate form of parameter constant declarations (without parenthesis) is recognized. Default is to recognize Same as -[no]dps -assume specify assumptions made by the optimizer and code generator keywords: none, [no]byterecl, [no]buffered_io, [no]bscc (nobscc same as -nbs), [no]cc_omp, [no]minus0, [no]dummy_aliases (same as -common-args), [no]ieee_fpe_flags, [no]old_boz, [no]old_logical_ldio, [no]old_maxminloc, [no]old_unit_star, [no]old_xor, [no]protect_constants, [no]protect_parens, [no]realloc_lhs, [no]2underscore, [no]underscore (same as -us), [no]std_mod_proc_name, [no]source_include, [no]writeable_strings -ccdefault specify default carriage control for units 6 and * keywords: default, fortran, list or none -[no]check check run-time conditions. Default is -nocheck keywords: all (same as -C), none (same as -nocheck), [no]arg_temp_created, [no]bounds (same as -CB), [no]format, [no]output_conversion, [no]pointer (same as -CA), [no]uninit (same as -CU) -common-args assume "by reference" subprogram arguments may alias one another. Same as -assume dummy_aliases -e03 issue errors for language elements that are not standard in Fortran 2003 (same as -stand f03 -warn stderrors options) -e95 issue errors for language elements that are not standard in Fortran 95 (same as -stand f95 -warn stderrors options) -e90 issue errors for language elements that are not standard in Fortran 90 (same as -stand f90 -warn stderrors options) -[no]extend-source [] specify rightmost column for fixed form sources keywords: 72 (same as -noextend-source and -72), 80 (same as -80), 132 (same as -132. Default if you specify -extend-source without a keyword.) -fixed specify source files are in fixed format. Same as -FI -nofixed indicates free format -free specify source files are in free format. Same as -FR -nofree indicates fixed format -[no]mixed-str-len-arg indicate whether hidden lengths are passed after their character argument or after all arguments. -names specify how source code identifiers and external names are interpreted. keywords: as_is, lowercase (Default. Same as -lowercase), uppercase (same as -uppercase) -[no]pad-source make compiler acknowledge blanks at the end of a line -stand [] specifies level of conformance with ANSI standard to check for. If keyword is not specified, level of conformance is f03 keywords: f90 (same as -std90), f95(same as -std95), f03(same as -std95), none (same as -nostand) -syntax-only perform syntax and semantic checking only (no object file produced) Compiler Diagnostics -------------------- -cm suppress all comment messages, same as -warn nousage -w disable all warnings -W disable warnings (n = 0) or show warnings (n = 1 DEFAULT, same as -warn general) -w90, -w95 suppress messages about use of non-standard Fortran -warn specifies the level of warning messages issued keywords: all, none (same as -nowarn) [no]alignments, [no]declarations, [no]errors, [no]general, [no]ignore_loc, [no]interfaces, [no]stderrors, [no]truncated_source, [no]uncalled, [no]unused, [no]usage -nowarn suppress all warning messages -WB turn a compile-time bounds check into a warning -Wcheck enable more strict diagnostics -Winline enable inline diagnostics -[no]traceback specify whether the compiler generates PC correlation data used to display a symbolic traceback rather than a hexadecimal traceback at runtime failure -[no]gen-interfaces[:[no]source] generate interface blocks for all routines in the file. Can be checked using -warn interfaces nosource indicates temporary source files should not be saved -error-limit specify the maximum number of error-level or fatal-level compiler errors allowed -noerror-limit set no maximum number on error-level or fatal-level error messages -diag-enable [,,...] enable the specified diagnostics or diagnostic groups -diag-disable [,,...] disable the specified diagnostics or diagnostic groups where may be individual diagnostic numbers or group names. where group names include: sc[n] - perform source code analysis: n=1 for critical errors, n=2 for all errors and n=3 for all errors and warnings sc-include - perform source code analysis on include files sc-parallel[n] - perform analysis of parallelization in source code: n=1 for critical errors, n=2 for errors, n=3 for all errors and warnings -diag-error [,,...] output the specified diagnostics or diagnostic groups as errors -diag-warning [,,...] output the specified diagnostics or diagnostic groups as warnings -diag-remark [,,...] output the the specified diagnostics or diagnostic groups as remarks -diag-dump display the currently enabled diagnostic messages to stdout or to a specified diagnostic output file. -diag-file[=] where diagnostics are emitted to. Not specifying this causes messages to be output to stderr -diag-file-append[=] where diagnostics are emitted to. When already exists, output is appended to the file -[no-]diag-id-numbers enable(DEFAULT)/disable the diagnostic specifiers to be output in numeric form -diag-error-limit specify the maximum number of errors emitted Miscellaneous ------------- -[no]logo display compiler version information. /nologo disables the output -V display compiler version information -dumpmachine display the target machine only --version display GCC style version information -[no-]sox enable/disable(DEFAULT) saving of compiler options and version in the executable -save-temps store the intermediate files in current directory and name them based on the source file. Only saves files that are generated by default -dryrun show driver tool commands but do not execute tools -v show driver tool commands and execute tools -what display detailed compiler version information -watch tells the driver to output processing information keywords: all, none (same as -nowatch), [no]source, [no]cmd (same as -v) -nowatch suppress processing information output (DEFAULT) -Tf compile file as Fortran source -multiple-processes[=] create multiple processes that can be used to compile large numbers of source files at the same time Data ---- -i{2|4|8} set default KIND of integer and logical variables to 2, 4, or 8 -integer-size specifies the default size of integer and logical variables size: 16, 32, 64 -r{8|16} set default size of real to 8 or 16 bytes -real-size specify the size of REAL and COMPLEX declarations, constants, functions, and intrinsics size: 32, 64, 128 -autodouble same as -real-size 64 or -r8 -double-size defines the size of DOUBLE PRECISION and DOUBLE COMPLEX declarations, constants, functions, and intrinsics size: 64, 128 -[no]fpconstant extends the precision of single precision constants assigned to double precision variables to double precision -[no]intconstant use Fortran 77 semantics, rather than Fortran 90/95, to determine kind of integer constants -auto make all local variables AUTOMATIC. Same as -automatic -auto-scalar make scalar local variables AUTOMATIC (DEFAULT) -save save all variables (static allocation) (same as -noautomatic, opposite of -auto) -[no]zero enable/disable(DEFAULT) implicit initialization to zero of local scalar variables of intrinsic type INTEGER, REAL, COMPLEX, or LOGICAL that are saved and not initialized -dyncom make given common blocks dynamically-allocated -Zp[n] specify alignment constraint for structures (n=1,2,4,8,16 -Zp16 DEFAULT) -[no]align analyze and reorder memory layout for variables and arrays -align specify how data items are aligned keywords: all (same as -align), none (same as -align), [no]commons, [no]dcommons, [no]records, rec1byte, rec2byte, rec4byte, rec8byte, rec16byte, [no]sequence -fminshared Compilation is for the main executable. Absolute addressing can be used and non-position independent code generated for symbols that are at least protected -fstack-security-check enable overflow security checks. -f[no-]stack-security-check disables (DEFAULT) -fstack-protector enable stack overflow security checks. -f[no-]stack-protector disables (DEFAULT) -fpic, -fPIC generate position independent code (-fno-pic/-fno-PIC is DEFAULT) -fpie, -fPIE generate position independent code that will be linked into an executable (-fno-pie/-fno-PIE is DEFAULT) -[no-]global-hoist enable(DEFAULT)/disable external globals are load safe -f[no-]keep-static-consts enable/disable(DEFAULT) emission of static const variables even when not referenced -fpack-struct pack structure members together -f[no-]math-errno set ERRNO after calling standard math library functions -no-bss-init disable placement of zero-initialized variables in BSS (use DATA) -convert specify the format of unformatted files containing numeric data keywords: big_endian, cray, ibm, little_endian, native, vaxd, vaxg -falign-functions=[2|16] align the start of functions on a 2 (DEFAULT) or 16 byte boundary -falign-functions align the start of functions to an optimal machine-dependent value. -fno-align-functions (DEFAULT) aligns on a 2-byte boundary -falign-stack= stack alignment method to use on entry to routines default - use default heuristics maintain-16-byte - do not assume any specific alignment, but maintain alignment in case the stack is already aligned assume-16-byte - assume the stack is aligned on 16-byte boundaries -fvisibility=[extern|default|protected|hidden|internal] Global symbols (data and functions) will get the visibility attribute given by default. Symbol visibility attributes explicitly set in the source code or using the symbol visibility attribute file options will override the -fvisibility setting -fvisibility-extern= Space separated symbols listed in the argument will geti visibility set to extern -fvisibility-default= Space separated symbols listed in the argument will get visibility set to default -fvisibility-protected= Space separated symbols listed in the argument will get visibility set to protected -fvisibility-hidden= Space separated symbols listed in the argument will get visibility set to hidden -fvisibility-internal= Space separated symbols listed in the argument will get visibility set to internal -fvisibility-inlines-hidden mark inline member functions as hidden Compatibility ------------- -fpscomp specify the level of compatibility to adhere to with Fortran PowerStation keywords: all, none (same as -nofpscomp), [no]filesfromcmd, [no]general, [no]ioformat, [no]ldio_spacing, [no]libs, [no]logicals -nofpscomp no specific level of compatibility with Fortran PowerStation -1, -onetrip execute any DO loop at least once -f66, -66 allow extensions that enhance FORTRAN-66 compatibility -f77rtl specify that the Fortran 77 specific run-time support should be used -nof77rtl disables -vms enable VMS I/O statement extensions -gcc-name= name and location of gcc if not where expected -gxx-name= name and location of g++ if not where expected -gcc-version= specify the of gcc compatibility. Default value matches gcc version installed. Major/Minor versions listed but patch levels (i.e. 345) are permissible 320 - gcc 3.2.x compatibility 330 - gcc 3.3.x compatibility 340 - gcc 3.4.x compatibility 400 - gcc 4.0.x compatibility 410 - gcc 4.1.x compatibility 420 - gcc 4.2.x compatibility Linking/Linker -------------- -L instruct linker to search for libraries -l instruct the linker to link in the -l library -shared-intel link Intel provided libraries dynamically -static-intel link Intel provided libraries statically -shared-libgcc link libgcc dynamically -static-libgcc link libgcc statically -dynamic-linker select dynamic linker other than the default -no-cxxlib do not link in C++ runtime libraries -cxxlib[=dir] link using C++ run-time libraries provided with gcc dir is an optional top-level location for the gcc binaries and libraries -nodefaultlibs do not use standard libraries when linking -nostartfiles do not use standard startup files when linking -nostdlib do not use standard libraries and startup files when linking -nofor-main do not link against Fortran main object. Used when linking Fortran objects with C main program -static prevents linking with shared libraries -shared produce a shared object -Bstatic specify following libraries are linked statically -Bdynamic specify following libraries are linked dynamically -cxxlib- tell the compiler which C++ run-time libraries to use nostd - do not link in standard C++ library -T direct linker to read link commands from -Xlinker pass directly to the linker for processing -Wa,[,,...] pass options o1, o2, etc. to the assembler -Wl,[,,...] pass options o1, o2, etc. to the linker for processing -Wp,[,,...] pass options o1, o2, etc. to the preprocessor -threads specify that multi-threaded libraries should be linked against -nothreads disables multi-threaded libraries Deprecated Options ------------------ -Ob use -inline-level= -cxxlib-gcc[=dir] use -cxxlib[=dir] -i-dynamic use -shared-intel -i-static use -static-intel -inline-debug-info use -debug inline-debug-info -mp use -fp-model -use-asm no replacement -A- use -U -prefetch use -opt-prefetch -prof-genx use -prof-gen=srcpos -fwritable-strings use -assume writeable-strings -openmp-lib=legacy use -openmp-lib=compat -xB use -xSSE2 (i32 only) -xK use -xSSE (i32 only) -axK No replacement -xW use -msse2 -axW use -msse2 -xN use -xSSE2 -axN use -axSSE2 -xP use -xSSE3 -axP use -axSSE3 -xT use -xSSSE3 -axT use -axSSSE3 -xS use -xSSE4.1 -axS use -axSSE4.1 -xO use -msse3 -func-groups use -prof-func-groups -diag-enable sv use -diag-enable sc -diag-enable sv-include use -diag-enable sc-include -diag-disable sv use -diag-disable sc -diag-sv use -diag-enable sc -diag-sv-error use -diag-disable warning -diag-sv-include use -diag-enable sc-include -diag-sv-level No replacement -diag-sv-sup use -diag-disable [,,...] -help [category] print full or category help message Valid categories include advanced - Advanced Optimizations codegen - Code Generation compatibility - Compatibility component - Component Control data - Data deprecated - Deprecated Options diagnostics - Compiler Diagnostics float - Floating Point help - Help inline - Inlining ipo - Interprocedural Optimization (IPO) language - Language link - Linking/Linker misc - Miscellaneous opt - Optimization output - Output pgo - Profile Guided Optimization (PGO) preproc - Preprocessor reports - Optimization Reports openmp - OpenMP and Parallel Processing Copyright (C) 1985-2009, Intel Corporation. All rights reserved. * Other brands and names are the property of their respective owners. Trying FC compiler flag -O3 sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -O3 /tmp/petsc-3SW45q/config.setCompilers/conftest.F Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -O3 /tmp/petsc-3SW45q/config.setCompilers/conftest.F sh: Successful compile: Source: program main end Added FC compiler flag -O3 Popping language FC ================================================================================ TEST configureDebugging from PETSc.utilities.debugging(/d/dev01/qlu/Lib/petsc-3.4.2/config/PETSc/utilities/debugging.py:25) TESTING: configureDebugging from PETSc.utilities.debugging(config/PETSc/utilities/debugging.py:25) Defined "USE_ERRORCHECKING" to "1" =============================================================================== WARNING! Compiling PETSc with no debugging, this should only be done for timing and production runs. All development should be done when configured using --with-debugging=1 =============================================================================== ================================================================================ TEST configureArchitecture from PETSc.utilities.arch(/d/dev01/qlu/Lib/petsc-3.4.2/config/PETSc/utilities/arch.py:32) TESTING: configureArchitecture from PETSc.utilities.arch(config/PETSc/utilities/arch.py:32) Checks PETSC_ARCH and sets if not set Defined "ARCH" to ""arch-linux2-c-opt"" ================================================================================ TEST checkSharedDynamicPicOptions from PETSc.utilities.sharedLibraries(/d/dev01/qlu/Lib/petsc-3.4.2/config/PETSc/utilities/sharedLibraries.py:42) TESTING: checkSharedDynamicPicOptions from PETSc.utilities.sharedLibraries(config/PETSc/utilities/sharedLibraries.py:42) ================================================================================ TEST configureSharedLibraries from PETSc.utilities.sharedLibraries(/d/dev01/qlu/Lib/petsc-3.4.2/config/PETSc/utilities/sharedLibraries.py:63) TESTING: configureSharedLibraries from PETSc.utilities.sharedLibraries(config/PETSc/utilities/sharedLibraries.py:63) Checks whether shared libraries should be used, for which you must - Specify --with-shared-libraries - Have found a working shared linker Defines PETSC_USE_SHARED_LIBRARIES if they are used Defined make rule "shared_arch" with dependencies "" and code [] Defined make macro "BUILDSHAREDLIB" to "no" Defined "HAVE_SHARED_LIBRARIES" to "1" Shared libraries - disabled ================================================================================ TEST configureDynamicLibraries from PETSc.utilities.sharedLibraries(/d/dev01/qlu/Lib/petsc-3.4.2/config/PETSc/utilities/sharedLibraries.py:102) TESTING: configureDynamicLibraries from PETSc.utilities.sharedLibraries(config/PETSc/utilities/sharedLibraries.py:102) Checks whether dynamic loading should be used, for which you must - Specify --with-dynamic-loading - Have found a working dynamic linker (with dlfcn.h and libdl) Defines PETSC_USE_DYNAMIC_LIBRARIES if they are used Defined "HAVE_DYNAMIC_LIBRARIES" to "1" Dynamic loading - disabled ================================================================================ TEST configureBmakeDir from PETSc.utilities.bmakeDir(/d/dev01/qlu/Lib/petsc-3.4.2/config/PETSc/utilities/bmakeDir.py:26) TESTING: configureBmakeDir from PETSc.utilities.bmakeDir(config/PETSc/utilities/bmakeDir.py:26) Makes $PETSC_ARCH and subdirectories if it does not exist Changed persistence directory to arch-linux2-c-opt/conf sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc --help Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc --help sh: Intel(R) C++ Compiler Help ========================== usage: icc [options] file1 [file2 ...] icpc [options] file1 [file2 ...] where options represents zero or more compiler options fileN is a C/C++ source (.C .c .cc .cpp .cxx .c++ .i .ii), assembly (.s .S), object (.o), static library (.a), or other linkable file The icpc command uses the same compiler options as the icc command. Invoking the compiler using icpc compiles .c and .i files as C++. Invoking the compiler using icc compiles .c and .i files as C. Using icpc always links in C++ libraries. Using icc only links in C++ libraries if C++ source is provided on the command line. Commonly used options may be placed in the icc .cfg file. Some options listed are only available on a specific system i32 indicates the feature is available on systems based on IA-32 architecture i64em indicates the feature is available on systems using Intel(R) 64 architecture Compiler Option List -------------------- Optimization ------------ -O1 optimize for maximum speed, but disable some optimizations which increase code size for a small speed benefit -O2 optimize for maximum speed (DEFAULT) -O3 optimize for maximum speed and enable more aggressive optimizations that may not improve performance on some programs -O same as -O2 -Os enable speed optimizations, but disable some optimizations which increase code size for small speed benefit -O0 disable optimizations -fast enable -xHOST -O3 -ipo -no-prec-div -static options set by -fast cannot be overridden with the exception of -xHOST, list options separately to change behavior -fno-alias assume no aliasing in program -fno-fnalias assume no aliasing within functions, but assume aliasing across calls -f[no-]builtin disable inline expansion of intrinsic functions -fno-builtin- disable the intrinsic -ffunction-sections separate functions for the linker (COMDAT) -fdata-sections same as -ffunction-sections -nolib-inline disable inline expansion of intrinsic functions Code Generation --------------- -x[,,...] generate specialized code to run exclusively on processors indicated by as described below Host generate instructions for the highest instruction set and processor available on the compilation host machine SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSE3_ATOM Can generate MOVBE instructions for Intel processors and can optimize for the Intel(R) Atom(TM) processor. SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for SSE4 Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -ax[,,...] generate code specialized for processors specified by while also generating generic IA-32 instructions. includes one or more of the following: SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -mcpu= same as -mtune= -mtune= optimize for a specific pentium3 - optimize for Pentium(R) III processors pentium4 - optimize for Pentium(R) 4 processor (DEFAULT) -march= generate code exclusively for a given pentium3 - streaming SIMD extensions pentium4 - Pentium(R) 4 New Instructions -mia32 generates code which will run on any Intel Pentium or later processor. Disables any default extended instruction settings, and any previously set extended instruction settings. -msse generate code for Intel Pentium III and compatible Intel processors -msse2 generate code for Intel Pentium 4 and compatible Intel processors -msse3 generate code for Intel(R) Core(TM) Duo processors, Intel(R) Core(TM) Solo processors, Intel Pentium 4 and compatible Intel processors with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support -mssse3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) -msse4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions -minstruction= Refine instruction set output for the selected target processor [no]movbe - Do/do not generate MOVBE instructions with SSE3_ATOM (requires -xSSE3_ATOM) -f[no-]omit-frame-pointer enable(DEFAULT)/disable use of EBP as general purpose register. -fno-omit-frame-pointer replaces -fp -f[no-]exceptions enable/disable(DEFAULT) C++ exception handling table generation -fnon-call-exceptions enable/disable(DEFAULT) code that allows exceptions from trapping instructions to be caught Interprocedural Optimization (IPO) ---------------------------------- -[no-]ip enable(DEFAULT)/disable single-file IP optimization within files -ipo[n] enable multi-file IP optimization between files -ipo-c generate a multi-file object file (ipo_out.o) -ipo-S generate a multi-file assembly file (ipo_out.S) -ip-no-inlining disable full and partial inlining -ip-no-pinlining disable partial inlining -ipo-separate create one object file for every source file (overrides -ipo[n]) -ipo-jobs specify the number of jobs to be executed simultaneously during the IPO link phase Advanced Optimizations ---------------------- -unroll[n] set maximum number of times to unroll loops. Omit n to use default heuristics. Use n=0 to disable the loop unroller -[no-]unroll-aggressive enables more aggressive unrolling heuristics -funroll-loops unroll loops based on default heuristics -[no-]scalar-rep enable(DEFAULT)/disable scalar replacement (requires -O3) -[no-]ansi-alias enable/disable(DEFAULT) use of ANSI aliasing rules optimizations; user asserts that the program adheres to these rules -[no-]complex-limited-range enable/disable(DEFAULT) the use of the basic algebraic expansions of some complex arithmetic operations. This can allow for some performance improvement in programs which use a lot of complex arithmetic at the loss of some exponent range. -[no-]alias-const enable/disable(DEFAULT) a heuristic stating that if two arguments to a function have pointer type, a pointer to const does not alias a pointer to non-const. Also known as the input/output buffer rule, it assumes that input and output buffer arguments do not overlap. -fargument-alias arguments may alias each other and may alias global storage -fargument-noalias arguments do not alias each other but may alias global storage -fargument-noalias-global arguments do not alias each other and do not alias global storage -ftls-model= change thread-local storage model, where can be the following: global-dynamic, local-dynamic, initial-exec or local-exec -[no-]opt-multi-version-aggressive enables more aggressive multi-versioning to check for pointer aliasing and scalar replacement -opt-ra-region-strategy[=] select the method that the register allocator uses to partition each routine into regions routine - one region per routine block - one region per block trace - one region per trace loop - one region per loop default - compiler selects best option -[no-]vec enables(DEFAULT)/disables vectorization -[no-]vec-guard-write enables cache/bandwidth optimization for stores under conditionals within vector loops -vec-threshold[n] sets a threshold for the vectorization of loops based on the probability of profitable execution of the vectorized loop in parallel -opt-malloc-options={0|1|2|3|4} specify malloc configuration parameters. Specifying a non-zero value will cause alternate configuration parameters to be set for how malloc allocates and frees memory -opt-calloc enable/disable(DEFAULT) calls to fast calloc function -opt-jump-tables= control the generation of jump tables default - let the compiler decide when a jump table, a series of if-then-else constructs or a combination is generated large - generate jump tables up to a certain pre-defined size (64K entries) - generate jump tables up to in size use -no-opt-jump-tables to lower switch statements as chains of if-then-else constructs -fno-jump-tables do not generate jump tables for switches and if-then-else statements -opt-block-factor= specify blocking factor for loop blocking -ffreestanding compile in a freestanding environment where the standard library may not be present -opt-streaming-stores specifies whether streaming stores are generated always - enables generation of streaming stores under the assumption that the application is memory bound auto - compiler decides when streaming stores are used (DEFAULT) never - disables generation of streaming stores -ipp[=] link some or all of the Intel(R) Integrated Performance Primitives (Intel(R) IPP) libraries and bring in the associated headers common - link using the main libraries set. This is the default value when -ipp is specified crypto - link using the main libraries set and the crypto library nonpic - link using the version of the libraries that do not have position independent code nonpic_crypto - link using the crypto library and the version of the libraries that do not have position independent code -mkl[=] link to the Intel(R) Math Kernel Library (Intel(R) MKL) and bring in the associated headers parallel - link using the threaded Intel(R) MKL libraries. This is the default when -mkl is specified sequential - link using the non-threaded Intel(R) MKL libraries cluster - link using the Intel(R) MKL Cluster libraries plus the sequential Intel(R) MKL libraries -tbb link to the Intel(R) Threading Building Blocks (Intel(R) TBB) libraries and bring in the associated headers -[no-]opt-subscript-in-range assumes no overflows in the intermediate computation of the subscripts -[no-]use-intel-optimized-headers take advantage of the optimized header files Profile Guided Optimization (PGO) --------------------------------- -prof-dir specify directory for profiling output files (*.dyn and *.dpi) -prof-src-root specify project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -prof-src-root-cwd specify the current directory as the project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -[no-]prof-src-dir specify whether directory names of sources should be considered when looking up profile records within the .dpi file -prof-file specify file name for profiling summary file -[no-]prof-data-order enable/disable(DEFAULT) static data ordering with profiling -[no-]prof-func-order enable/disable(DEFAULT) function ordering with profiling -[no-]prof-func-groups enable(DEFAULT with PGO)/disable function grouping -prof-gen[=keyword] instrument program for profiling. Optional keyword may be srcpos or globdata -no-prof-gen disable profiling instrumentation -prof-use[=] enable use of profiling information during optimization weighted - invokes profmerge with -weighted option to scale data based on run durations [no]merge - enable(default)/disable the invocation of the profmerge tool -no-prof-use disable use of profiling information during optimization -opt-prefetch[=n] enable levels of prefetch insertion, where 0 disables. n may be 0 through 4 inclusive. Default is 2. -no-opt-prefetch disable(DEFAULT) prefetch insertion. Equivalent to -opt-prefetch=0 -p compile and link for function profiling with UNIX gprof tool On IA32 and Intel(r)64, -pg is also valid -f[no-]instrument-functions determine whether function entry and exit points are instrumented -prof-hotness-threshold= set the hotness threshold for function grouping and function ordering val indicates percentage of functions to be placed in hot region. This option requires -prof-use and -prof-func-groups or -prof-func-order Optimization Reports -------------------- -vec-report[n] control amount of vectorizer diagnostic information n=0 no diagnostic information n=1 indicate vectorized loops (DEFAULT) n=2 indicate vectorized/non-vectorized loops n=3 indicate vectorized/non-vectorized loops and prohibiting data dependence information n=4 indicate non-vectorized loops n=5 indicate non-vectorized loops and prohibiting data dependence information -opt-report [n] generate an optimization report to stderr 0 disable optimization report output 1 minimum report output 2 medium output (DEFAULT when enabled) 3 maximum report output -opt-report-file= specify the filename for the generated report -opt-report-phase= specify the phase that reports are generated against -opt-report-routine= reports on routines containing the given name -opt-report-help display the optimization phases available for reporting -tcheck [mode] enable analysis of threaded applications (requires Intel(R) Thread Checker; cannot be used with compiler alone) tci - instruments a program to perform a thread-count-independent analysis tcd - instruments a program to perform a thread-count-dependent analysis (DEFAULT when mode is not used) api - instruments a program at the api-imports level -tprofile generate instrumentation to analyze multi-threading performance (requires Intel(R) Thread Profiler; cannot be used with compiler alone) -tcollect[=] inserts instrumentation probes calling the Intel(R) Trace Collector API. The library -l is linked in the default being -lVT (requires Intel(R) Trace Collector) -tcollect-filter file Enable or disable the instrumentation of specified functions. (requires Intel(R) Trace Collector) OpenMP* and Parallel Processing ------------------------------- -openmp enable the compiler to generate multi-threaded code based on the OpenMP* directives -openmp-profile enable analysis of OpenMP application when the Intel(R) Thread Profiler is installed -openmp-stubs enables the user to compile OpenMP programs in sequential mode. The OpenMP directives are ignored and a stub OpenMP library is linked (sequential) -openmp-report{0|1|2} control the OpenMP parallelizer diagnostic level -openmp-lib choose which OpenMP library version to link with compat - use the GNU compatible OpenMP run-time libraries (DEFAULT) -openmp-link choose whether to link with the static or dynamic OpenMP libraries. Default is dynamic. -openmp-task choose which OpenMP tasking model to support omp - support OpenMP 3.0 tasking (DEFAULT) intel - support Intel taskqueuing -openmp-threadprivate choose which threadprivate implementation to use compat - use the GNU compatible thread local storage legacy - use the Intel compatible implementation (DEFAULT) -parallel enable the auto-parallelizer to generate multi-threaded code for loops that can be safely executed in parallel -par-report{0|1|2|3} control the auto-parallelizer diagnostic level -par-threshold[n] set threshold for the auto-parallelization of loops where n is an integer from 0 to 100 -[no-]par-runtime-control enable compiler to generate runtime control code for effective automatic parallelization -par-schedule-static[=n] Specifies a scheduling algorithm for DO loop iteration. Divides iterations into contiguous pieces. Size n if specified, equal sized pieces if not. -par-schedule-static-balanced[=n] Divides iterations into even-sized chunks. Size n if specified, equal sized pieces if not. -par-schedule-static-steal[=n] Divides iterations into even-sized chunks, but allows threads to steal parts of chunks from neighboring threads -par-schedule-dynamic[=n] Specifies a scheduling algorithm for DO loop iteration. Assigns iterations to threads in chunks dynamically. Chunk size is n iterations if specified, otherwise 1. -par-schedule-guided[=n] Specifies a scheduling algorithm for DO loop iteration. Indicates a minimum number of iterations. If specified, n is the minimum number, otherwise 1. -par-schedule-guided-analytical[=n] Divides iterations by using exponential distribution or dynamic distributions. -par-schedule-runtime Specifies a scheduling algorithm for DO loop iteration. Defers the scheduling decision until runtime. -par-schedule-auto Lets the compiler or run-time system determine the scheduling algorithm. -par-affinity=[,...][,][,] tune application performance by setting different thread affinity -par-num-threads= tune application performance by setting different number of threads Floating Point -------------- -fp-model enable floating point model variation [no-]except - enable/disable floating point semantics fast[=1|2] - enables more aggressive floating point optimizations precise - allows value-safe optimizations source - enables intermediates in source precision strict - enables -fp-model precise -fp-model except, disables contractions and enables pragma stdc fenv_access double - rounds intermediates in 53-bit (double) precision extended - rounds intermediates in 64-bit (extended) precision -fp-speculation= enable floating point speculations with the following conditions: fast - speculate floating point operations (DEFAULT) safe - speculate only when safe strict - same as off off - disables speculation of floating-point operations -pc32 set internal FPU precision to 24 bit significand -pc64 set internal FPU precision to 53 bit significand (DEFAULT) -pc80 set internal FPU precision to 64 bit significand -mp1 improve floating-point precision (speed impact less than -mp) -mieee-fp same as -mp, can be disabled with -mno-ieee-fp -[no-]prec-sqrt determine if certain square root optimizations are enabled -[no-]prec-div improve precision of FP divides (some speed impact) -[no-]fast-transcendentals generate a faster version of the transcendental functions -[no-]fp-port round fp results at assignments and casts (some speed impact) -fp-stack-check enable fp stack checking after every function/procedure call -rcd rounding mode to enable fast float-to-int conversions -[no-]ftz enable/disable flush denormal results to zero Inlining -------- -inline-level= control inline expansion: n=0 disable inlining n=1 inline functions declared with __inline, and perform C++ inlining n=2 inline any function, at the compiler's discretion -f[no-]inline inline functions declared with __inline, and perform C++ inlining -f[no-]inline-functions inline any function at the compiler's discretion -finline-limit= set maximum number of statements a function can have and still be considered for inlining -inline-min-size= set size limit for inlining small routines -no-inline-min-size no size limit for inlining small routines -inline-max-size= set size limit for inlining large routines -no-inline-max-size no size limit for inlining large routines -inline-max-total-size= maximum increase in size for inline function expansion -no-inline-max-total-size no size limit for inline function expansion -inline-max-per-routine= maximum number of inline instances in any function -no-inline-max-per-routine no maximum number of inline instances in any function -inline-max-per-compile= maximum number of inline instances in the current compilation -no-inline-max-per-compile no maximum number of inline instances in the current compilation -inline-factor= set inlining upper limits by n percentage -no-inline-factor do not set set inlining upper limits -inline-forceinline treat inline routines as forceinline -inline-calloc directs the compiler to inline calloc() calls as malloc()/memset() Output, Debug, PCH ------------------ -c compile to object (.o) only, do not link -S compile to assembly (.s) only, do not link -fsource-asm produce assembly file with optional source annotations (requires -S) -f[no-]verbose-asm produce assembly file with compiler comments (DEFAULT) (requires -S) -fcode-asm produce assembly file with optional code annotations (requires -S) -use-msasm support Microsoft* style assembly language insertion using MASM style syntax -o name output file -g produce symbolic debug information in object file (implies -O0 when another optimization option is not explicitly set) -debug [keyword] enable debug information and control output of enhanced debug information keywords: all, full, minimal, none, [no]inline-debug-info [no]variable-locations, [no]semantic-stepping, extended parallel [no]expr-source-pos -g0 disable generation of symbolic debug information -gdwarf-2 enable generation of debug information using the DWARF2 format -ftrapuv trap uninitialized variables -map-opts enable option mapping tool -print-multi-lib print information about libraries being used -pch-create create precompiled header file -pch-use use precompiled header file -pch enable automatic precompiled header file creation/usage -pch-dir name precompiled header directory Preprocessor ------------ -A[] create an assertion having value -C do not strip comments -D[=] define macro -U remove predefined macro -E preprocess to stdout -EP preprocess to stdout, omitting #line directives -P preprocess to file, omitting #line directives -I add directory to include file search path -idirafter add directory to the second include file search path (after -I) -isystem add directory to the start of the system include path -X, -nostdinc remove standard directories from include file search path -nostdinc++ remove standard C++ directories from include file search path -iprefix use with -iwithprefix as a prefix -iwithprefix append to the prefix passed in by -iprefix and put it on the include search path at the end of the include directories -iwithprefixbefore similar to -iwithprefix except the include directory is placed in the same place as -I command line include directories -iquote add directory to the front of the include file search path for files included with quotes, but not brackets -imacros treat as an #include file, but throw away all preprocessing while macros defined remain defined -H print include file order -B find libraries, headers and executables in -M generate makefile dependency information -MM similar to -M, but do not include system header files -MG similar to -M, but treat missing header files as generated files -MD preprocess and compile, generating output file containing dependency information ending with extension .d -MMD similar to -MD, but do not include system header files -MF generate makefile dependency information in file (must specify -M or -MM) -MP add a phony target for each dependency -MT change the default target rule for dependency generation -MQ same as -MT, but quotes special Make characters -dM output macro definitions in effect after preprocessing (use with -E) -dD same as -dM, but output #define directives in preprocessed source -dN same as -dD, but #define directives contain only macro names -gcc Predefine the "__GNUC__", "__GNUC_MINOR__", and "__GNUC_PATCHLEVEL__" macros (DEFAULT) -no-gcc Do not predefine GNUC macros listed in -gcc mode. Warning: can prevent correct system header compilation, see -gcc-sys -gcc-sys same as -no-gcc, except that the GNU macros are defined only while preprocessing the system include headers -no-icc do not predefine the "__ICC" and "__INTEL_COMPILER" macros. Warning: can prevent correct Intel header compilation -pragma-optimization-level=[Intel|GCC] process #pragma optimize using Intel (DEFAULT) or GCC syntax Component Control ----------------- -Qoption,, pass options to tool specified by -Qlocation,, set as the location of tool specified by -Qinstall set as root of compiler installation Language -------- -std= enable language support for , as described below c99 enable C99 support for C programs c++0x enable preliminary support for some C++0x features -x all source files found subsequent to -x will be recognized as one of the following types: c - C source file c++ - C++ source file c-header - C header file cpp-output - C pre-processed file c++-cpp-output - C++ pre-processed file assembler - assembly file assembler-with-cpp - assembly file that needs to be preprocessed none - revert to original file extension -ansi equivalent to GNU -ansi -strict-ansi strict ANSI conformance dialect -Zp[n] specify alignment constraint for structures where n=1,2,4,8,16. 16 is the default -fsyntax-only perform syntax and semantic checking only (no object file produced) -fpermissive allows extensions for some non-conformant code -funsigned-char change default char type to unsigned -fshort-enums allocate as many bytes as needed for enumerated types -f[no-]unsigned-bitfields change default bitfield type to unsigned -fno-rtti disable RTTI support -fno-implicit-templates never emit code for non-inline templates which are instantiated implicitly; only emit code for explicit instantiations -fno-implicit-inline-templates do not emit code for implicit instantiations of inline templates -ftemplate-depth-[n] control the depth in which recursive templates are expanded -[no]align analyze and reorder memory layout for variables and arrays -[no-]restrict enable/disable the 'restrict' keyword for disambiguating pointers -[no-]early-template-check enable/disable (DEFAULT) semantic checking of function template prototypes (before instantiation). Requires -gcc-version=340 or later -[no-]check-uninit check for uninitialized variables -export enable the export template feature -export-dir add directory to export template search path -help-pragma output supported pragmas and their usage syntax Compiler Diagnostics -------------------- -w disable all warnings -w control diagnostics n = 0 display errors (same as -w) n = 1 display warnings and errors (DEFAULT) n = 2 display remarks, warnings and errors -Wbrief print brief one-line diagnostics -Werror force warnings to be reported as errors -Werror-all force warnings and remarks to be reported as errors -Wall enable all warnings -Wcheck enable more strict diagnostics -Weffc++ enable effective C++ diagnostic warnings -wo[,,...] issue diagnostics L1 through LN only once -W[no-]fatal-errors ends compilation after the first error encountered -W[no-]format enable argument checking for calls to printf, scanf, etc -W[no-]format-security warn for uses of format strings and specifiers in printf, scanf, etc that may introduce security problems -W[no-]missing-declarations warn for global functions and variables without prior declaration -W[no-]missing-prototypes warn for missing prototypes -W[no-]strict-aliasing warn for code that might violate the optimizer's strict aliasing rules. Warnings are issued only when using -fstrict-aliasing or -ansi-alias. -W[no-]strict-prototypes warn for functions declared or defined without specified argument types -W[no-]pointer-arith warn for questionable pointer arithmetic -W[no-]uninitialized warn if a variable is used before being initialized -Winline enable inline diagnostics -W[no-]deprecated print warnings related to deprecated features -W[no-]abi warn if generated code is not C++ ABI compliant -Wcontext-limit= set maximum number of template instantiation contexts shown in diagnostic -Wcast-qual warn if cast is used to override pointer type qualifier -W[no-]unused-function warn if declared function is not used -W[no-]unknown-pragmas warn if an unknown #pragma directive is used (DEFAULT) -W[no-]main warn if return type of main is not expected -W[no-]comment[s] warn when comment -W[no-]conversion warn for implicit conversions that may alter a value -W[no-]return-type warn when a function uses the default int return type and warn when a return statement is used in a void function -W[no-]extra-tokens warn about extra tokens after prepreprocessor directives -W[no-]pragma-once warn about the use of #pragma once -W[no-]shadow warn when a variable declaration hides a previous declaration -Woverloaded-virtual warn when a function declaration hides virtual functions from a base class -W[no-]trigraphs warn about the recognition and conversion of trigraphs -W[no-]multichar warn if a multicharacter constant ('ABC') is used -W[no-]overflow warn for operations that could result in integer overflow -Wwrite-strings Issues a diagnostic message if const char * is converted to (non-const) char *. -Wp64 print diagnostics for 64-bit porting -W[no-]shorten-64-to-32 warn for values implicitly converted from a 64-bit to a 32-bit type. Similar to -Wp64 -[no]traceback specify whether the compiler generates data to allow for source file traceback information at runtime (only to be used when linking with Fortran programs) -noerror-limit set no maximum number on error-level or fatal-level error messages -diag-enable [,,...] enable the specified diagnostics or diagnostic groups -diag-disable [,,...] disable the specified diagnostics or diagnostic groups where may be individual diagnostic numbers or group names. where group names include: sc[n] - perform source code analysis: n=1 for critical errors, n=2 for all errors and n=3 for all errors and warnings sc-include - perform source code analysis on include files sc-parallel[n] - perform analysis of parallelization in source code: n=1 for critical errors, n=2 for errors, n=3 for all errors and warnings thread - enable diagnostics to aid in thread-enabling source port-win - enable diagnostics for GNU extensions that may cause errors when porting to Windows -diag-error [,,...] output the specified diagnostics or diagnostic groups as errors -diag-warning [,,...] output the specified diagnostics or diagnostic groups as warnings -diag-remark [,,...] output the the specified diagnostics or diagnostic groups as remarks -diag-dump display the currently enabled diagnostic messages to stdout or to a specified diagnostic output file. -diag-file[=] where diagnostics are emitted to. Not specifying this causes messages to be output to stderr -diag-file-append[=] where diagnostics are emitted to. When already exists, output is appended to the file -[no-]diag-id-numbers enable(DEFAULT)/disable the diagnostic specifiers to be output in numeric form -diag-error-limit specify the maximum number of errors emitted -diag-once [,,...] issue diagnostics v1 through vN only once Miscellaneous ------------- -V display compiler version information -dumpversion display the compiler version number only -dumpmachine display the target machine only --version display GCC style version information -[no-]sox enable/disable(DEFAULT) saving of compiler options and version in the executable -save-temps store the intermediate files in current directory and name them based on the source file. Only saves files that are generated by default -dryrun show driver tool commands but do not execute tools -v show driver tool commands and execute tools -[no-]multibyte-chars provide support for multi-byte characters -multiple-processes[=] create multiple processes that can be used to compile large numbers of source files at the same time Data ---- -Zp[n] specify alignment constraint for structures (n=1,2,4,8,16 -Zp16 DEFAULT) -[no]align analyze and reorder memory layout for variables and arrays -fminshared Compilation is for the main executable. Absolute addressing can be used and non-position independent code generated for symbols that are at least protected -fcommon Enables the compiler to treat common variables as if they were defined. That in turn allows the use of gprel addressing of common data variables. -fno-common disables -freg-struct-return return struct and union values in registers when possible -fstack-security-check enable overflow security checks. -f[no-]stack-security-check disables (DEFAULT) -fstack-protector enable stack overflow security checks. -f[no-]stack-protector disables (DEFAULT) -fpic, -fPIC generate position independent code (-fno-pic/-fno-PIC is DEFAULT) -fpie, -fPIE generate position independent code that will be linked into an executable (-fno-pie/-fno-PIE is DEFAULT) -[no-]global-hoist enable(DEFAULT)/disable external globals are load safe -f[no-]keep-static-consts enable/disable(DEFAULT) emission of static const variables even when not referenced -fpack-struct pack structure members together -f[no-]math-errno set ERRNO after calling standard math library functions -no-bss-init disable placement of zero-initialized variables in BSS (use DATA) -falign-functions=[2|16] align the start of functions on a 2 (DEFAULT) or 16 byte boundary -falign-functions align the start of functions to an optimal machine-dependent value. -fno-align-functions (DEFAULT) aligns on a 2-byte boundary -falign-stack= stack alignment method to use on entry to routines default - use default heuristics maintain-16-byte - do not assume any specific alignment, but maintain alignment in case the stack is already aligned assume-16-byte - assume the stack is aligned on 16-byte boundaries -fvisibility=[extern|default|protected|hidden|internal] Global symbols (data and functions) will get the visibility attribute given by default. Symbol visibility attributes explicitly set in the source code or using the symbol visibility attribute file options will override the -fvisibility setting -fvisibility-extern= Space separated symbols listed in the argument will geti visibility set to extern -fvisibility-default= Space separated symbols listed in the argument will get visibility set to default -fvisibility-protected= Space separated symbols listed in the argument will get visibility set to protected -fvisibility-hidden= Space separated symbols listed in the argument will get visibility set to hidden -fvisibility-internal= Space separated symbols listed in the argument will get visibility set to internal -fvisibility-inlines-hidden mark inline member functions as hidden Compatibility ------------- -gcc-name= name and location of gcc if not where expected -gxx-name= name and location of g++ if not where expected -gcc-version= specify the of gcc compatibility. Default value matches gcc version installed. Major/Minor versions listed but patch levels (i.e. 345) are permissible 320 - gcc 3.2.x compatibility 330 - gcc 3.3.x compatibility 340 - gcc 3.4.x compatibility 400 - gcc 4.0.x compatibility 410 - gcc 4.1.x compatibility 420 - gcc 4.2.x compatibility -fabi-version= directs the compiler to select a specific ABI implementation 0 - most recent ABI implementation 1 - g++ 3.2 compatible ABI implementation 2 - most conformant ABI implementation Linking/Linker -------------- -L instruct linker to search for libraries -l instruct the linker to link in the -l library -shared-intel link Intel provided libraries dynamically -static-intel link Intel provided libraries statically -shared-libgcc link libgcc dynamically -static-libgcc link libgcc statically -dynamic-linker select dynamic linker other than the default -no-cxxlib do not link in C++ runtime libraries -cxxlib[=dir] link using C++ run-time libraries provided with gcc dir is an optional top-level location for the gcc binaries and libraries -nodefaultlibs do not use standard libraries when linking -nostartfiles do not use standard startup files when linking -nostdlib do not use standard libraries and startup files when linking -static prevents linking with shared libraries -shared produce a shared object -Bstatic specify following libraries are linked statically -Bdynamic specify following libraries are linked dynamically -pthread use POSIX* thread library for multithreading support -cxxlib- tell the compiler which C++ run-time libraries to use nostd - do not link in standard C++ library -u pretend the is undefined -T direct linker to read link commands from -Xlinker pass directly to the linker for processing -Wa,[,,...] pass options o1, o2, etc. to the assembler -Wl,[,,...] pass options o1, o2, etc. to the linker for processing -Wp,[,,...] pass options o1, o2, etc. to the preprocessor Deprecated Options ------------------ -Ob use -inline-level= -cxxlib-gcc[=dir] use -cxxlib[=dir] -i-dynamic use -shared-intel -i-static use -static-intel -inline-debug-info use -debug inline-debug-info -mp use -fp-model -use-asm no replacement -A- use -U -prefetch use -opt-prefetch -prof-genx use -prof-gen=srcpos -openmp-lib=legacy use -openmp-lib=compat -xB use -xSSE2 (i32 only) -xK use -xSSE (i32 only) -axK No replacement -xW use -msse2 -axW use -msse2 -xN use -xSSE2 -axN use -axSSE2 -xP use -xSSE3 -axP use -axSSE3 -xT use -xSSSE3 -axT use -axSSSE3 -xS use -xSSE4.1 -axS use -axSSE4.1 -xO use -msse3 -func-groups use -prof-func-groups -diag-enable sv use -diag-enable sc -diag-enable sv-include use -diag-enable sc-include -diag-disable sv use -diag-disable sc -diag-sv use -diag-enable sc -diag-sv-error use -diag-disable warning -diag-sv-include use -diag-enable sc-include -diag-sv-level No replacement -diag-sv-sup use -diag-disable [,,...] -alias-args use -fargument-alias -c99 use -std=c99 -create-pch use -pch-create -fwritable-strings no replacement -Kc++ use -x c++ -no-alias-args use -fargument-noalias -use-pch use -pch-use -wn use -diag-error-limit -wd use -diag-disable -we use -diag-error -ww use -diag-warning -wr use -diag-remark -wo use -diag-once -help [category] print full or category help message Valid categories include advanced - Advanced Optimizations codegen - Code Generation compatibility - Compatibility component - Component Control data - Data deprecated - Deprecated Options diagnostics - Compiler Diagnostics float - Floating Point help - Help inline - Inlining ipo - Interprocedural Optimization (IPO) language - Language link - Linking/Linker misc - Miscellaneous opt - Optimization output - Output pgo - Profile Guided Optimization (PGO) preproc - Preprocessor reports - Optimization Reports openmp - OpenMP and Parallel Processing Copyright (C) 1985-2009, Intel Corporation. All rights reserved. * Other brands and names are the property of their respective owners. ================================================================================ TEST checkRestrict from config.compilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/compilers.py:134) TESTING: checkRestrict from config.compilers(config/BuildSystem/config/compilers.py:134) Check for the C/CXX restrict keyword Pushing language C All intermediate test results are stored in /tmp/petsc-3SW45q/config.compilers sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.compilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.compilers -I/tmp/petsc-3SW45q/config.libraries -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.compilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.compilers -I/tmp/petsc-3SW45q/config.libraries -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.c sh: Possible ERROR while running compiler: ret = 512 error message = {/tmp/petsc-3SW45q/config.compilers/conftest.c(5): error: expected a ";" float * restrict x;; ^ compilation aborted for /tmp/petsc-3SW45q/config.compilers/conftest.c (code 2) } Source: #include "confdefs.h" #include "conffix.h" int main() { float * restrict x;; return 0; } sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.compilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries -I/tmp/petsc-3SW45q/config.compilers -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.compilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries -I/tmp/petsc-3SW45q/config.compilers -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" int main() { float * __restrict__ x;; return 0; } compilers: Set C restrict keyword to __restrict__ Defined "C_RESTRICT" to " __restrict__" Popping language C ================================================================================ TEST checkCFormatting from config.compilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/compilers.py:306) TESTING: checkCFormatting from config.compilers(config/BuildSystem/config/compilers.py:306) Activate format string checking if using the GNU compilers ================================================================================ TEST checkCStaticInline from config.compilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/compilers.py:105) TESTING: checkCStaticInline from config.compilers(config/BuildSystem/config/compilers.py:105) Check for C keyword: static inline Pushing language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.compilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries -I/tmp/petsc-3SW45q/config.compilers -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.compilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries -I/tmp/petsc-3SW45q/config.compilers -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" static inline int foo(int a) {return a;} int main() { int i = foo(1);; return 0; } compilers: Set C StaticInline keyword to static inline Popping language C Defined "C_STATIC_INLINE" to "static inline" ================================================================================ TEST checkDynamicLoadFlag from config.compilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/compilers.py:317) TESTING: checkDynamicLoadFlag from config.compilers(config/BuildSystem/config/compilers.py:317) Checks that dlopen() takes RTLD_XXX, and defines PETSC_HAVE_RTLD_XXX if it does sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.compilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries -I/tmp/petsc-3SW45q/config.compilers -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.compilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries -I/tmp/petsc-3SW45q/config.compilers -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" #include char *libname; int main() { dlopen(libname, RTLD_LAZY); ; return 0; } Pushing language C Popping language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.compilers/conftest -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.o -ldl Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.compilers/conftest -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.o -ldl sh: Defined "HAVE_RTLD_LAZY" to "1" sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.compilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries -I/tmp/petsc-3SW45q/config.compilers -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.compilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries -I/tmp/petsc-3SW45q/config.compilers -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" #include char *libname; int main() { dlopen(libname, RTLD_NOW); ; return 0; } Pushing language C Popping language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.compilers/conftest -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.o -ldl Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.compilers/conftest -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.o -ldl sh: Defined "HAVE_RTLD_NOW" to "1" sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.compilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries -I/tmp/petsc-3SW45q/config.compilers -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.compilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries -I/tmp/petsc-3SW45q/config.compilers -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" #include char *libname; int main() { dlopen(libname, RTLD_LOCAL); ; return 0; } Pushing language C Popping language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.compilers/conftest -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.o -ldl Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.compilers/conftest -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.o -ldl sh: Defined "HAVE_RTLD_LOCAL" to "1" sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.compilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries -I/tmp/petsc-3SW45q/config.compilers -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.compilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries -I/tmp/petsc-3SW45q/config.compilers -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" #include char *libname; int main() { dlopen(libname, RTLD_GLOBAL); ; return 0; } Pushing language C Popping language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.compilers/conftest -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.o -ldl Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.compilers/conftest -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.o -ldl sh: Defined "HAVE_RTLD_GLOBAL" to "1" ================================================================================ TEST checkCLibraries from config.compilers(/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/compilers.py:161) TESTING: checkCLibraries from config.compilers(config/BuildSystem/config/compilers.py:161) Determines the libraries needed to link with C Pushing language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.compilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries -I/tmp/petsc-3SW45q/config.compilers -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.c Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -c -o /tmp/petsc-3SW45q/config.compilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -I/tmp/petsc-3SW45q/config.libraries -I/tmp/petsc-3SW45q/config.compilers -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.c sh: Successful compile: Source: #include "confdefs.h" #include "conffix.h" int main() { ; return 0; } Pushing language C Popping language C sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.compilers/conftest -v -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.o -ldl Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.compilers/conftest -v -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.o -ldl sh: Possible ERROR while running linker: Version 11.1 /apps/compilers/intel/Compiler/11.1/056/bin/ia32/mcpcom -mP1OPT_version=11.1-ia32 -mGLOB_diag_enable_disable=D:1572 -mGLOB_diag_file=/tmp/petsc-3SW45q/config.compilers/conftest.diag -mP1OPT_print_version=FALSE -mP3OPT_use_mspp_call_convention -mCG_use_gas_got_workaround=F "-mGLOB_options_string=-long_double -o /tmp/petsc-3SW45q/config.compilers/conftest -v -wd1572 -O3 -ldl" -mGLOB_cxx_limited_range=FALSE -mGLOB_as_output_backup_file_name=/tmp/iccN5HBeIas_.s -mGLOB_lp64=FALSE -mIPOPT_activate -mGLOB_machine_model=GLOB_MACHINE_MODEL_PW -mGLOB_opt_level=3 -mP2OPT_hlo_level=3 -mP2OPT_hlo -mIPOPT_link -mIPOPT_ipo_activate -mIPOPT_ipo_mo_activate -mIPOPT_ipo_mo_nfiles=1 -mIPOPT_source_files_list=/tmp/iccaSwRB7lst -mIPOPT_global_data -mIPOPT_link_script_file=/tmp/icc971l9Yscript "-mIPOPT_link_version=2.17.50.0.6-20.el5 20061020" "-mIPOPT_cmdline_link="/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o" "/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crti.o" "/usr/lib/gcc/i386-redhat-linux/4.1.2/crtbegin.o" "--eh-frame-hdr" "-dynamic-linker" "/lib/ld-linux.so.2" "-m" "elf_i386" "-o" "/tmp/petsc-3SW45q/config.compilers/conftest" "/tmp/petsc-3SW45q/config.compilers/conftest.o" "-ldl" "-L/apps/compilers/intel/Compiler/11.1/056/lib/ia32" "-L/usr/lib/gcc/i386-redhat-linux/4.1.2/" "-L/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../" "-L/lib/" "-L/usr/lib" "-Bstatic" "-limf" "-lsvml" "-Bdynamic" "-lm" "-Bstatic" "-lipgo" "-ldecimal" "-Bdynamic" "-lgcc_s" "-lgcc" "-Bstatic" "-lirc" "-Bdynamic" "-lc" "-lgcc_s" "-lgcc" "-Bstatic" "-lirc_s" "-Bdynamic" "-ldl" "-lc" "/usr/lib/gcc/i386-redhat-linux/4.1.2/crtend.o" "/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crtn.o"" -mIPOPT_il_in_obj -mIPOPT_ipo_activate_warn=FALSE -mIPOPT_obj_output_file_name=/tmp/ipo_icc4qsVrF.o "-mGLOB_linker_version=2.17.50.0.6-20.el5 20061020" -mP3OPT_asm_target=P3OPT_ASM_TARGET_GAS -mGLOB_obj_output_file=/tmp/ipo_icc4qsVrF.o -mP1OPT_source_file_name=/tmp/ipo_icc4qsVrF.c /tmp/petsc-3SW45q/config.compilers/conftest.o -mIPOPT_mo_unique_name=conftest -mIPOPT_object_files=/tmp/iccFY3oZwtxt -mIPOPT_assembly_files=/tmp/iccyxWSwotxt -mIPOPT_cmdline_link_new=/tmp/iccTkan4ftxt ld --eh-frame-hdr -dynamic-linker /lib/ld-linux.so.2 -m elf_i386 -o /tmp/petsc-3SW45q/config.compilers/conftest -L/apps/compilers/intel/Compiler/11.1/056/lib/ia32 -L/usr/lib/gcc/i386-redhat-linux/4.1.2/ -L/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../ -L/lib/ -L/usr/lib /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crti.o /usr/lib/gcc/i386-redhat-linux/4.1.2/crtbegin.o /tmp/petsc-3SW45q/config.compilers/conftest.o -ldl -Bstatic -limf -lsvml -Bdynamic -lm -Bstatic -lipgo -ldecimal -Bdynamic -lgcc_s -lgcc -Bstatic -lirc -Bdynamic -lc -lgcc_s -lgcc -Bstatic -lirc_s -Bdynamic -ldl -lc /usr/lib/gcc/i386-redhat-linux/4.1.2/crtend.o /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crtn.o rm /tmp/iccYuJgnWlibgcc rm /tmp/iccB7isUNgnudirs rm /tmp/iccFY3oZwtxt rm /tmp/iccyxWSwotxt rm /tmp/iccTkan4ftxt rm /tmp/iccaSwRB7lst rm /tmp/icc971l9Yscript rm /tmp/ipo_icc4qsVrF.o rm /tmp/iccyvIQGQgas rm /tmp/iccN5HBeIas_.s rm /tmp/iccgl6mMzldashv rm /tmp/iccfPZrkrgnudirs rm /tmp/iccKLSTSiarg output: error message = {Version 11.1 /apps/compilers/intel/Compiler/11.1/056/bin/ia32/mcpcom -mP1OPT_version=11.1-ia32 -mGLOB_diag_enable_disable=D:1572 -mGLOB_diag_file=/tmp/petsc-3SW45q/config.compilers/conftest.diag -mP1OPT_print_version=FALSE -mP3OPT_use_mspp_call_convention -mCG_use_gas_got_workaround=F "-mGLOB_options_string=-long_double -o /tmp/petsc-3SW45q/config.compilers/conftest -v -wd1572 -O3 -ldl" -mGLOB_cxx_limited_range=FALSE -mGLOB_as_output_backup_file_name=/tmp/iccN5HBeIas_.s -mGLOB_lp64=FALSE -mIPOPT_activate -mGLOB_machine_model=GLOB_MACHINE_MODEL_PW -mGLOB_opt_level=3 -mP2OPT_hlo_level=3 -mP2OPT_hlo -mIPOPT_link -mIPOPT_ipo_activate -mIPOPT_ipo_mo_activate -mIPOPT_ipo_mo_nfiles=1 -mIPOPT_source_files_list=/tmp/iccaSwRB7lst -mIPOPT_global_data -mIPOPT_link_script_file=/tmp/icc971l9Yscript "-mIPOPT_link_version=2.17.50.0.6-20.el5 20061020" "-mIPOPT_cmdline_link="/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o" "/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crti.o" "/usr/lib/gcc/i386-redhat-linux/4.1.2/crtbegin.o" "--eh-frame-hdr" "-dynamic-linker" "/lib/ld-linux.so.2" "-m" "elf_i386" "-o" "/tmp/petsc-3SW45q/config.compilers/conftest" "/tmp/petsc-3SW45q/config.compilers/conftest.o" "-ldl" "-L/apps/compilers/intel/Compiler/11.1/056/lib/ia32" "-L/usr/lib/gcc/i386-redhat-linux/4.1.2/" "-L/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../" "-L/lib/" "-L/usr/lib" "-Bstatic" "-limf" "-lsvml" "-Bdynamic" "-lm" "-Bstatic" "-lipgo" "-ldecimal" "-Bdynamic" "-lgcc_s" "-lgcc" "-Bstatic" "-lirc" "-Bdynamic" "-lc" "-lgcc_s" "-lgcc" "-Bstatic" "-lirc_s" "-Bdynamic" "-ldl" "-lc" "/usr/lib/gcc/i386-redhat-linux/4.1.2/crtend.o" "/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crtn.o"" -mIPOPT_il_in_obj -mIPOPT_ipo_activate_warn=FALSE -mIPOPT_obj_output_file_name=/tmp/ipo_icc4qsVrF.o "-mGLOB_linker_version=2.17.50.0.6-20.el5 20061020" -mP3OPT_asm_target=P3OPT_ASM_TARGET_GAS -mGLOB_obj_output_file=/tmp/ipo_icc4qsVrF.o -mP1OPT_source_file_name=/tmp/ipo_icc4qsVrF.c /tmp/petsc-3SW45q/config.compilers/conftest.o -mIPOPT_mo_unique_name=conftest -mIPOPT_object_files=/tmp/iccFY3oZwtxt -mIPOPT_assembly_files=/tmp/iccyxWSwotxt -mIPOPT_cmdline_link_new=/tmp/iccTkan4ftxt ld --eh-frame-hdr -dynamic-linker /lib/ld-linux.so.2 -m elf_i386 -o /tmp/petsc-3SW45q/config.compilers/conftest -L/apps/compilers/intel/Compiler/11.1/056/lib/ia32 -L/usr/lib/gcc/i386-redhat-linux/4.1.2/ -L/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../ -L/lib/ -L/usr/lib /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crti.o /usr/lib/gcc/i386-redhat-linux/4.1.2/crtbegin.o /tmp/petsc-3SW45q/config.compilers/conftest.o -ldl -Bstatic -limf -lsvml -Bdynamic -lm -Bstatic -lipgo -ldecimal -Bdynamic -lgcc_s -lgcc -Bstatic -lirc -Bdynamic -lc -lgcc_s -lgcc -Bstatic -lirc_s -Bdynamic -ldl -lc /usr/lib/gcc/i386-redhat-linux/4.1.2/crtend.o /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crtn.o rm /tmp/iccYuJgnWlibgcc rm /tmp/iccB7isUNgnudirs rm /tmp/iccFY3oZwtxt rm /tmp/iccyxWSwotxt rm /tmp/iccTkan4ftxt rm /tmp/iccaSwRB7lst rm /tmp/icc971l9Yscript rm /tmp/ipo_icc4qsVrF.o rm /tmp/iccyvIQGQgas rm /tmp/iccN5HBeIas_.s rm /tmp/iccgl6mMzldashv rm /tmp/iccfPZrkrgnudirs rm /tmp/iccKLSTSiarg } Pushing language C Popping language C in /apps/compilers/intel/Compiler/11.1/056/bin/ia32/icc -o /tmp/petsc-3SW45q/config.compilers/conftest -v -wd1572 -O3 /tmp/petsc-3SW45q/config.compilers/conftest.o -ldl Source: #include "confdefs.h" #include "conffix.h" int main() { ; return 0; } Popping language C compilers: Checking arg Version compilers: Unknown arg Version compilers: Checking arg 11.1 compilers: Unknown arg 11.1 compilers: Checking arg /apps/compilers/intel/Compiler/11.1/056/bin/ia32/mcpcom compilers: Unknown arg /apps/compilers/intel/Compiler/11.1/056/bin/ia32/mcpcom compilers: Checking arg -mP1OPT_version=11.1-ia32 compilers: Unknown arg -mP1OPT_version=11.1-ia32 compilers: Checking arg -mGLOB_diag_enable_disable=D:1572 compilers: Unknown arg -mGLOB_diag_enable_disable=D:1572 compilers: Checking arg -mGLOB_diag_file=/tmp/petsc-3SW45q/config.compilers/conftest.diag compilers: Unknown arg -mGLOB_diag_file=/tmp/petsc-3SW45q/config.compilers/conftest.diag compilers: Checking arg -mP1OPT_print_version=FALSE compilers: Unknown arg -mP1OPT_print_version=FALSE compilers: Checking arg -mP3OPT_use_mspp_call_convention compilers: Unknown arg -mP3OPT_use_mspp_call_convention compilers: Checking arg -mCG_use_gas_got_workaround=F compilers: Unknown arg -mCG_use_gas_got_workaround=F compilers: Checking arg "-mGLOB_options_string=-long_double compilers: Unknown arg "-mGLOB_options_string=-long_double compilers: Checking arg -o compilers: Unknown arg -o compilers: Checking arg /tmp/petsc-3SW45q/config.compilers/conftest compilers: Unknown arg /tmp/petsc-3SW45q/config.compilers/conftest compilers: Checking arg -v compilers: Unknown arg -v compilers: Checking arg -wd1572 compilers: Unknown arg -wd1572 compilers: Checking arg -O3 compilers: Unknown arg -O3 compilers: Checking arg -ldl" compilers: Found library : -ldl compilers: Checking arg -mGLOB_cxx_limited_range=FALSE compilers: Unknown arg -mGLOB_cxx_limited_range=FALSE compilers: Checking arg -mGLOB_as_output_backup_file_name=/tmp/iccN5HBeIas_.s compilers: Unknown arg -mGLOB_as_output_backup_file_name=/tmp/iccN5HBeIas_.s compilers: Checking arg -mGLOB_lp64=FALSE compilers: Unknown arg -mGLOB_lp64=FALSE compilers: Checking arg -mIPOPT_activate compilers: Unknown arg -mIPOPT_activate compilers: Checking arg -mGLOB_machine_model=GLOB_MACHINE_MODEL_PW compilers: Unknown arg -mGLOB_machine_model=GLOB_MACHINE_MODEL_PW compilers: Checking arg -mGLOB_opt_level=3 compilers: Unknown arg -mGLOB_opt_level=3 compilers: Checking arg -mP2OPT_hlo_level=3 compilers: Unknown arg -mP2OPT_hlo_level=3 compilers: Checking arg -mP2OPT_hlo compilers: Unknown arg -mP2OPT_hlo compilers: Checking arg -mIPOPT_link compilers: Unknown arg -mIPOPT_link compilers: Checking arg -mIPOPT_ipo_activate compilers: Unknown arg -mIPOPT_ipo_activate compilers: Checking arg -mIPOPT_ipo_mo_activate compilers: Unknown arg -mIPOPT_ipo_mo_activate compilers: Checking arg -mIPOPT_ipo_mo_nfiles=1 compilers: Unknown arg -mIPOPT_ipo_mo_nfiles=1 compilers: Checking arg -mIPOPT_source_files_list=/tmp/iccaSwRB7lst compilers: Unknown arg -mIPOPT_source_files_list=/tmp/iccaSwRB7lst compilers: Checking arg -mIPOPT_global_data compilers: Unknown arg -mIPOPT_global_data compilers: Checking arg -mIPOPT_link_script_file=/tmp/icc971l9Yscript compilers: Unknown arg -mIPOPT_link_script_file=/tmp/icc971l9Yscript compilers: Checking arg "-mIPOPT_link_version=2.17.50.0.6-20.el5 compilers: Unknown arg "-mIPOPT_link_version=2.17.50.0.6-20.el5 compilers: Checking arg 20061020" compilers: Unknown arg 20061020 compilers: Checking arg "-mIPOPT_cmdline_link="/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o" compilers: Unknown arg -mIPOPT_cmdline_link="/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o compilers: Checking arg "/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crti.o" compilers: Unknown arg /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crti.o compilers: Checking arg "/usr/lib/gcc/i386-redhat-linux/4.1.2/crtbegin.o" compilers: Unknown arg /usr/lib/gcc/i386-redhat-linux/4.1.2/crtbegin.o compilers: Checking arg "--eh-frame-hdr" compilers: Unknown arg --eh-frame-hdr compilers: Checking arg "-dynamic-linker" compilers: Unknown arg -dynamic-linker compilers: Checking arg "/lib/ld-linux.so.2" compilers: Unknown arg /lib/ld-linux.so.2 compilers: Checking arg "-m" compilers: Unknown arg -m compilers: Checking arg "elf_i386" compilers: Unknown arg elf_i386 compilers: Checking arg "-o" compilers: Unknown arg -o compilers: Checking arg "/tmp/petsc-3SW45q/config.compilers/conftest" compilers: Unknown arg /tmp/petsc-3SW45q/config.compilers/conftest compilers: Checking arg "/tmp/petsc-3SW45q/config.compilers/conftest.o" compilers: Unknown arg /tmp/petsc-3SW45q/config.compilers/conftest.o compilers: Checking arg "-ldl" compilers: Checking arg "-L/apps/compilers/intel/Compiler/11.1/056/lib/ia32" compilers: Found library directory: -L/apps/compilers/intel/Compiler/11.1/056/lib/ia32 compilers: Checking arg "-L/usr/lib/gcc/i386-redhat-linux/4.1.2/" compilers: Found library directory: -L/usr/lib/gcc/i386-redhat-linux/4.1.2 compilers: Checking arg "-L/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../" compilers: Checking arg "-L/lib/" compilers: Checking arg "-L/usr/lib" compilers: Checking arg "-Bstatic" compilers: Unknown arg -Bstatic compilers: Checking arg "-limf" compilers: Found library : -limf compilers: Checking arg "-lsvml" compilers: Found library : -lsvml compilers: Checking arg "-Bdynamic" compilers: Unknown arg -Bdynamic compilers: Checking arg "-lm" compilers: Checking arg "-Bstatic" compilers: Unknown arg -Bstatic compilers: Checking arg "-lipgo" compilers: Found library : -lipgo compilers: Checking arg "-ldecimal" compilers: Found library : -ldecimal compilers: Checking arg "-Bdynamic" compilers: Unknown arg -Bdynamic compilers: Checking arg "-lgcc_s" compilers: Found library : -lgcc_s compilers: Checking arg "-lgcc" compilers: Skipping system library: -lgcc compilers: Checking arg "-Bstatic" compilers: Unknown arg -Bstatic compilers: Checking arg "-lirc" compilers: Found library : -lirc compilers: Checking arg "-Bdynamic" compilers: Unknown arg -Bdynamic compilers: Checking arg "-lc" compilers: Skipping system library: -lc compilers: Checking arg "-lgcc_s" compilers: Checking arg "-lgcc" compilers: Skipping system library: -lgcc compilers: Checking arg "-Bstatic" compilers: Unknown arg -Bstatic compilers: Checking arg "-lirc_s" compilers: Found library : -lirc_s compilers: Checking arg "-Bdynamic" compilers: Unknown arg -Bdynamic compilers: Checking arg "-ldl" compilers: Checking arg "-lc" compilers: Skipping system library: -lc compilers: Checking arg "/usr/lib/gcc/i386-redhat-linux/4.1.2/crtend.o" compilers: Unknown arg /usr/lib/gcc/i386-redhat-linux/4.1.2/crtend.o compilers: Checking arg "/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crtn.o"" compilers: Unknown arg /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crtn.o compilers: Checking arg -mIPOPT_il_in_obj compilers: Unknown arg -mIPOPT_il_in_obj compilers: Checking arg -mIPOPT_ipo_activate_warn=FALSE compilers: Unknown arg -mIPOPT_ipo_activate_warn=FALSE compilers: Checking arg -mIPOPT_obj_output_file_name=/tmp/ipo_icc4qsVrF.o compilers: Unknown arg -mIPOPT_obj_output_file_name=/tmp/ipo_icc4qsVrF.o compilers: Checking arg "-mGLOB_linker_version=2.17.50.0.6-20.el5 compilers: Unknown arg "-mGLOB_linker_version=2.17.50.0.6-20.el5 compilers: Checking arg 20061020" compilers: Unknown arg 20061020 compilers: Checking arg -mP3OPT_asm_target=P3OPT_ASM_TARGET_GAS compilers: Unknown arg -mP3OPT_asm_target=P3OPT_ASM_TARGET_GAS compilers: Checking arg -mGLOB_obj_output_file=/tmp/ipo_icc4qsVrF.o compilers: Unknown arg -mGLOB_obj_output_file=/tmp/ipo_icc4qsVrF.o compilers: Checking arg -mP1OPT_source_file_name=/tmp/ipo_icc4qsVrF.c compilers: Unknown arg -mP1OPT_source_file_name=/tmp/ipo_icc4qsVrF.c compilers: Checking arg /tmp/petsc-3SW45q/config.compilers/conftest.o compilers: Unknown arg /tmp/petsc-3SW45q/config.compilers/conftest.o compilers: Checking arg -mIPOPT_mo_unique_name=conftest compilers: Unknown arg -mIPOPT_mo_unique_name=conftest compilers: Checking arg -mIPOPT_object_files=/tmp/iccFY3oZwtxt compilers: Unknown arg -mIPOPT_object_files=/tmp/iccFY3oZwtxt compilers: Checking arg -mIPOPT_assembly_files=/tmp/iccyxWSwotxt compilers: Unknown arg -mIPOPT_assembly_files=/tmp/iccyxWSwotxt compilers: Checking arg -mIPOPT_cmdline_link_new=/tmp/iccTkan4ftxt compilers: Unknown arg -mIPOPT_cmdline_link_new=/tmp/iccTkan4ftxt compilers: Checking arg ld compilers: Unknown arg ld compilers: Checking arg --eh-frame-hdr compilers: Unknown arg --eh-frame-hdr compilers: Checking arg -dynamic-linker compilers: Unknown arg -dynamic-linker compilers: Checking arg /lib/ld-linux.so.2 compilers: Unknown arg /lib/ld-linux.so.2 compilers: Checking arg -m compilers: Unknown arg -m compilers: Checking arg elf_i386 compilers: Unknown arg elf_i386 compilers: Checking arg -o compilers: Unknown arg -o compilers: Checking arg /tmp/petsc-3SW45q/config.compilers/conftest compilers: Unknown arg /tmp/petsc-3SW45q/config.compilers/conftest compilers: Checking arg -L/apps/compilers/intel/Compiler/11.1/056/lib/ia32 compilers: Found library directory: -L/apps/compilers/intel/Compiler/11.1/056/lib/ia32 compilers: Checking arg -L/usr/lib/gcc/i386-redhat-linux/4.1.2/ compilers: Found library directory: -L/usr/lib/gcc/i386-redhat-linux/4.1.2 compilers: Checking arg -L/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../ compilers: Checking arg -L/lib/ compilers: Checking arg -L/usr/lib compilers: Checking arg /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o compilers: Unknown arg /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o compilers: Checking arg /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crti.o compilers: Unknown arg /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crti.o compilers: Checking arg /usr/lib/gcc/i386-redhat-linux/4.1.2/crtbegin.o compilers: Unknown arg /usr/lib/gcc/i386-redhat-linux/4.1.2/crtbegin.o compilers: Checking arg /tmp/petsc-3SW45q/config.compilers/conftest.o compilers: Unknown arg /tmp/petsc-3SW45q/config.compilers/conftest.o compilers: Checking arg -ldl compilers: Checking arg -Bstatic compilers: Unknown arg -Bstatic compilers: Checking arg -limf compilers: Checking arg -lsvml compilers: Checking arg -Bdynamic compilers: Unknown arg -Bdynamic compilers: Checking arg -lm compilers: Checking arg -Bstatic compilers: Unknown arg -Bstatic compilers: Checking arg -lipgo compilers: Checking arg -ldecimal compilers: Checking arg -Bdynamic compilers: Unknown arg -Bdynamic compilers: Checking arg -lgcc_s compilers: Checking arg -lgcc compilers: Skipping system library: -lgcc compilers: Checking arg -Bstatic compilers: Unknown arg -Bstatic compilers: Checking arg -lirc compilers: Checking arg -Bdynamic compilers: Unknown arg -Bdynamic compilers: Checking arg -lc compilers: Skipping system library: -lc compilers: Checking arg -lgcc_s compilers: Checking arg -lgcc compilers: Skipping system library: -lgcc compilers: Checking arg -Bstatic compilers: Unknown arg -Bstatic compilers: Checking arg -lirc_s compilers: Checking arg -Bdynamic compilers: Unknown arg -Bdynamic compilers: Checking arg -ldl compilers: Checking arg -lc compilers: Skipping system library: -lc compilers: Checking arg /usr/lib/gcc/i386-redhat-linux/4.1.2/crtend.o compilers: Unknown arg /usr/lib/gcc/i386-redhat-linux/4.1.2/crtend.o compilers: Checking arg /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crtn.o compilers: Unknown arg /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crtn.o compilers: Checking arg rm compilers: Unknown arg rm compilers: Checking arg /tmp/iccYuJgnWlibgcc compilers: Unknown arg /tmp/iccYuJgnWlibgcc compilers: Checking arg rm compilers: Unknown arg rm compilers: Checking arg /tmp/iccB7isUNgnudirs compilers: Unknown arg /tmp/iccB7isUNgnudirs compilers: Checking arg rm compilers: Unknown arg rm compilers: Checking arg /tmp/iccFY3oZwtxt compilers: Unknown arg /tmp/iccFY3oZwtxt compilers: Checking arg rm compilers: Unknown arg rm compilers: Checking arg /tmp/iccyxWSwotxt compilers: Unknown arg /tmp/iccyxWSwotxt compilers: Checking arg rm compilers: Unknown arg rm compilers: Checking arg /tmp/iccTkan4ftxt compilers: Unknown arg /tmp/iccTkan4ftxt compilers: Checking arg rm compilers: Unknown arg rm compilers: Checking arg /tmp/iccaSwRB7lst compilers: Unknown arg /tmp/iccaSwRB7lst compilers: Checking arg rm compilers: Unknown arg rm compilers: Checking arg /tmp/icc971l9Yscript compilers: Unknown arg /tmp/icc971l9Yscript compilers: Checking arg rm compilers: Unknown arg rm compilers: Checking arg /tmp/ipo_icc4qsVrF.o compilers: Unknown arg /tmp/ipo_icc4qsVrF.o compilers: Checking arg rm compilers: Unknown arg rm compilers: Checking arg /tmp/iccyvIQGQgas compilers: Unknown arg /tmp/iccyvIQGQgas compilers: Checking arg rm compilers: Unknown arg rm compilers: Checking arg /tmp/iccN5HBeIas_.s compilers: Unknown arg /tmp/iccN5HBeIas_.s compilers: Checking arg rm compilers: Unknown arg rm compilers: Checking arg /tmp/iccgl6mMzldashv compilers: Unknown arg /tmp/iccgl6mMzldashv compilers: Checking arg rm compilers: Unknown arg rm compilers: Checking arg /tmp/iccfPZrkrgnudirs compilers: Unknown arg /tmp/iccfPZrkrgnudirs compilers: Checking arg rm compilers: Unknown arg rm compilers: Checking arg /tmp/iccKLSTSiarg compilers: Unknown arg /tmp/iccKLSTSiarg compilers: Libraries needed to link C code with another linker: ['-ldl', '-L/apps/compilers/intel/Compiler/11.1/056/lib/ia32', '-L/usr/lib/gcc/i386-redhat-linux/4.1.2', '-limf', '-lsvml', '-lipgo', '-ldecimal', '-lgcc_s', '-lirc', '-lirc_s', '-L/apps/compilers/intel/Compiler/11.1/056/lib/ia32', '-L/usr/lib/gcc/i386-redhat-linux/4.1.2'] compilers: Check that C libraries can be used from Fortran Pushing language FC sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -O3 /tmp/petsc-3SW45q/config.setCompilers/conftest.F Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -O3 /tmp/petsc-3SW45q/config.setCompilers/conftest.F sh: Successful compile: Source: program main end sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -O3 /tmp/petsc-3SW45q/config.setCompilers/conftest.F Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -O3 /tmp/petsc-3SW45q/config.setCompilers/conftest.F sh: Successful compile: Source: program main end Pushing language FC Popping language FC sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -o /tmp/petsc-3SW45q/config.setCompilers/conftest -O3 /tmp/petsc-3SW45q/config.setCompilers/conftest.o -ldl -L/apps/compilers/intel/Compiler/11.1/056/lib/ia32 -L/usr/lib/gcc/i386-redhat-linux/4.1.2 -limf -lsvml -lipgo -ldecimal -lgcc_s -lirc -lirc_s -L/apps/compilers/intel/Compiler/11.1/056/lib/ia32 -L/usr/lib/gcc/i386-redhat-linux/4.1.2 -ldl Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -o /tmp/petsc-3SW45q/config.setCompilers/conftest -O3 /tmp/petsc-3SW45q/config.setCompilers/conftest.o -ldl -L/apps/compilers/intel/Compiler/11.1/056/lib/ia32 -L/usr/lib/gcc/i386-redhat-linux/4.1.2 -limf -lsvml -lipgo -ldecimal -lgcc_s -lirc -lirc_s -L/apps/compilers/intel/Compiler/11.1/056/lib/ia32 -L/usr/lib/gcc/i386-redhat-linux/4.1.2 -ldl sh: sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -O3 /tmp/petsc-3SW45q/config.setCompilers/conftest.F Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -c -o /tmp/petsc-3SW45q/config.setCompilers/conftest.o -I/tmp/petsc-3SW45q/config.setCompilers -O3 /tmp/petsc-3SW45q/config.setCompilers/conftest.F sh: Successful compile: Source: program main end Pushing language FC Popping language FC sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -o /tmp/petsc-3SW45q/config.setCompilers/conftest -O3 /tmp/petsc-3SW45q/config.setCompilers/conftest.o -ldl -L/apps/compilers/intel/Compiler/11.1/056/lib/ia32 -L/usr/lib/gcc/i386-redhat-linux/4.1.2 -limf -lsvml -lipgo -ldecimal -lgcc_s -lirc -lirc_s -L/apps/compilers/intel/Compiler/11.1/056/lib/ia32 -L/usr/lib/gcc/i386-redhat-linux/4.1.2 -ldl Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort -o /tmp/petsc-3SW45q/config.setCompilers/conftest -O3 /tmp/petsc-3SW45q/config.setCompilers/conftest.o -ldl -L/apps/compilers/intel/Compiler/11.1/056/lib/ia32 -L/usr/lib/gcc/i386-redhat-linux/4.1.2 -limf -lsvml -lipgo -ldecimal -lgcc_s -lirc -lirc_s -L/apps/compilers/intel/Compiler/11.1/056/lib/ia32 -L/usr/lib/gcc/i386-redhat-linux/4.1.2 -ldl sh: Executing: /tmp/petsc-3SW45q/config.setCompilers/conftest sh: /tmp/petsc-3SW45q/config.setCompilers/conftest Executing: /tmp/petsc-3SW45q/config.setCompilers/conftest sh: ERROR while running executable: Could not execute "/tmp/petsc-3SW45q/config.setCompilers/conftest": /tmp/petsc-3SW45q/config.setCompilers/conftest: error while loading shared libraries: libirc.so: wrong ELF class: ELFCLASS64 sh: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort --help Executing: /apps/compilers/intel/Compiler/11.1/056/bin/ia32/ifort --help sh: Intel(R) Fortran Compiler Help ============================== usage: ifort [options] file1 [file2 ...] where options represents zero or more compiler options fileN is a Fortran source (.f .for .ftn .f90 .fpp .F .FOR .F90 .i .i90), assembly (.s .S), object (.o), static library (.a), or other linkable file Commonly used options may be placed in the ifort .cfg file. Some options listed are only available on a specific system i32 indicates the feature is available on systems based on IA-32 architecture i64em indicates the feature is available on systems using Intel(R) 64 architecture Compiler Option List -------------------- Optimization ------------ -O1 optimize for maximum speed, but disable some optimizations which increase code size for a small speed benefit -O2 optimize for maximum speed (DEFAULT) -O3 optimize for maximum speed and enable more aggressive optimizations that may not improve performance on some programs -O same as -O2 -Os enable speed optimizations, but disable some optimizations which increase code size for small speed benefit -O0 disable optimizations -fast enable -xHOST -O3 -ipo -no-prec-div -static options set by -fast cannot be overridden with the exception of -xHOST, list options separately to change behavior -fno-alias assume no aliasing in program -fno-fnalias assume no aliasing within functions, but assume aliasing across calls -nolib-inline disable inline expansion of intrinsic functions Code Generation --------------- -x[,,...] generate specialized code to run exclusively on processors indicated by as described below Host generate instructions for the highest instruction set and processor available on the compilation host machine SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSE3_ATOM Can generate MOVBE instructions for Intel processors and can optimize for the Intel(R) Atom(TM) processor. SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for SSE4 Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -ax[,,...] generate code specialized for processors specified by while also generating generic IA-32 instructions. includes one or more of the following: SSE2 Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations SSE3 Intel(R) Core(TM) processor family with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support SSSE3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions SSE4.2 Can generate Intel(R) SSE4 Efficient Accelerated String and Text Processing instructions supported by Intel(R) Core(TM) i7 processors. Can generate Intel(R) SSE4 Vectorizing Compiler and Media Accelerator, Intel(R) SSSE3, SSE3, SSE2, and SSE instructions and it can optimize for the Intel(R) Core(TM) processor family. AVX Enable Intel(R) Advanced Vector Extensions instructions -tune pn1 - optimize for Pentium(R) processor (i32 only) pn2 - optimize for Pentium(R) Pro, Pentium(R) II, and Pentium(R) III processors (i32 only) pn3 - same as pn2 (i32 only) pn4 - optimize for Pentium(R) 4 processor (DEFAULT) -arch pn1 - optimize for Pentium(R) processor (i32 only) pn2 - optimize for Pentium(R) Pro, Pentium(R) II, and Pentium(R) III processors (i32 only) pn3 - same as pn2 (i32 only) pn4 - optimize for Pentium(R) 4 processor (DEFAULT) SSE - Intel Pentium III and compatible Intel processors (i32 only) SSE2 - Intel Pentium 4 and compatible Intel processors. Enables new optimizations in addition to Intel processor-specific optimizations (i32 only) SSE3 - Intel(R) Core(TM) processor family. Code is expected to run properly on any processor that supports SSE3, SSE2 and SSE instruction sets SSSE3 - Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) SSE4.1 - Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions IA32 - generate generic IA-32 architecture code for Intel Pentium III and compatible Intel processors. Disables any default or previously set extended instruction setting -mcpu= same as -mtune= -mtune= optimize for a specific pentium3 - optimize for Pentium(R) III processors pentium4 - optimize for Pentium(R) 4 processor (DEFAULT) -march= generate code exclusively for a given pentium3 - streaming SIMD extensions pentium4 - Pentium(R) 4 New Instructions -mia32 generates code which will run on any Intel Pentium or later processor. Disables any default extended instruction settings, and any previously set extended instruction settings. -msse generate code for Intel Pentium III and compatible Intel processors -msse2 generate code for Intel Pentium 4 and compatible Intel processors -msse3 generate code for Intel(R) Core(TM) Duo processors, Intel(R) Core(TM) Solo processors, Intel Pentium 4 and compatible Intel processors with Streaming SIMD Extensions 3 (Intel(R) SSE3) instruction support -mssse3 Intel(R) Core(TM)2 processor family with Supplemental Streaming SIMD Extensions 3 (SSSE3) -msse4.1 Intel(R) 45nm Hi-k next generation Intel Core(TM) microarchitecture with support for Streaming SIMD Extensions 4 (Intel(R) SSE4) Vectorizing Compiler and Media Accelerator instructions -minstruction= Refine instruction set output for the selected target processor [no]movbe - Do/do not generate MOVBE instructions with SSE3_ATOM (requires -xSSE3_ATOM) -f[no-]omit-frame-pointer enable(DEFAULT)/disable use of EBP as general purpose register. -fno-omit-frame-pointer replaces -fp -f[no-]exceptions enable/disable(DEFAULT) C++ exception handling table generation -f[no-]exceptions enable(DEFAULT)/disable exception handling Interprocedural Optimization (IPO) ---------------------------------- -[no-]ip enable(DEFAULT)/disable single-file IP optimization within files -ipo[n] enable multi-file IP optimization between files -ipo-c generate a multi-file object file (ipo_out.o) -ipo-S generate a multi-file assembly file (ipo_out.S) -ip-no-inlining disable full and partial inlining -ip-no-pinlining disable partial inlining -ipo-separate create one object file for every source file (overrides -ipo[n]) -ipo-jobs specify the number of jobs to be executed simultaneously during the IPO link phase Advanced Optimizations ---------------------- -unroll[n] set maximum number of times to unroll loops. Omit n to use default heuristics. Use n=0 to disable the loop unroller -[no-]unroll-aggressive enables more aggressive unrolling heuristics -funroll-loops unroll loops based on default heuristics -[no-]scalar-rep enable(DEFAULT)/disable scalar replacement (requires -O3) -[no]pad enable/disable(DEFAULT) changing variable and array memory layout -safe-cray-ptr Cray pointers do not alias with other variables -[no-]ansi-alias enable/disable(DEFAULT) use of ANSI aliasing rules optimizations; user asserts that the program adheres to these rules -[no-]complex-limited-range enable/disable(DEFAULT) the use of the basic algebraic expansions of some complex arithmetic operations. This can allow for some performance improvement in programs which use a lot of complex arithmetic at the loss of some exponent range. -reentrancy specify whether the threaded, reentrant run-time support should be used Keywords: none (same as -noreentrancy), threaded, async -noreentrancy do not use threaded, reentrant run-time support -heap-arrays [n] temporary arrays of minimum size n (in kilobytes) are allocated in heap memory rather than on the stack. If n is not specified, all temporary arrays are allocated in heap memory. -no-heap-arrays temporary arrays are allocated on the stack (DEFAULT) -[no-]opt-multi-version-aggressive enables more aggressive multi-versioning to check for pointer aliasing and scalar replacement -opt-ra-region-strategy[=] select the method that the register allocator uses to partition each routine into regions routine - one region per routine block - one region per block trace - one region per trace loop - one region per loop default - compiler selects best option -[no-]vec enables(DEFAULT)/disables vectorization -[no-]vec-guard-write enables cache/bandwidth optimization for stores under conditionals within vector loops -vec-threshold[n] sets a threshold for the vectorization of loops based on the probability of profitable execution of the vectorized loop in parallel -opt-malloc-options={0|1|2|3|4} specify malloc configuration parameters. Specifying a non-zero value will cause alternate configuration parameters to be set for how malloc allocates and frees memory -opt-jump-tables= control the generation of jump tables default - let the compiler decide when a jump table, a series of if-then-else constructs or a combination is generated large - generate jump tables up to a certain pre-defined size (64K entries) - generate jump tables up to in size use -no-opt-jump-tables to lower switch statements as chains of if-then-else constructs -fno-jump-tables do not generate jump tables for switches and if-then-else statements -opt-block-factor= specify blocking factor for loop blocking -opt-streaming-stores specifies whether streaming stores are generated always - enables generation of streaming stores under the assumption that the application is memory bound auto - compiler decides when streaming stores are used (DEFAULT) never - disables generation of streaming stores -mkl[=] link to the Intel(R) Math Kernel Library (Intel(R) MKL) and bring in the associated headers parallel - link using the threaded Intel(R) MKL libraries. This is the default when -mkl is specified sequential - link using the non-threaded Intel(R) MKL libraries cluster - link using the Intel(R) MKL Cluster libraries plus the sequential Intel(R) MKL libraries -imsl link to the International Mathematics and Statistics Library* (IMSL* library) -[no-]opt-subscript-in-range assumes no overflows in the intermediate computation of the subscripts Profile Guided Optimization (PGO) --------------------------------- -prof-dir specify directory for profiling output files (*.dyn and *.dpi) -prof-src-root specify project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -prof-src-root-cwd specify the current directory as the project root directory for application source files to enable relative path resolution during profile feedback on sources below that directory -[no-]prof-src-dir specify whether directory names of sources should be considered when looking up profile records within the .dpi file -prof-file specify file name for profiling summary file -[no-]prof-data-order enable/disable(DEFAULT) static data ordering with profiling -[no-]prof-func-order enable/disable(DEFAULT) function ordering with profiling -[no-]prof-func-groups enable(DEFAULT with PGO)/disable function grouping -prof-gen[=keyword] instrument program for profiling. Optional keyword may be srcpos or globdata -no-prof-gen disable profiling instrumentation -prof-use[=] enable use of profiling information during optimization weighted - invokes profmerge with -weighted option to scale data based on run durations [no]merge - enable(default)/disable the invocation of the profmerge tool -no-prof-use disable use of profiling information during optimization -opt-prefetch[=n] enable levels of prefetch insertion, where 0 disables. n may be 0 through 4 inclusive. Default is 2. -no-opt-prefetch disable(DEFAULT) prefetch insertion. Equivalent to -opt-prefetch=0 -p compile and link for function profiling with UNIX gprof tool On IA32 and Intel(r)64, -pg is also valid -f[no-]instrument-functions determine whether function entry and exit points are instrumented -prof-hotness-threshold= set the hotness threshold for function grouping and function ordering val indicates percentage of functions to be placed in hot region. This option requires -prof-use and -prof-func-groups or -prof-func-order Optimization Reports -------------------- -vec-report[n] control amount of vectorizer diagnostic information n=0 no diagnostic information n=1 indicate vectorized loops (DEFAULT) n=2 indicate vectorized/non-vectorized loops n=3 indicate vectorized/non-vectorized loops and prohibiting data dependence information n=4 indicate non-vectorized loops n=5 indicate non-vectorized loops and prohibiting data dependence information -opt-report [n] generate an optimization report to stderr 0 disable optimization report output 1 minimum report output 2 medium output (DEFAULT when enabled) 3 maximum report output -opt-report-file= specify the filename for the generated report -opt-report-phase= specify the phase that reports are generated against -opt-report-routine= reports on routines containing the given name -opt-report-help display the optimization phases available for reporting -tcheck [mode] enable analysis of threaded applications (requires Intel(R) Thread Checker; cannot be used with compiler alone) tci - instruments a program to perform a thread-count-independent analysis tcd - instruments a program to perform a thread-count-dependent analysis (DEFAULT when mode is not used) api - instruments a program at the api-imports level -tprofile generate instrumentation to analyze multi-threading performance (requires Intel(R) Thread Profiler; cannot be used with compiler alone) -tcollect[=] inserts instrumentation probes calling the Intel(R) Trace Collector API. The library -l is linked in the default being -lVT (requires Intel(R) Trace Collector) -tcollect-filter file Enable or disable the instrumentation of specified functions. (requires Intel(R) Trace Collector) OpenMP* and Parallel Processing ------------------------------- -openmp enable the compiler to generate multi-threaded code based on the OpenMP* directives -openmp-profile enable analysis of OpenMP application when the Intel(R) Thread Profiler is installed -openmp-stubs enables the user to compile OpenMP programs in sequential mode. The OpenMP directives are ignored and a stub OpenMP library is linked (sequential) -openmp-report{0|1|2} control the OpenMP parallelizer diagnostic level -openmp-lib choose which OpenMP library version to link with compat - use the GNU compatible OpenMP run-time libraries (DEFAULT) -openmp-link choose whether to link with the static or dynamic OpenMP libraries. Default is dynamic. -openmp-threadprivate choose which threadprivate implementation to use compat - use the GNU compatible thread local storage legacy - use the Intel compatible implementation (DEFAULT) -parallel enable the auto-parallelizer to generate multi-threaded code for loops that can be safely executed in parallel -par-report{0|1|2|3} control the auto-parallelizer diagnostic level -par-threshold[n] set threshold for the auto-parallelization of loops where n is an integer from 0 to 100 -[no-]par-runtime-control enable compiler to generate runtime control code for effective automatic parallelization -par-schedule-static[=n] Specifies a scheduling algorithm for DO loop iteration. Divides iterations into contiguous pieces. Size n if specified, equal sized pieces if not. -par-schedule-static-balanced[=n] Divides iterations into even-sized chunks. Size n if specified, equal sized pieces if not. -par-schedule-static-steal[=n] Divides iterations into even-sized chunks, but allows threads to steal parts of chunks from neighboring threads -par-schedule-dynamic[=n] Specifies a scheduling algorithm for DO loop iteration. Assigns iterations to threads in chunks dynamically. Chunk size is n iterations if specified, otherwise 1. -par-schedule-guided[=n] Specifies a scheduling algorithm for DO loop iteration. Indicates a minimum number of iterations. If specified, n is the minimum number, otherwise 1. -par-schedule-guided-analytical[=n] Divides iterations by using exponential distribution or dynamic distributions. -par-schedule-runtime Specifies a scheduling algorithm for DO loop iteration. Defers the scheduling decision until runtime. -par-schedule-auto Lets the compiler or run-time system determine the scheduling algorithm. -par-affinity=[,...][,][,] tune application performance by setting different thread affinity -par-num-threads= tune application performance by setting different number of threads Floating Point -------------- -fp-model enable floating point model variation [no-]except - enable/disable floating point semantics fast[=1|2] - enables more aggressive floating point optimizations precise - allows value-safe optimizations source - enables intermediates in source precision strict - enables -fp-model precise -fp-model except, disables contractions and enables pragma stdc fenv_access -fp-speculation= enable floating point speculations with the following conditions: fast - speculate floating point operations (DEFAULT) safe - speculate only when safe strict - same as off off - disables speculation of floating-point operations -pc32 set internal FPU precision to 24 bit significand -pc64 set internal FPU precision to 53 bit significand (DEFAULT) -pc80 set internal FPU precision to 64 bit significand -mp1 improve floating-point precision (speed impact less than -mp) -mieee-fp same as -mp, can be disabled with -mno-ieee-fp -[no-]prec-sqrt determine if certain square root optimizations are enabled -[no-]prec-div improve precision of FP divides (some speed impact) -[no-]fast-transcendentals generate a faster version of the transcendental functions -[no-]fp-port round fp results at assignments and casts (some speed impact) -fp-stack-check enable fp stack checking after every function/procedure call -rcd rounding mode to enable fast float-to-int conversions -rounding-mode chopped set internal FPU rounding control to truncate -[no-]ftz enable/disable flush denormal results to zero -fpe{0|1|3} specifies program-wide behavior on floating point exceptions -fpe-all={0|1|3} specifies floating point exception behavior on all functions and subroutines. Also sets -assume ieee_fpe_flags -[no]fltconsistency specify that improved floating-point consistency should be used -[no]recursive compile all procedures for possible recursive execution Inlining -------- -inline-level= control inline expansion: n=0 disable inlining n=1 inline functions declared with ATTRIBUTES INLINE or FORCEINLINE n=2 inline any function, at the compiler's discretion -f[no-]inline-functions inline any function at the compiler's discretion -finline-limit= set maximum number of statements a function can have and still be considered for inlining -inline-min-size= set size limit for inlining small routines -no-inline-min-size no size limit for inlining small routines -inline-max-size= set size limit for inlining large routines -no-inline-max-size no size limit for inlining large routines -inline-max-total-size= maximum increase in size for inline function expansion -no-inline-max-total-size no size limit for inline function expansion -inline-max-per-routine= maximum number of inline instances in any function -no-inline-max-per-routine no maximum number of inline instances in any function -inline-max-per-compile= maximum number of inline instances in the current compilation -no-inline-max-per-compile no maximum number of inline instances in the current compilation -inline-factor= set inlining upper limits by n percentage -no-inline-factor do not set set inlining upper limits -inline-forceinline treat inline routines as forceinline -inline-calloc directs the compiler to inline calloc() calls as malloc()/memset() Output, Debug, PCH ------------------ -c compile to object (.o) only, do not link -S compile to assembly (.s) only, do not link -fsource-asm produce assembly file with optional source annotations (requires -S) -f[no-]verbose-asm produce assembly file with compiler comments (DEFAULT) (requires -S) -fcode-asm produce assembly file with optional code annotations (requires -S) -use-msasm support Microsoft* style assembly language insertion using MASM style syntax -o name output file -g produce symbolic debug information in object file (implies -O0 when another optimization option is not explicitly set) -debug [keyword] enable debug information and control output of enhanced debug information keywords: all, full, minimal, none, [no]inline-debug-info [no]variable-locations, [no]semantic-stepping, extended parallel -debug-parameters [keyword] control output of debug information for PARAMETERS keywords: all, used, none (same as -nodebug-parameters) -nodebug-parameters do not output debug information for PARAMETERS -g0 disable generation of symbolic debug information -gdwarf-2 enable generation of debug information using the DWARF2 format -[no]d-lines compile debug statements (indicated by D in column 1) -DD compile debug statements, indicated by D in column 1. This option prevents the definition of a macro named D using the command line -Dname option (use -Dname=n syntax instead) -ftrapuv trap uninitialized variables -map-opts enable option mapping tool -print-multi-lib print information about libraries being used Preprocessor ------------ -D[=] define macro -nodefines, -noD specifies that any -D macros go to the preprocessor only, and not to the compiler -U remove predefined macro -allow nofpp-comments If a Fortran end-of-line comment is seen within a #define, treat it as part of the definition. Default is allow:fpp-comments -E preprocess to stdout -EP preprocess to stdout, omitting #line directives -P preprocess to file, omitting #line directives -preprocess-only same as -P -[no]keep keep/remove preprocessed file generated by preprocessor as input to compiler stage. Not affected by -save-temps. Default is -nokeep -fpp[n], -[no]fpp run Fortran preprocessor on source files prior to compilation n=0 disable running the preprocessor, equivalent to nofpp n=1,2,3 run preprocessor -cpp[n] same as -fpp[n] -module path specify path where mod files should be placed and first location to look for mod files -I add directory to include file search path -idirafter add directory to the second include file search path (after -I) -isystem add directory to the start of the system include path -X, -nostdinc remove standard directories from include file search path -B find libraries, headers and executables in Component Control ----------------- -Qoption,, pass options to tool specified by -Qlocation,, set as the location of tool specified by -Qinstall set as root of compiler installation Language -------- -[no]altparam specify if alternate form of parameter constant declarations (without parenthesis) is recognized. Default is to recognize Same as -[no]dps -assume specify assumptions made by the optimizer and code generator keywords: none, [no]byterecl, [no]buffered_io, [no]bscc (nobscc same as -nbs), [no]cc_omp, [no]minus0, [no]dummy_aliases (same as -common-args), [no]ieee_fpe_flags, [no]old_boz, [no]old_logical_ldio, [no]old_maxminloc, [no]old_unit_star, [no]old_xor, [no]protect_constants, [no]protect_parens, [no]realloc_lhs, [no]2underscore, [no]underscore (same as -us), [no]std_mod_proc_name, [no]source_include, [no]writeable_strings -ccdefault specify default carriage control for units 6 and * keywords: default, fortran, list or none -[no]check check run-time conditions. Default is -nocheck keywords: all (same as -C), none (same as -nocheck), [no]arg_temp_created, [no]bounds (same as -CB), [no]format, [no]output_conversion, [no]pointer (same as -CA), [no]uninit (same as -CU) -common-args assume "by reference" subprogram arguments may alias one another. Same as -assume dummy_aliases -e03 issue errors for language elements that are not standard in Fortran 2003 (same as -stand f03 -warn stderrors options) -e95 issue errors for language elements that are not standard in Fortran 95 (same as -stand f95 -warn stderrors options) -e90 issue errors for language elements that are not standard in Fortran 90 (same as -stand f90 -warn stderrors options) -[no]extend-source [] specify rightmost column for fixed form sources keywords: 72 (same as -noextend-source and -72), 80 (same as -80), 132 (same as -132. Default if you specify -extend-source without a keyword.) -fixed specify source files are in fixed format. Same as -FI -nofixed indicates free format -free specify source files are in free format. Same as -FR -nofree indicates fixed format -[no]mixed-str-len-arg indicate whether hidden lengths are passed after their character argument or after all arguments. -names specify how source code identifiers and external names are interpreted. keywords: as_is, lowercase (Default. Same as -lowercase), uppercase (same as -uppercase) -[no]pad-source make compiler acknowledge blanks at the end of a line -stand [] specifies level of conformance with ANSI standard to check for. If keyword is not specified, level of conformance is f03 keywords: f90 (same as -std90), f95(same as -std95), f03(same as -std95), none (same as -nostand) -syntax-only perform syntax and semantic checking only (no object file produced) Compiler Diagnostics -------------------- -cm suppress all comment messages, same as -warn nousage -w disable all warnings -W disable warnings (n = 0) or show warnings (n = 1 DEFAULT, same as -warn general) -w90, -w95 suppress messages about use of non-standard Fortran -warn specifies the level of warning messages issued keywords: all, none (same as -nowarn) [no]alignments, [no]declarations, [no]errors, [no]general, [no]ignore_loc, [no]interfaces, [no]stderrors, [no]truncated_source, [no]uncalled, [no]unused, [no]usage -nowarn suppress all warning messages -WB turn a compile-time bounds check into a warning -Wcheck enable more strict diagnostics -Winline enable inline diagnostics -[no]traceback specify whether the compiler generates PC correlation data used to display a symbolic traceback rather than a hexadecimal traceback at runtime failure -[no]gen-interfaces[:[no]source] generate interface blocks for all routines in the file. Can be checked using -warn interfaces nosource indicates temporary source files should not be saved -error-limit specify the maximum number of error-level or fatal-level compiler errors allowed -noerror-limit set no maximum number on error-level or fatal-level error messages -diag-enable [,,...] enable the specified diagnostics or diagnostic groups -diag-disable [,,...] disable the specified diagnostics or diagnostic groups where may be individual diagnostic numbers or group names. where group names include: sc[n] - perform source code analysis: n=1 for critical errors, n=2 for all errors and n=3 for all errors and warnings sc-include - perform source code analysis on include files sc-parallel[n] - perform analysis of parallelization in source code: n=1 for critical errors, n=2 for errors, n=3 for all errors and warnings -diag-error [,,...] output the specified diagnostics or diagnostic groups as errors -diag-warning [,,...] output the specified diagnostics or diagnostic groups as warnings -diag-remark [,,...] output the the specified diagnostics or diagnostic groups as remarks -diag-dump display the currently enabled diagnostic messages to stdout or to a specified diagnostic output file. -diag-file[=] where diagnostics are emitted to. Not specifying this causes messages to be output to stderr -diag-file-append[=] where diagnostics are emitted to. When already exists, output is appended to the file -[no-]diag-id-numbers enable(DEFAULT)/disable the diagnostic specifiers to be output in numeric form -diag-error-limit specify the maximum number of errors emitted Miscellaneous ------------- -[no]logo display compiler version information. /nologo disables the output -V display compiler version information -dumpmachine display the target machine only --version display GCC style version information -[no-]sox enable/disable(DEFAULT) saving of compiler options and version in the executable -save-temps store the intermediate files in current directory and name them based on the source file. Only saves files that are generated by default -dryrun show driver tool commands but do not execute tools -v show driver tool commands and execute tools -what display detailed compiler version information -watch tells the driver to output processing information keywords: all, none (same as -nowatch), [no]source, [no]cmd (same as -v) -nowatch suppress processing information output (DEFAULT) -Tf compile file as Fortran source -multiple-processes[=] create multiple processes that can be used to compile large numbers of source files at the same time Data ---- -i{2|4|8} set default KIND of integer and logical variables to 2, 4, or 8 -integer-size specifies the default size of integer and logical variables size: 16, 32, 64 -r{8|16} set default size of real to 8 or 16 bytes -real-size specify the size of REAL and COMPLEX declarations, constants, functions, and intrinsics size: 32, 64, 128 -autodouble same as -real-size 64 or -r8 -double-size defines the size of DOUBLE PRECISION and DOUBLE COMPLEX declarations, constants, functions, and intrinsics size: 64, 128 -[no]fpconstant extends the precision of single precision constants assigned to double precision variables to double precision -[no]intconstant use Fortran 77 semantics, rather than Fortran 90/95, to determine kind of integer constants -auto make all local variables AUTOMATIC. Same as -automatic -auto-scalar make scalar local variables AUTOMATIC (DEFAULT) -save save all variables (static allocation) (same as -noautomatic, opposite of -auto) -[no]zero enable/disable(DEFAULT) implicit initialization to zero of local scalar variables of intrinsic type INTEGER, REAL, COMPLEX, or LOGICAL that are saved and not initialized -dyncom make given common blocks dynamically-allocated -Zp[n] specify alignment constraint for structures (n=1,2,4,8,16 -Zp16 DEFAULT) -[no]align analyze and reorder memory layout for variables and arrays -align specify how data items are aligned keywords: all (same as -align), none (same as -align), [no]commons, [no]dcommons, [no]records, rec1byte, rec2byte, rec4byte, rec8byte, rec16byte, [no]sequence -fminshared Compilation is for the main executable. Absolute addressing can be used and non-position independent code generated for symbols that are at least protected -fstack-security-check enable overflow security checks. -f[no-]stack-security-check disables (DEFAULT) -fstack-protector enable stack overflow security checks. -f[no-]stack-protector disables (DEFAULT) -fpic, -fPIC generate position independent code (-fno-pic/-fno-PIC is DEFAULT) -fpie, -fPIE generate position independent code that will be linked into an executable (-fno-pie/-fno-PIE is DEFAULT) -[no-]global-hoist enable(DEFAULT)/disable external globals are load safe -f[no-]keep-static-consts enable/disable(DEFAULT) emission of static const variables even when not referenced -fpack-struct pack structure members together -f[no-]math-errno set ERRNO after calling standard math library functions -no-bss-init disable placement of zero-initialized variables in BSS (use DATA) -convert specify the format of unformatted files containing numeric data keywords: big_endian, cray, ibm, little_endian, native, vaxd, vaxg -falign-functions=[2|16] align the start of functions on a 2 (DEFAULT) or 16 byte boundary -falign-functions align the start of functions to an optimal machine-dependent value. -fno-align-functions (DEFAULT) aligns on a 2-byte boundary -falign-stack= stack alignment method to use on entry to routines default - use default heuristics maintain-16-byte - do not assume any specific alignment, but maintain alignment in case the stack is already aligned assume-16-byte - assume the stack is aligned on 16-byte boundaries -fvisibility=[extern|default|protected|hidden|internal] Global symbols (data and functions) will get the visibility attribute given by default. Symbol visibility attributes explicitly set in the source code or using the symbol visibility attribute file options will override the -fvisibility setting -fvisibility-extern= Space separated symbols listed in the argument will geti visibility set to extern -fvisibility-default= Space separated symbols listed in the argument will get visibility set to default -fvisibility-protected= Space separated symbols listed in the argument will get visibility set to protected -fvisibility-hidden= Space separated symbols listed in the argument will get visibility set to hidden -fvisibility-internal= Space separated symbols listed in the argument will get visibility set to internal -fvisibility-inlines-hidden mark inline member functions as hidden Compatibility ------------- -fpscomp specify the level of compatibility to adhere to with Fortran PowerStation keywords: all, none (same as -nofpscomp), [no]filesfromcmd, [no]general, [no]ioformat, [no]ldio_spacing, [no]libs, [no]logicals -nofpscomp no specific level of compatibility with Fortran PowerStation -1, -onetrip execute any DO loop at least once -f66, -66 allow extensions that enhance FORTRAN-66 compatibility -f77rtl specify that the Fortran 77 specific run-time support should be used -nof77rtl disables -vms enable VMS I/O statement extensions -gcc-name= name and location of gcc if not where expected -gxx-name= name and location of g++ if not where expected -gcc-version= specify the of gcc compatibility. Default value matches gcc version installed. Major/Minor versions listed but patch levels (i.e. 345) are permissible 320 - gcc 3.2.x compatibility 330 - gcc 3.3.x compatibility 340 - gcc 3.4.x compatibility 400 - gcc 4.0.x compatibility 410 - gcc 4.1.x compatibility 420 - gcc 4.2.x compatibility Linking/Linker -------------- -L instruct linker to search for libraries -l instruct the linker to link in the -l library -shared-intel link Intel provided libraries dynamically -static-intel link Intel provided libraries statically -shared-libgcc link libgcc dynamically -static-libgcc link libgcc statically -dynamic-linker select dynamic linker other than the default -no-cxxlib do not link in C++ runtime libraries -cxxlib[=dir] link using C++ run-time libraries provided with gcc dir is an optional top-level location for the gcc binaries and libraries -nodefaultlibs do not use standard libraries when linking -nostartfiles do not use standard startup files when linking -nostdlib do not use standard libraries and startup files when linking -nofor-main do not link against Fortran main object. Used when linking Fortran objects with C main program -static prevents linking with shared libraries -shared produce a shared object -Bstatic specify following libraries are linked statically -Bdynamic specify following libraries are linked dynamically -cxxlib- tell the compiler which C++ run-time libraries to use nostd - do not link in standard C++ library -T direct linker to read link commands from -Xlinker pass directly to the linker for processing -Wa,[,,...] pass options o1, o2, etc. to the assembler -Wl,[,,...] pass options o1, o2, etc. to the linker for processing -Wp,[,,...] pass options o1, o2, etc. to the preprocessor -threads specify that multi-threaded libraries should be linked against -nothreads disables multi-threaded libraries Deprecated Options ------------------ -Ob use -inline-level= -cxxlib-gcc[=dir] use -cxxlib[=dir] -i-dynamic use -shared-intel -i-static use -static-intel -inline-debug-info use -debug inline-debug-info -mp use -fp-model -use-asm no replacement -A- use -U -prefetch use -opt-prefetch -prof-genx use -prof-gen=srcpos -fwritable-strings use -assume writeable-strings -openmp-lib=legacy use -openmp-lib=compat -xB use -xSSE2 (i32 only) -xK use -xSSE (i32 only) -axK No replacement -xW use -msse2 -axW use -msse2 -xN use -xSSE2 -axN use -axSSE2 -xP use -xSSE3 -axP use -axSSE3 -xT use -xSSSE3 -axT use -axSSSE3 -xS use -xSSE4.1 -axS use -axSSE4.1 -xO use -msse3 -func-groups use -prof-func-groups -diag-enable sv use -diag-enable sc -diag-enable sv-include use -diag-enable sc-include -diag-disable sv use -diag-disable sc -diag-sv use -diag-enable sc -diag-sv-error use -diag-disable warning -diag-sv-include use -diag-enable sc-include -diag-sv-level No replacement -diag-sv-sup use -diag-disable [,,...] -help [category] print full or category help message Valid categories include advanced - Advanced Optimizations codegen - Code Generation compatibility - Compatibility component - Component Control data - Data deprecated - Deprecated Options diagnostics - Compiler Diagnostics float - Floating Point help - Help inline - Inlining ipo - Interprocedural Optimization (IPO) language - Language link - Linking/Linker misc - Miscellaneous opt - Optimization output - Output pgo - Profile Guided Optimization (PGO) preproc - Preprocessor reports - Optimization Reports openmp - OpenMP and Parallel Processing Copyright (C) 1985-2009, Intel Corporation. All rights reserved. * Other brands and names are the property of their respective owners. Popping language FC **** Configure header conftest.h **** #if !defined(INCLUDED_UNKNOWN) #define INCLUDED_UNKNOWN #ifndef PETSC_HAVE_DLFCN_H #define PETSC_HAVE_DLFCN_H 1 #endif #ifndef PETSC_HAVE_RTLD_NOW #define PETSC_HAVE_RTLD_NOW 1 #endif #ifndef PETSC_HAVE_RTLD_LOCAL #define PETSC_HAVE_RTLD_LOCAL 1 #endif #ifndef PETSC_HAVE_RTLD_LAZY #define PETSC_HAVE_RTLD_LAZY 1 #endif #ifndef PETSC_C_STATIC_INLINE #define PETSC_C_STATIC_INLINE static inline #endif #ifndef PETSC_HAVE_RTLD_GLOBAL #define PETSC_HAVE_RTLD_GLOBAL 1 #endif #ifndef PETSC_C_RESTRICT #define PETSC_C_RESTRICT __restrict__ #endif #ifndef PETSC_HAVE_LIBDL #define PETSC_HAVE_LIBDL 1 #endif #ifndef PETSC_ARCH #define PETSC_ARCH "arch-linux2-c-opt" #endif #ifndef PETSC_DIR #define PETSC_DIR "/d/dev01/qlu/Lib/petsc-3.4.2" #endif #ifndef HAVE_GZIP #define HAVE_GZIP 1 #endif #ifndef PETSC_CLANGUAGE_C #define PETSC_CLANGUAGE_C 1 #endif #ifndef PETSC_USE_ERRORCHECKING #define PETSC_USE_ERRORCHECKING 1 #endif #ifndef PETSC_HAVE_DYNAMIC_LIBRARIES #define PETSC_HAVE_DYNAMIC_LIBRARIES 1 #endif #ifndef PETSC_HAVE_SHARED_LIBRARIES #define PETSC_HAVE_SHARED_LIBRARIES 1 #endif #ifndef PETSC_USE_GDB_DEBUGGER #define PETSC_USE_GDB_DEBUGGER 1 #endif #endif **** C specific Configure header conffix.h **** #if !defined(INCLUDED_UNKNOWN) #define INCLUDED_UNKNOWN #if defined(__cplusplus) extern "C" { } #else #endif #endif ******************************************************************************* UNABLE to EXECUTE BINARIES for ./configure ------------------------------------------------------------------------------- Cannot run executables created with FC. If this machine uses a batch system to submit jobs you will need to configure using ./configure with the additional option --with-batch. Otherwise there is problem with the compilers. Can you compile and run code with your C/C++ (and maybe Fortran) compilers? See http://www.mcs.anl.gov/petsc/documentation/faq.html#libimf ******************************************************************************* File "./config/configure.py", line 293, in petsc_configure framework.configure(out = sys.stdout) File "/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/framework.py", line 933, in configure child.configure() File "/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/compilers.py", line 1332, in configure self.executeTest(self.checkCLibraries) File "/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/base.py", line 115, in executeTest ret = apply(test, args,kargs) File "/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/compilers.py", line 299, in checkCLibraries self.setCompilers.checkCompiler('FC') File "/d/dev01/qlu/Lib/petsc-3.4.2/config/BuildSystem/config/setCompilers.py", line 448, in checkCompiler raise OSError(msg)