forked from HDFGroup/hdf5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2,033 changed files
with
18,023 additions
and
12,236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# | ||
# This file is part of HDF5. The full HDF5 copyright notice, including | ||
# terms governing use, modification, and redistribution, is contained in | ||
# the COPYING file, which can be found at the root of the source code | ||
# the LICENSE file, which can be found at the root of the source code | ||
# distribution tree, or in https://www.hdfgroup.org/licenses. | ||
# If you do not have access to either file, you may request a copy from | ||
# [email protected]. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# Build MPICH from source using the latest commit on the | ||
# 'main' branch and cache the results. The result is installed | ||
# to (or restored to) '${{ runner.workspace }}/mpich'. | ||
|
||
# Triggers the workflow on a call from another workflow | ||
on: | ||
workflow_call: | ||
inputs: | ||
build_mode: | ||
description: "production vs. debug build" | ||
required: true | ||
type: string | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
ubuntu_gcc_build_and_test: | ||
name: "Build MPICH ${{ inputs.build_mode }} (GCC)" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Install Linux dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install build-essential libtool libtool-bin | ||
- name: Get MPICH source | ||
uses: actions/[email protected] | ||
with: | ||
repository: 'pmodels/mpich' | ||
path: 'mpich' | ||
submodules: recursive | ||
|
||
- name: Get MPICH commit hash | ||
shell: bash | ||
id: get-sha | ||
run: | | ||
cd $GITHUB_WORKSPACE/mpich | ||
export MPICH_SHA=$(git rev-parse HEAD) | ||
echo "MPICH_SHA=$MPICH_SHA" >> $GITHUB_ENV | ||
echo "sha=$MPICH_SHA" >> $GITHUB_OUTPUT | ||
# Output SHA for debugging | ||
echo "MPICH_SHA=$MPICH_SHA" | ||
- name: Cache MPICH (GCC) installation | ||
id: cache-mpich-ubuntu-gcc | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ runner.workspace }}/mpich | ||
key: ${{ runner.os }}-${{ runner.arch }}-gcc-mpich-${{ steps.get-sha.outputs.sha }}-${{ inputs.build_mode }} | ||
|
||
# Enable threads=multiple for testing with Subfiling and | ||
# VOL connectors that require MPI_THREAD_MULTIPLE | ||
- name: Install MPICH (GCC) (Production) | ||
if: ${{ steps.cache-mpich-ubuntu-gcc.cache-hit != 'true' && (inputs.build_mode != 'debug') }} | ||
run: | | ||
cd $GITHUB_WORKSPACE/mpich | ||
./autogen.sh | ||
./configure \ | ||
CC=gcc \ | ||
--prefix=${{ runner.workspace }}/mpich \ | ||
--enable-threads=multiple | ||
make -j2 | ||
make install | ||
# Enable threads=multiple for testing with Subfiling and | ||
# VOL connectors that require MPI_THREAD_MULTIPLE | ||
- name: Install MPICH (GCC) (Debug) | ||
if: ${{ steps.cache-mpich-ubuntu-gcc.cache-hit != 'true' && (inputs.build_mode == 'debug') }} | ||
run: | | ||
cd $GITHUB_WORKSPACE/mpich | ||
./autogen.sh | ||
./configure \ | ||
CC=gcc \ | ||
--prefix=${{ runner.workspace }}/mpich \ | ||
--enable-g=most \ | ||
--enable-debuginfo \ | ||
--enable-threads=multiple | ||
make -j2 | ||
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Build OpenMPI from source using the latest commit on the | ||
# 'main' branch and cache the results. The result is installed | ||
# to (or restored to) '${{ runner.workspace }}/openmpi'. | ||
|
||
# Triggers the workflow on a call from another workflow | ||
on: | ||
workflow_call: | ||
inputs: | ||
build_mode: | ||
description: "production vs. debug build" | ||
required: true | ||
type: string | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
ubuntu_gcc_build_and_test: | ||
name: "Build OpenMPI ${{ inputs.build_mode }} (GCC)" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Install Linux dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install build-essential libtool libtool-bin | ||
- name: Get OpenMPI source | ||
uses: actions/[email protected] | ||
with: | ||
repository: 'open-mpi/ompi' | ||
path: 'ompi' | ||
submodules: recursive | ||
|
||
- name: Get OpenMPI commit hash | ||
shell: bash | ||
id: get-sha | ||
run: | | ||
cd $GITHUB_WORKSPACE/ompi | ||
export OPENMPI_SHA=$(git rev-parse HEAD) | ||
echo "OPENMPI_SHA=$OPENMPI_SHA" >> $GITHUB_ENV | ||
echo "sha=$OPENMPI_SHA" >> $GITHUB_OUTPUT | ||
# Output SHA for debugging | ||
echo "OPENMPI_SHA=$OPENMPI_SHA" | ||
- name: Cache OpenMPI (GCC) installation | ||
id: cache-openmpi-ubuntu-gcc | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ runner.workspace }}/openmpi | ||
key: ${{ runner.os }}-${{ runner.arch }}-gcc-openmpi-${{ steps.get-sha.outputs.sha }}-${{ inputs.build_mode }} | ||
|
||
- name: Install OpenMPI (GCC) (Production) | ||
if: ${{ steps.cache-openmpi-ubuntu-gcc.cache-hit != 'true' && (inputs.build_mode != 'debug') }} | ||
run: | | ||
cd $GITHUB_WORKSPACE/ompi | ||
./autogen.pl | ||
./configure \ | ||
CC=gcc \ | ||
--prefix=${{ runner.workspace }}/openmpi | ||
make -j2 | ||
make install | ||
- name: Install OpenMPI (GCC) (Debug) | ||
if: ${{ steps.cache-openmpi-ubuntu-gcc.cache-hit != 'true' && (inputs.build_mode == 'debug') }} | ||
run: | | ||
cd $GITHUB_WORKSPACE/ompi | ||
./autogen.pl | ||
./configure \ | ||
CC=gcc \ | ||
--prefix=${{ runner.workspace }}/openmpi \ | ||
--enable-debug | ||
make -j2 | ||
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.