-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
meta.yaml
165 lines (155 loc) · 4.54 KB
/
meta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{% set version = "5.0.3" %}
{% set major = version.rpartition('.')[0] %}
{% set cuda_major = (cuda_compiler_version|default("11.8")).rpartition('.')[0] %}
{% set build = 2 %}
# give conda package a higher build number
{% if mpi_type == 'conda' %}
{% set build = build + 100 %}
{% endif %}
package:
# must not match any outputs for requirements to be handled correctly
name: openmpi-mpi
version: {{ version }}
source:
fn: openmpi-{{ version }}.tar.bz2
url: https://www.open-mpi.org/software/ompi/v{{ major }}/downloads/openmpi-{{ version }}.tar.bz2
sha256: 990582f206b3ab32e938aa31bbf07c639368e4405dca196fabe7f0f76eeda90b
build:
number: {{ build }}
skip: true # [win]
skip: true # [linux and cuda_compiler_version != "11.8"]
outputs:
{% if mpi_type == 'conda' %}
- name: openmpi
script: build-mpi.sh
build:
run_exports:
- {{ pin_subpackage('openmpi', min_pin='x.x.x', max_pin='x') }}
ignore_run_exports:
- ucx # [linux]
ignore_run_exports_from:
- {{ compiler('cuda') }} # [cuda_compiler != "None"]
requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{ compiler('cuda') }} # [cuda_compiler != "None"]
- {{ compiler('fortran') }}
- {{ stdlib('c') }}
#- autoconf # [unix]
#- automake # [unix]
- libtool # [unix]
- make # [unix]
host:
#- openpmix
#- prrte
- libhwloc
- libevent
- libnl # [linux]
- zlib
- ucx # [linux]
- cuda-version {{ cuda_compiler_version }} # [cuda_compiler != "None"]
run:
- mpi 1.0 openmpi
#- openpmix
#- prrte
run_constrained:
- {{ pin_compatible("ucx", max_pin="x.x") }} # [linux]
# Open MPI only uses CUDA Driver APIs, set the minimal driver version
- __cuda >= {{ cuda_major ~ ".0" }} # [cuda_compiler != "None"]
# Ensure a consistent CUDA environment
- cuda-version >= {{ cuda_major ~ ".0" }} # [cuda_compiler != "None"]
test:
script: run_test.sh
files:
- tests/helloworld.sh
- name: openmpi-mpicc
build:
script:
- echo 'ok' # [not osx]
# make CONDA_BUILD_SYSROOT a 'used variable'
# so that conda-build knows to pass it to the test env
- echo "{{ CONDA_BUILD_SYSROOT }}" # [osx]
requirements:
build:
- {{ stdlib('c') }}
run:
- {{ pin_subpackage('openmpi', exact=True) }}
# host C compilers work fine (better) on mac
- {{ compiler('c') }}
test:
script: run_test.sh
files:
- tests/helloworld.c
- name: openmpi-mpicxx
build:
script:
- echo 'ok' # [not osx]
# make CONDA_BUILD_SYSROOT a 'used variable'
# so that conda-build knows to pass it to the test env
- echo "{{ CONDA_BUILD_SYSROOT }}" # [osx]
requirements:
build:
- {{ stdlib('c') }}
run:
- {{ pin_subpackage('openmpi', exact=True) }}
# host C compilers work fine (better) on mac
- {{ compiler('cxx') }}
test:
script: run_test.sh
files:
- tests/helloworld.cxx
- name: openmpi-mpifort
build:
script:
- echo 'ok' # [not osx]
# make CONDA_BUILD_SYSROOT a 'used variable'
# so that conda-build knows to pass it to the test env
- echo "{{ CONDA_BUILD_SYSROOT }}" # [osx]
requirements:
build:
- {{ stdlib('c') }}
run:
- {{ pin_subpackage('openmpi', exact=True) }}
- {{ compiler('fortran') }}
test:
script: run_test.sh
files:
- tests/helloworld.f
- tests/helloworld.f90
{% else %}
- name: openmpi
build:
string: {{ mpi_type }}_{{ build }}
track_features:
- openmpi_{{ mpi_type }}
requirements:
host: []
run:
- mpi 1.0 openmpi
test:
commands:
- echo "It works!"
{% endif %}
about:
home: https://www.open-mpi.org/
license: BSD-3-Clause
license_family: BSD
license_file: LICENSE
summary: An open source Message Passing Interface implementation.
description: |
The Open MPI Project is an open source Message Passing Interface
implementation that is developed and maintained by a consortium of academic,
research, and industry partners.
doc_url: https://www.open-mpi.org/doc/
dev_url: https://github.com/open-mpi/ompi
extra:
recipe-maintainers:
- astrofrog
- bekozi
- dalcinl
- leofang
- minrk
- msarahan
- ocefpaf
- beckermr