Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion .azure-pipelines/azure-pipelines-osx.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ c_compiler:
- gcc
c_compiler_version:
- '7'
cdt_name:
- cos6
channel_sources:
- conda-forge,defaults
channel_targets:
Expand All @@ -15,7 +17,7 @@ cxx_compiler:
cxx_compiler_version:
- '7'
docker_image:
- condaforge/linux-anvil-cuda:9.2
- quay.io/condaforge/linux-anvil-cuda:9.2
fortran_compiler:
- gfortran
fortran_compiler_version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ c_compiler:
- gcc
c_compiler_version:
- '9'
cdt_name:
- cos6
channel_sources:
- conda-forge,defaults
channel_targets:
Expand All @@ -15,7 +17,7 @@ cxx_compiler:
cxx_compiler_version:
- '9'
docker_image:
- condaforge/linux-anvil-cuda:9.2
- quay.io/condaforge/linux-anvil-cuda:9.2
fortran_compiler:
- gfortran
fortran_compiler_version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cxx_compiler:
cxx_compiler_version:
- '7'
docker_image:
- condaforge/linux-anvil-aarch64
- quay.io/condaforge/linux-anvil-aarch64
fortran_compiler:
- gfortran
fortran_compiler_version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cxx_compiler:
cxx_compiler_version:
- '9'
docker_image:
- condaforge/linux-anvil-aarch64
- quay.io/condaforge/linux-anvil-aarch64
fortran_compiler:
- gfortran
fortran_compiler_version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ c_compiler:
- gcc
c_compiler_version:
- '8'
cdt_name:
- cos7
channel_sources:
- conda-forge,defaults
channel_targets:
Expand All @@ -13,7 +15,7 @@ cxx_compiler:
cxx_compiler_version:
- '8'
docker_image:
- condaforge/linux-anvil-ppc64le
- quay.io/condaforge/linux-anvil-ppc64le
fortran_compiler:
- gfortran
fortran_compiler_version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ c_compiler:
- gcc
c_compiler_version:
- '9'
cdt_name:
- cos7
channel_sources:
- conda-forge,defaults
channel_targets:
Expand All @@ -13,7 +15,7 @@ cxx_compiler:
cxx_compiler_version:
- '9'
docker_image:
- condaforge/linux-anvil-ppc64le
- quay.io/condaforge/linux-anvil-ppc64le
fortran_compiler:
- gfortran
fortran_compiler_version:
Expand Down
33 changes: 33 additions & 0 deletions .ci_support/osx_arm64_.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
MACOSX_DEPLOYMENT_TARGET:
- '11.0'
c_compiler:
- clang
c_compiler_version:
- '11'
channel_sources:
- conda-forge/label/rust_dev,conda-forge,https://conda-web.anaconda.org/conda-forge
channel_targets:
- conda-forge main
cuda_compiler_version:
- None
cxx_compiler:
- clangxx
cxx_compiler_version:
- '11'
fortran_compiler:
- gfortran
fortran_compiler_version:
- '11'
macos_machine:
- arm64-apple-darwin20.0.0
pin_run_as_build:
zlib:
max_pin: x.x
target_platform:
- osx-arm64
zip_keys:
- - c_compiler_version
- cxx_compiler_version
- fortran_compiler_version
zlib:
- '1.2'
4 changes: 2 additions & 2 deletions .drone.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .scripts/run_osx_build.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build-locally.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions conda-forge.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
provider:
linux_aarch64: default
linux_ppc64le: default
build_platform: {osx_arm64: osx_64}
conda_forge_output_validation: true
provider: {linux_aarch64: default, linux_ppc64le: default}
test_on_native_only: true
110 changes: 107 additions & 3 deletions recipe/build-mpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ export CC=$(basename "$CC")
export CXX=$(basename "$CXX")
export FC=$(basename "$FC")

if [ $(uname) == Darwin ]; then
./autogen.pl --force

