Last active
August 29, 2015 14:01
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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