Commit 9d3cdafe authored by Lorenz Huedepohl's avatar Lorenz Huedepohl
Browse files

Add new prjconf macros %compiler_module/%mpi_module

parent 658db9cd
......@@ -46,6 +46,14 @@ prjconf_start_marker = "# Autogenerated by osc mpcdf_setup_repos, do not edit ti
prjconf_end_marker = "# End of autogenerated section\n"
def compiler_module(compiler_repo):
return compiler_repo.replace("_", "/", 1).replace("_", ".")
def mpi_module(mpi_repo):
return mpi_repo.replace("_", "/", 1).replace("_", ".")
def valid_pgi_mpi(pgi, mpi):
if "impi" not in mpi:
return False
......@@ -528,11 +536,11 @@ Macros:
for compiler in compilers + pgis:
repo(compiler, (project, "System"), compiler=True,
compiler_repository=compiler, compiler_module=compiler_module(compiler))
for mpi in filter(partial(valid_mpi, compiler), mpis):
repo(mpi + "_" + compiler, (project, compiler), mpi=True,
mpi_repository=mpi, compiler_repository=compiler)
mpi_repository=mpi, mpi_module=mpi_module(mpi))
for cuda in cudas:
for compiler in filter(partial(valid_cuda, cuda), compilers):
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