if [[ "$target_platform" == osx-* ]]; then
if [[ ! -z "$CONDA_BUILD_SYSROOT" ]]; then
export CFLAGS="$CFLAGS -isysroot $CONDA_BUILD_SYSROOT"
export CXXFLAGS="$CXXFLAGS -isysroot $CONDA_BUILD_SYSROOT"
fi
export LDFLAGS="$LDFLAGS -Wl,-rpath,$PREFIX/lib"
fi

if [ $cuda_compiler_version == '9.2' ]; then
Expand All @@ -26,6 +27,109 @@ else
build_with_cuda=""
fi

if [[ $CONDA_BUILD_CROSS_COMPILATION == "1" && $target_platform == osx-arm64 ]]; then
export ompi_cv_fortran_abstract=yes
export ompi_cv_fortran_alignment_CHARACTER=1
export ompi_cv_fortran_alignment_COMPLEX=4
export ompi_cv_fortran_alignment_COMPLEXp16=8
export ompi_cv_fortran_alignment_COMPLEXp8=4
export ompi_cv_fortran_alignment_DOUBLE_COMPLEX=8
export ompi_cv_fortran_alignment_DOUBLE_PRECISION=8
export ompi_cv_fortran_alignment_INTEGER=4
export ompi_cv_fortran_alignment_INTEGERp1=1
export ompi_cv_fortran_alignment_INTEGERp2=2
export ompi_cv_fortran_alignment_INTEGERp4=4
export ompi_cv_fortran_alignment_INTEGERp8=8
export ompi_cv_fortran_alignment_LOGICAL=4
export ompi_cv_fortran_alignment_LOGICALp1=1
export ompi_cv_fortran_alignment_LOGICALp2=2
export ompi_cv_fortran_alignment_LOGICALp4=4
export ompi_cv_fortran_alignment_LOGICALp8=8
export ompi_cv_fortran_alignment_REAL=4
export ompi_cv_fortran_alignment_REALp4=4
export ompi_cv_fortran_alignment_REALp8=8
export ompi_cv_fortran_alignment_type_test_mpi_handle_=' 8'
export ompi_cv_fortran_asynchronous=yes
export ompi_cv_fortran_c_funloc=yes
export ompi_cv_fortran_external_symbol='single underscore'
export ompi_cv_fortran_f08_assumed_rank=yes
export ompi_cv_fortran_handle_max=2147483647
export ompi_cv_fortran_have_CHARACTER=yes
export ompi_cv_fortran_have_COMPLEX=yes
export ompi_cv_fortran_have_COMPLEXp16=yes
export ompi_cv_fortran_have_COMPLEXp32=no
export ompi_cv_fortran_have_COMPLEXp4=no
export ompi_cv_fortran_have_COMPLEXp8=yes
export ompi_cv_fortran_have_DOUBLE_COMPLEX=yes
export ompi_cv_fortran_have_DOUBLE_PRECISION=yes
export ompi_cv_fortran_have_INTEGER=yes
export ompi_cv_fortran_have_INTEGERp16=yes
export ompi_cv_fortran_have_INTEGERp1=yes
export ompi_cv_fortran_have_INTEGERp2=yes
export ompi_cv_fortran_have_INTEGERp4=yes
export ompi_cv_fortran_have_INTEGERp8=yes
export ompi_cv_fortran_have_LOGICAL=yes
export ompi_cv_fortran_have_LOGICALp1=yes
export ompi_cv_fortran_have_LOGICALp2=yes
export ompi_cv_fortran_have_LOGICALp4=yes
export ompi_cv_fortran_have_LOGICALp8=yes
export ompi_cv_fortran_have_REAL=yes
export ompi_cv_fortran_have_REALp16=no
export ompi_cv_fortran_have_REALp2=no
export ompi_cv_fortran_have_REALp4=yes
export ompi_cv_fortran_have_REALp8=yes
export ompi_cv_fortran_have_bind_c_sub=yes
export ompi_cv_fortran_have_bind_c_type=yes
export ompi_cv_fortran_have_bind_c_type_name=yes
export ompi_cv_fortran_have_iso_c_binding=yes
export ompi_cv_fortran_have_iso_fortran_env=yes
export ompi_cv_fortran_have_storage_size=yes
export ompi_cv_fortran_ignore_tkr_data='1:type(*), dimension(*):!GCC$ ATTRIBUTES NO_ARG_CHECK ::'
export ompi_cv_fortran_interface=yes
export ompi_cv_fortran_kind_value_0=0
export ompi_cv_fortran_kind_value_C_DOUBLE=8
export ompi_cv_fortran_kind_value_C_DOUBLE_COMPLEX=8
export ompi_cv_fortran_kind_value_C_FLOAT=4
export ompi_cv_fortran_kind_value_C_FLOAT_COMPLEX=4
export ompi_cv_fortran_kind_value_C_INT16_T=2
export ompi_cv_fortran_kind_value_C_INT32_T=4
export ompi_cv_fortran_kind_value_C_INT64_T=8
export ompi_cv_fortran_kind_value_C_INT=4
export ompi_cv_fortran_kind_value_C_LONG_LONG=8
export ompi_cv_fortran_kind_value_C_SHORT=2
export ompi_cv_fortran_kind_value_C_SIGNED_CHAR=1
export ompi_cv_fortran_logical_array_correct=yes
export ompi_cv_fortran_max_array_rank=15
export ompi_cv_fortran_module_include_flag=-I
export ompi_cv_fortran_optional=yes
export ompi_cv_fortran_private=yes
export ompi_cv_fortran_procedure=yes
export ompi_cv_fortran_protected=yes
export ompi_cv_fortran_sizeof_CHARACTER=1
export ompi_cv_fortran_sizeof_COMPLEX=8
export ompi_cv_fortran_sizeof_COMPLEXp16=16
export ompi_cv_fortran_sizeof_COMPLEXp8=8
export ompi_cv_fortran_sizeof_DOUBLE_COMPLEX=16
export ompi_cv_fortran_sizeof_DOUBLE_PRECISION=8
export ompi_cv_fortran_sizeof_INTEGER=4
export ompi_cv_fortran_sizeof_INTEGERp16=16
export ompi_cv_fortran_sizeof_INTEGERp1=1
export ompi_cv_fortran_sizeof_INTEGERp2=2
export ompi_cv_fortran_sizeof_INTEGERp4=4
export ompi_cv_fortran_sizeof_INTEGERp8=8
export ompi_cv_fortran_sizeof_LOGICAL=4
export ompi_cv_fortran_sizeof_LOGICALp1=1
export ompi_cv_fortran_sizeof_LOGICALp2=2
export ompi_cv_fortran_sizeof_LOGICALp4=4
export ompi_cv_fortran_sizeof_LOGICALp8=8
export ompi_cv_fortran_sizeof_REAL=4
export ompi_cv_fortran_sizeof_REALp4=4
export ompi_cv_fortran_sizeof_REALp8=8
export ompi_cv_fortran_sizeof_type_test_mpi_handle_=4
export ompi_cv_fortran_true_value=1
export ompi_cv_fortran_use_only=yes
fi

export LIBRARY_PATH="$PREFIX/lib"

./configure --prefix=$PREFIX \
Expand Down Expand Up @@ -54,7 +158,7 @@ if [ ! -z "$build_with_cuda" ]; then
chmod +x $POST_LINK
fi

if [ $(uname) == Darwin ]; then
if [[ "$target_platform" == osx-* ]]; then
# workaround for open-mpi/ompi#7516
echo "setting the mca gds to hash..."
echo "gds = hash" >> $PREFIX/etc/pmix-mca-params.conf
Expand Down
3 changes: 3 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ outputs:
- {{ compiler('cxx') }}
- {{ compiler('fortran') }}
- {{ compiler('cuda') }} # [linux64]
- autoconf # [unix]
- automake # [unix]
- libtool # [unix]
- make # [unix]
- perl 5.26.2
host:
Expand Down