Commit e2e2cbf3 authored by Lorenz Huedepohl's avatar Lorenz Huedepohl
Browse files

Filter some PGI/IMPI combinations

parent a5b05885
Pipeline #67028 passed with stage
in 15 seconds
......@@ -29,6 +29,14 @@ mpi_parallel_studio = {value["impi"]: dict({"ps": key}, **value) for key, value
compiler_parallel_studio = {value["compiler"]: dict({"ps": key}, **value) for key, value in intel_parallel_studio.items()}
def valid_pgi_mpi(pgi, mpi):
if "impi" not in mpi:
return False
if "2017" in mpi:
return False
return True
def valid_mpi(compiler, mpi):
It might be possible to use Intel MPI libararies and compilers from
......@@ -40,6 +48,8 @@ def valid_mpi(compiler, mpi):
if compiler.startswith("intel") and mpi.startswith("impi"):
return mpi == compiler_parallel_studio[compiler]["impi"]
if compiler.startswith("pgi"):
return valid_pgi_mpi(compiler, mpi)
return True
......@@ -299,6 +309,7 @@ def mpcdf_enable_repositories(api_url, project, package, verbose=False, filter_r
if flag == "pgi_mpi":
for mpi, pgi in product(actual_mpis(), actual_pgis()):
if valid_pgi_mpi(pgi, mpi):
enable(mpi + "_" + pgi)
if len(build.getchildren()) > 0:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment