User:Mtmiller/Notes: Difference between revisions

From Octave
Jump to navigation Jump to search
(Create personal notes page, Intel compilation notes for now)
(No difference)

Revision as of 19:10, 18 December 2012

Intel Compiler

To compile Octave with the Intel compiler (tested with version 12.0.0.084) pass the following variables to configure:

Code: Intel compiler variables
CC=icc
CXX=icpc
F77=ifort
CFLAGS="-g -O2 -diag-error 10006,10155,10156,10157,10158"
CXXFLAGS="-g -O2 -diag-error 10006,10155,10156,10157,10158 -diag-disable 654,1125"
FFLAGS="-g -O2 -diag-error 10006,10155,10156,10157,10158"

The -diag-error options tell the compiler to treat unknown options as errors instead of warnings, this is to allow the checks in the configure script for supported options to work.

The -diag-disable 654,1125 for C++ turns off warnings about shadowing member functions. I may turn these back on at some point to compile a list of these warnings, but ignore for now.