Skip to content

Commit b41ff3e

Browse files
committed
recipe: Update build and test scripts
1 parent af96fa9 commit b41ff3e

File tree

3 files changed

+19
-22
lines changed

3 files changed

+19
-22
lines changed

recipe/build-mpi.sh

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
#!/bin/bash
22

3-
# unset unused old fortran compiler vars
4-
unset F90 F77
5-
63
set -ex
74

8-
export FCFLAGS="$FFLAGS"
9-
105
# avoid absolute-paths in compilers
116
export CC=$(basename "$CC")
127
export CXX=$(basename "$CXX")
138
export FC=$(basename "$FC")
149

15-
./autogen.pl --force
10+
# unset unused old Fortran compiler vars
11+
unset FFLAGS F77 F90 F95
1612

1713
if [[ "$target_platform" == osx-* ]]; then
1814
if [[ ! -z "$CONDA_BUILD_SYSROOT" ]]; then
@@ -134,13 +130,6 @@ fi
134130

135131
export LIBRARY_PATH="$PREFIX/lib"
136132

137-
## Replaced by the patch from open-mpi/ompi#8361
138-
# if [[ "$target_platform" == *-64 ]]; then
139-
# # -march=skylake-avx512 -march=nocona invalidates AVX512 flag. Remove -march flags and -mtune flags
140-
# export CFLAGS=$(echo $CFLAGS | sed 's/-march=[a-z0-9\-]*//g')
141-
# export CFLAGS=$(echo $CFLAGS | sed 's/-mtune=[a-z0-9\-]*//g')
142-
# fi
143-
144133
./configure --prefix=$PREFIX \
145134
--disable-dependency-tracking \
146135
--enable-mpi-fortran \

recipe/meta.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,19 @@ outputs:
4141
- automake # [unix]
4242
- libtool # [unix]
4343
- make # [unix]
44-
- perl 5.26.2
4544
host:
45+
#- hwloc
46+
#- openpmix
47+
#- prrte
48+
- libevent
4649
- zlib
4750
- ucx # [enable_cuda]
4851
- ucx-proc =*=gpu # [enable_cuda]
4952
run:
53+
#- hwloc
54+
#- openpmix
55+
#- prrte
56+
- libevent
5057
- zlib
5158
- mpi 1.0 openmpi
5259
run_constrained:
@@ -55,7 +62,6 @@ outputs:
5562
test:
5663
script: run_test.sh
5764
files:
58-
- mpiexec.sh
5965
- tests/helloworld.sh
6066

6167
- name: openmpi-mpicc
@@ -73,7 +79,6 @@ outputs:
7379
test:
7480
script: run_test.sh
7581
files:
76-
- mpiexec.sh
7782
- tests/helloworld.c
7883

7984
- name: openmpi-mpicxx
@@ -91,7 +96,6 @@ outputs:
9196
test:
9297
script: run_test.sh
9398
files:
94-
- mpiexec.sh
9599
- tests/helloworld.cxx
96100

97101
- name: openmpi-mpifort
@@ -108,7 +112,6 @@ outputs:
108112
test:
109113
script: run_test.sh
110114
files:
111-
- mpiexec.sh
112115
- tests/helloworld.f
113116
- tests/helloworld.f90
114117
{% else %}

recipe/run_test.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
#!/bin/bash
22
set -ex
33

4-
export OMPI_MCA_plm=isolated
5-
export OMPI_MCA_btl_vader_single_copy_mechanism=none
6-
export OMPI_MCA_rmaps_base_oversubscribe=yes
7-
MPIEXEC="${PWD}/mpiexec.sh"
4+
export OMPI_MCA_pml=ob1
5+
export OMPI_MCA_btl=sm,self
6+
export OMPI_MCA_rmaps_default_mapping_policy=:oversubscribe
7+
export OMPI_ALLOW_RUN_AS_ROOT=1
8+
export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
9+
MPIEXEC="mpiexec"
810

911
pushd "tests"
1012

1113
if [[ $PKG_NAME == "openmpi" ]]; then
1214
command -v ompi_info
1315
ompi_info
1416

17+
command -v prte_info
18+
prte_info
19+
1520
if [[ ! -z "$(conda list | grep ucx)" ]]; then
1621
echo "Improper UCX dependency!"
1722
exit 1

0 commit comments

Comments
 (0)