-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into ci-linux-arm64
- Loading branch information
Showing
77 changed files
with
716 additions
and
812 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
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,51 @@ | ||
#!/usr/bin/env bash | ||
|
||
# mpiexec currently seems to have a bug where it tries to parse parameters | ||
# of the launched application when they start with a dash, e.g. | ||
# `mpiexec python ./openpmd-pipe --infile in.bp --outfile out.bp` | ||
# leads to: | ||
# > An unrecognized option was included on the mpiexec command line: | ||
# > | ||
# > Option: --infile | ||
# > | ||
# > Please use the "mpiexec --help" command to obtain a list of all | ||
# > supported options. | ||
# | ||
# This script provides a workaround by putting the called sub-command into | ||
# a script in a temporary file. | ||
|
||
mpiexec -n 1 ls --all \ | ||
&& echo "MPIRUN WORKING AGAIN, PLEASE REMOVE WORKAROUND" >&2 \ | ||
&& exit 1 \ | ||
|| true | ||
|
||
mpirun_args=() | ||
|
||
script_file="$(mktemp)" | ||
|
||
cleanup() { | ||
rm "$script_file" | ||
} | ||
trap cleanup EXIT | ||
|
||
while true; do | ||
case "$1" in | ||
-c | -np | --np | -n | --n ) | ||
mpirun_args+=("$1" "$2") | ||
shift | ||
shift | ||
;; | ||
*) | ||
break | ||
;; | ||
esac | ||
done | ||
|
||
echo -e '#!/usr/bin/env bash\n' > "$script_file" | ||
for item in "$@"; do | ||
echo -n "'$item' " >> "$script_file" | ||
done | ||
|
||
chmod +x "$script_file" | ||
|
||
mpirun "${mpirun_args[@]}" "$script_file" |
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 |
---|---|---|
|
@@ -5,8 +5,8 @@ FROM quay.io/pypa/manylinux2010_x86_64 as build-env | |
# FROM quay.io/pypa/manylinux1_x86_64 as build-env | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
# Python 3.8-3.11 via "38 39 311" | ||
ARG PY_VERSIONS="38 39 310 311" | ||
# Python 3.8-3.12 via "38 39 311 312" | ||
ARG PY_VERSIONS="38 39 310 311 312" | ||
|
||
# static libs need relocatable symbols for linking to shared python lib | ||
ENV CFLAGS="-fPIC ${CFLAGS}" | ||
|
@@ -162,7 +162,7 @@ FROM debian:bullseye | |
ENV DEBIAN_FRONTEND noninteractive | ||
COPY --from=build-env /wheelhouse/openPMD_api-*-cp311-cp311-manylinux2010_x86_64.whl . | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends python3.10 python3-distutils ca-certificates curl \ | ||
&& apt-get install -y --no-install-recommends python3.11 python3-distutils ca-certificates curl \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN python3.11 --version \ | ||
&& curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \ | ||
|
@@ -172,6 +172,21 @@ RUN python3.11 -c "import openpmd_api as io; print(io.__version__); print | |
RUN python3.11 -m openpmd_api.ls --help | ||
RUN openpmd-ls --help | ||
|
||
# test in fresh env: Debian:Bullseye + Python 3.12 | ||
FROM debian:bullseye | ||
ENV DEBIAN_FRONTEND noninteractive | ||
COPY --from=build-env /wheelhouse/openPMD_api-*-cp312-cp312-manylinux2010_x86_64.whl . | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends python3.12 python3-distutils ca-certificates curl \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN python3.12 --version \ | ||
&& curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \ | ||
&& python3.12 get-pip.py \ | ||
&& python3.12 -m pip install openPMD_api-*-cp312-cp312-manylinux2010_x86_64.whl | ||
RUN python3.12 -c "import openpmd_api as io; print(io.__version__); print(io.variants)" | ||
RUN python3.12 -m openpmd_api.ls --help | ||
RUN openpmd-ls --help | ||
|
||
# copy binary artifacts (wheels) | ||
FROM quay.io/pypa/manylinux2010_x86_64 | ||
MAINTAINER Axel Huebl <[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
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
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
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
Oops, something went wrong.