* Promote to Autotools for simplicity; broaden Intel CPU opt targeting from SSE4.2 to AVX2

* make Intel CPU opt targeting same as in ../libxc

* flake8 W291

* use canonical means to pass (ahem) the test phase, h/t @adamjstewart

* revert f25d598 (unrelated merge)

* re-merge
This commit is contained in:
Michael Sternberg
2018-03-21 19:53:19 -05:00
committed by Adam J. Stewart
parent 973a131dac
commit 726c7e0f06
2 changed files with 36 additions and 25 deletions

View File

@@ -64,11 +64,10 @@ def autoreconf(self, spec, prefix):
@property
def optflags(self):
flags = '-O2'
# Optimizations for the Intel compiler, suggested by CP2K
# See ../libxc/package.py for rationale and doc.
if '%intel' in self.spec:
# -xSSE2 will make it usable on old architecture
flags += ' -xSSE2 -xAVX -axCORE-AVX2 -ipo'
flags += ' -xSSE4.2 -axAVX,CORE-AVX2 -ipo'
return flags