diff options
author | David Cournapeau <cournape@gmail.com> | 2013-04-26 07:13:25 -0700 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2013-04-26 07:13:25 -0700 |
commit | f8a21eff6a93022f31e995b41d6fe28f16e39a12 (patch) | |
tree | 9db8b98fb5df7ac6e67c817c94b4b4f8c731721d | |
parent | 1d6ced7d9be4fe3a91f3411d09c4a22309dcb719 (diff) | |
parent | a09fc3341860b9ea376c7f5769feb653414e2b67 (diff) | |
download | numpy-f8a21eff6a93022f31e995b41d6fe28f16e39a12.tar.gz |
Merge pull request #3272 from cournape/remove_obsolete_ifort_flags
ENH: remove obsolete ifort flags
-rw-r--r-- | numpy/distutils/fcompiler/intel.py | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/numpy/distutils/fcompiler/intel.py b/numpy/distutils/fcompiler/intel.py index a5be3c46d..f6aa687a8 100644 --- a/numpy/distutils/fcompiler/intel.py +++ b/numpy/distutils/fcompiler/intel.py @@ -3,7 +3,6 @@ from __future__ import division, absolute_import, print_function import sys -from numpy.distutils.cpuinfo import cpu from numpy.distutils.ccompiler import simple_version_match from numpy.distutils.fcompiler import FCompiler, dummy_fortran_file @@ -163,21 +162,10 @@ class IntelVisualFCompiler(BaseIntelFCompiler): return ['/4Yb','/d2'] def get_flags_opt(self): - return ['/O1'] + return ['/O2'] def get_flags_arch(self): - opt = [] - if cpu.is_PentiumPro() or cpu.is_PentiumII(): - opt.extend(['/G6','/Qaxi']) - elif cpu.is_PentiumIII(): - opt.extend(['/G6','/QaxK']) - elif cpu.is_Pentium(): - opt.append('/G5') - elif cpu.is_PentiumIV(): - opt.extend(['/G7','/QaxW']) - if cpu.has_mmx(): - opt.append('/QaxM') - return opt + return ["/arch:IA-32", "/QaxSSE3"] class IntelItaniumVisualFCompiler(IntelVisualFCompiler): compiler_type = 'intelev' @@ -204,6 +192,9 @@ class IntelEM64VisualFCompiler(IntelVisualFCompiler): version_match = simple_version_match(start='Intel\(R\).*?64,') + def get_flags_arch(self): + return ["/arch:SSE2"] + if __name__ == '__main__': from distutils import log |