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
df652975
Commit
df652975
authored
Oct 26, 2021
by
Lorenz Hüdepohl
Browse files
New location for mofed stack
parent
ae5ce9e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
mpcdf_common.py
View file @
df652975
...
...
@@ -610,6 +610,15 @@ def parse_prjconf(api_url, project):
return
orig_prjconf
,
prjconf_head
,
prjconf_ours
,
prjconf_tail
def
openmpi_flavor_dependencies
(
flavor
,
distribution
):
if
flavor
.
startswith
(
"mofed_"
):
mofed_version
=
flavor
[
len
(
"mofed_"
):].
replace
(
"_"
,
"."
)
mofed_repo
=
"extern:mofed:"
+
mofed_version
return
((
mofed_repo
,
distribution
),)
else
:
return
()
def
mpcdf_setup_subproject
(
api_url
,
project
,
distribution
,
microarchitecture
,
parent
=
None
,
dry_run
=
False
,
diff
=
False
,
remove_old
=
False
,
remove_old_matching
=
None
,
all_possible
=
False
,
only_project
=
False
):
import
re
...
...
@@ -798,9 +807,8 @@ Macros:
if
"openmpi"
in
mpi
:
for
of
in
openmpi_flavors
:
dependencies
=
((
project
,
compiler
),)
if
"mofed"
in
of
:
dependencies
=
((
"extern:"
+
of
,
distribution
),)
+
dependencies
if
not
parent
:
dependencies
=
openmpi_flavor_dependencies
(
of
,
distribution
)
+
dependencies
repo
(
mpi
+
"_"
+
compiler
+
"_"
+
of
,
dependencies
,
mpi
=
True
,
mpi_repository
=
mpi
,
mpi_module
=
mpi_module
(
mpi
),
openmpi_flavor
=
of
)
...
...
@@ -823,8 +831,8 @@ Macros:
"Prefer: mpcdf_"
+
cuda
,))
for
of
in
openmpi_flavors
:
dependencies
=
((
project
,
cuda
+
"_"
+
mpi
+
"_"
+
compiler
),)
if
"mofed"
in
of
:
dependencies
=
((
"extern:"
+
of
,
distribution
)
,)
+
dependencies
if
not
parent
:
dependencies
=
openmpi_flavor_dependencies
(
of
,
distribution
)
+
dependencies
repo
(
cuda
+
"_aware_"
+
mpi
+
"_"
+
compiler
+
"_"
+
of
,
dependencies
,
cuda_aware_mpi
=
True
,
openmpi_flavor
=
of
,
...
...
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