cp2k: fixed compilation issues for intel stack

Added DFLAGS to the `make.inc` file being written.
These macros are also added to the language specific variables
like CFLAGS, CXXFLAGS and FCFLAGS. Changed `spec.satisfies('foo')`
with `'foo' in spec` in `intel-mkl`, see #4135. Added a basic
build interface to `intel-mpi`.
This commit is contained in:
Massimiliano Culpo
2017-05-05 18:24:04 +02:00
committed by alalazo
parent 4b866c6395
commit 306f158c73
4 changed files with 82 additions and 25 deletions

View File

@@ -42,6 +42,18 @@ class IntelMpi(IntelInstaller):
provides('mpi')
@property
def mpi_libs(self):
query_parameters = self.spec.last_query.extra_parameters
libraries = ['libmpifort', 'libmpi']
if 'cxx' in query_parameters:
libraries = ['libmpicxx'] + libraries
return find_libraries(
libraries, root=self.prefix.lib64, shared=True, recurse=True
)
def install(self, spec, prefix):
self.intel_prefix = prefix
IntelInstaller.install(self, spec, prefix)