Skip to content

Instantly share code, notes, and snippets.

@ofan666
Last active August 29, 2015 14:01
Show Gist options
  • Save ofan666/0a94131fdafa5d047877 to your computer and use it in GitHub Desktop.
Save ofan666/0a94131fdafa5d047877 to your computer and use it in GitHub Desktop.
A working and passed all test for Numpy/Scipy with icc/ifort 14.0.2 and Intel MKL 11.1 Update 2.
# snippet from numpy 1.8.1
class IntelEM64TFCompiler(IntelFCompiler):
compiler_type = 'intelem'
compiler_aliases = ()
description = 'Intel Fortran Compiler for 64-bit apps'
version_match = intel_version_match('EM64T-based|Intel\\(R\\) 64|64|IA-64|64-bit')
possible_executables = ['ifort', 'efort', 'efc']
executables = {
'version_cmd' : None,
'compiler_f77' : [None, "-FI"],
'compiler_fix' : [None, "-FI"],
'compiler_f90' : [None],
'linker_so' : ['<F90>', "-shared"],
'archiver' : ["ar", "-cr"],
'ranlib' : ["ranlib"]
}
def get_flags(self):
return ['-fPIC']
def get_flags_opt(self):
#return ['-i8 -xhost -openmp -fp-model strict']
return ['-xhost -O1 -openmp -fp-model strict -fPIC']
def get_flags_arch(self):
return []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment