Skip to content

Commit 09dd819

Browse files
committed
Merge remote-tracking branch 'upstream/main' into smkey_store
2 parents ed12a71 + 3de90b1 commit 09dd819

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2919
-723
lines changed

.github/workflows/compile-rocm.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
curl -fsSL https://repo.radeon.com/rocm/rocm.gpg.key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/rocm-keyring.gpg
1818
echo 'deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/rocm-keyring.gpg] https://repo.radeon.com/rocm/apt/debian focal main' | sudo tee /etc/apt/sources.list.d/rocm.list
1919
sudo apt-get update
20-
sudo apt-get install -y rocm-hip-sdk
20+
sudo apt-get install -y rocm-hip-runtime
2121
- uses: actions/checkout@v3
2222
with:
2323
submodules: recursive
@@ -26,3 +26,9 @@ jobs:
2626
./autogen.pl
2727
./configure --prefix=${PWD}/install --with-rocm=/opt/rocm --disable-mpi-fortran
2828
make -j
29+
- name: Clean up
30+
run: |
31+
ls -la ./
32+
rm -rf ./*
33+
rm -rf ./.??*
34+
ls -la ./

.github/workflows/ompi_nvidia.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: ompi_NVIDIA CI
22
on: [pull_request]
33
jobs:
4+
45
deployment:
6+
if: github.repository == 'open-mpi/ompi'
57
runs-on: [self-hosted, linux, x64, nvidia]
68
steps:
79
- name: Checkout
@@ -28,7 +30,11 @@ jobs:
2830
- name: Running tests
2931
run: /start test
3032
clean:
31-
if: ${{ always() }}
33+
# always() should be used to run "clean" even when the workflow was canceled
34+
# ( in case of the right repository name)
35+
# The second condition doesn't work when the workflow was canceled
36+
37+
if: always() && (github.repository == 'open-mpi/ompi')
3238
needs: [deployment, build, test]
3339
runs-on: [self-hosted, linux, x64, nvidia]
3440
steps:

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,3 +534,12 @@ docs/_templates
534534
# Common Python virtual environment directory names
535535
venv
536536
py??
537+
538+
# Copies of PRRTE RST files (i.e., not source controlled in this tree)
539+
docs/prrte-rst-content
540+
docs/schizo-ompi-rst-content
541+
542+
# Copies of the built HTML docs and man pages (for distribution
543+
# tarballs)
544+
docs/html
545+
docs/man

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
3333
Jeff Squyres <[email protected]> --quiet <--quiet>
3434
Jeff Squyres <[email protected]>
35+
Jeff Squyres <[email protected]>
3536

3637
3738

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/bash
2+
3+
set -euxo pipefail
4+
5+
# The ReadTheDocs build process does not run autogen/configure/make.
6+
# Hence, we have to copy the PRRTE RST files (from the 3rd-party/prrte
7+
# tree) to our docs/ tree manually.
8+
9+
# Ensure that we're in the RTD CI environment
10+
11+
if [[ "${READTHEDOCS:-no}" == "no" ]]; then
12+
echo "This script is only intended to be run in the ReadTheDocs CI environment"
13+
exit 1
14+
fi
15+
16+
SCHIZO_SRC_DIR=3rd-party/prrte/src/mca/schizo/ompi
17+
SCHIZO_TARGET_DIR=docs/schizo-ompi-rst-content
18+
19+
PRRTE_RST_SRC_DIR=3rd-party/prrte/src/docs/prrte-rst-content
20+
PRRTE_RST_TARGET_DIR=docs/prrte-rst-content
21+
22+
# Copy the OMPI schizo file from PRRTE
23+
24+
cp -rp $SCHIZO_SRC_DIR $SCHIZO_TARGET_DIR
25+
26+
# Only copy the PRRTE RST source files in prrte-rst-content that are
27+
# referenced by ".. include::" in the schizo-ompi-cli.rst file. We do
28+
# this because Sphinx complains if there are .rst files that are not
29+
# referenced. :-(
30+
31+
mkdir -p $PRRTE_RST_TARGET_DIR
32+
files=`fgrep '.. include::' $SCHIZO_TARGET_DIR/schizo-ompi-cli.rstxt | awk '{ print $3 }'`
33+
for file in $files; do
34+
filename=`basename $file`
35+
cp -pf $PRRTE_RST_SRC_DIR/$filename $PRRTE_RST_TARGET_DIR
36+
done

.readthedocs.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ build:
1212
os: ubuntu-22.04
1313
tools:
1414
python: "3.10"
15+
jobs:
16+
# RTD doesn't run configure or make. So we have to manually copy
17+
# in the PRRTE RST files to docs/.
18+
pre_create_environment:
19+
- ./.readthedocs-pre-create-environment.sh
1520

1621
python:
1722
install:
@@ -21,3 +26,6 @@ python:
2126
sphinx:
2227
configuration: docs/conf.py
2328
fail_on_warning: true
29+
30+
submodules:
31+
include: all

3rd-party/openpmix

Submodule openpmix updated 64 files

3rd-party/prrte

Submodule prrte updated 163 files

Makefile.ompi-rules

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Copyright (c) 2008-2022 Cisco Systems, Inc. All rights reserved.
33
# Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
44
# Copyright (c) 2020 Intel, Inc. All rights reserved.
5+
# Copyright (c) 2023 Jeffrey M. Squyres. All rights reserved.
56
# $COPYRIGHT$
67
#
78
# Additional copyrights may follow
@@ -26,6 +27,14 @@ OMPI_V_GEN = $(ompi__v_GEN_$V)
2627
ompi__v_GEN_ = $(ompi__v_GEN_$AM_DEFAULT_VERBOSITY)
2728
ompi__v_GEN_0 = @echo " GENERATE" $@;
2829

30+
OMPI_V_COPYALL = $(ompi__v_COPYALL_$V)
31+
ompi__v_COPYALL_ = $(ompi__v_COPYALL_$AM_DEFAULT_VERBOSITY)
32+
ompi__v_COPYALL_0 = @echo " COPY tree $@";
33+
34+
OMPI_V_SPHINX_COPYRST = $(ompi__v_SPHINX_COPYRST_$V)
35+
ompi__v_SPHINX_COPYRST_ = $(ompi__v_SPHINX_COPYRST_$AM_DEFAULT_VERBOSITY)
36+
ompi__v_SPHINX_COPYRST_0 = @echo " COPY RST source files";
37+
2938
OMPI_V_SPHINX_HTML = $(ompi__v_SPHINX_HTML_$V)
3039
ompi__v_SPHINX_HTML_ = $(ompi__v_SPHINX_HTML_$AM_DEFAULT_VERBOSITY)
3140
ompi__v_SPHINX_HTML_0 = @echo " GENERATE HTML docs";

autogen.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,6 +1643,10 @@ sub replace_config_sub_guess {
16431643
if (! -f "3rd-party/prrte/configure.ac") {
16441644
my_die("Could not find pmix files\n");
16451645
}
1646+
1647+
verbose "Patching prrte.spec file\n";
1648+
system("$patch_prog -N -p0 < ./config/prrte.spec.diff > /dev/null 2>&1");
1649+
16461650
push(@subdirs, "3rd-party/prrte/");
16471651
$m4 .= "m4_define([package_prrte], [1])\n";
16481652

0 commit comments

Comments
 (0)