Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpcdf
obs
osc-plugins
Commits
9d3cdafe
Commit
9d3cdafe
authored
Sep 17, 2019
by
Lorenz Huedepohl
Browse files
Add new prjconf macros %compiler_module/%mpi_module
parent
658db9cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
mpcdf_common.py
View file @
9d3cdafe
...
...
@@ -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_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
,
co
mpi
ler_repository
=
compiler
)
mpi_repository
=
mpi
,
mpi
_module
=
mpi_module
(
mpi
)
)
for
cuda
in
cudas
:
for
compiler
in
filter
(
partial
(
valid_cuda
,
cuda
),
compilers
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment