Skip to content

Instantly share code, notes, and snippets.

@ofan666
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ofan666/1b934c0c85aa3c3dad9c to your computer and use it in GitHub Desktop.
Save ofan666/1b934c0c85aa3c3dad9c to your computer and use it in GitHub Desktop.
For Numpy/Scipy with icc/ifort 14.0.2 and Intel MKL 11.1 Update 2.
# snippet from numpy 1.8.1
class IntelEM64TCCompiler(UnixCCompiler):
""" A modified Intel x86_64 compiler compatible with a 64bit gcc built Python.
"""
compiler_type = 'intelem'
cc_exe = 'icc -m64 -fPIC'
cc_args = "-fPIC"
def __init__ (self, verbose=0, dry_run=0, force=0):
UnixCCompiler.__init__ (self, verbose, dry_run, force)
self.cc_exe = 'icc -O3 -xhost -m64 -g -fPIC -fp-model strict -fomit-frame-pointer -openmp'
compiler = self.cc_exe
self.set_executables(compiler=compiler,
compiler_so=compiler,
compiler_cxx=compiler,
linker_exe=compiler,
linker_so=compiler + ' -shared')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment