From d5e128c331a2ab404821e744f826da3f840733da Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sat, 21 May 2016 20:13:32 -0600 Subject: [PATCH] BLD: Remove Intel compiler flag -xSSE4.2 The consensus seems to be that hardcoding SSE4.2 results in poor code for architectures lacking the feature. Closes #7287. --- numpy/distutils/fcompiler/intel.py | 4 ++-- numpy/distutils/intelccompiler.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/numpy/distutils/fcompiler/intel.py b/numpy/distutils/fcompiler/intel.py index c4f15a073a2b..f3e616e1de0c 100644 --- a/numpy/distutils/fcompiler/intel.py +++ b/numpy/distutils/fcompiler/intel.py @@ -123,7 +123,7 @@ def get_flags_opt(self): # Scipy test failures with -O2 return ['-openmp -fp-model strict -O1'] def get_flags_arch(self): - return ['-xSSE4.2'] + return [''] # Is there no difference in the version string between the above compilers # and the Visual compilers? @@ -205,7 +205,7 @@ class IntelEM64VisualFCompiler(IntelVisualFCompiler): version_match = simple_version_match(start='Intel\(R\).*?64,') def get_flags_arch(self): - return ['/QaxSSE4.2'] + return [''] if __name__ == '__main__': diff --git a/numpy/distutils/intelccompiler.py b/numpy/distutils/intelccompiler.py index 20c6d2ba413a..ee089dbaebad 100644 --- a/numpy/distutils/intelccompiler.py +++ b/numpy/distutils/intelccompiler.py @@ -54,7 +54,7 @@ class IntelEM64TCCompiler(UnixCCompiler): def __init__(self, verbose=0, dry_run=0, force=0): UnixCCompiler.__init__(self, verbose, dry_run, force) self.cc_exe = ('icc -m64 -fPIC -fp-model strict -O3 ' - '-fomit-frame-pointer -openmp -xSSE4.2') + '-fomit-frame-pointer -openmp') compiler = self.cc_exe if platform.system() == 'Darwin': shared_flag = '-Wl,-undefined,dynamic_lookup' @@ -88,7 +88,7 @@ def initialize(self, plat_name=None): self.lib = self.find_exe('xilib') self.linker = self.find_exe('xilink') self.compile_options = ['/nologo', '/O3', '/MD', '/W3', - '/Qstd=c99', '/QaxSSE4.2'] + '/Qstd=c99'] self.compile_options_debug = ['/nologo', '/Od', '/MDd', '/W3', '/Qstd=c99', '/Z7', '/D_DEBUG']