-
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathrecipe.yaml
More file actions
204 lines (193 loc) · 5.64 KB
/
recipe.yaml
File metadata and controls
204 lines (193 loc) · 5.64 KB
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
schema_version: 1
context:
version: 5.0.8
build: 110
mpi_type: ${{ mpi_type | default('conda') }}
major_minor: ${{ (version | split('.'))[:2] | join('.') }}
cuda_compiler_version: ${{ cuda_compiler_version | default('None') }}
with_cuda: ${{ 'true' if cuda_compiler_version != 'None' else '' }}
cuda_major: >-
${{
cuda_compiler_version | split('.') | first
if with_cuda
else "0"
}}
string_prefix: ${{ 'external_' if mpi_type == 'external' else '' }}
recipe:
name: openmpi
version: ${{ version }}
source:
url: https://www.open-mpi.org/software/ompi/v${{ major_minor }}/downloads/openmpi-${{ version }}.tar.bz2
sha256: 53131e1a57e7270f645707f8b0b65ba56048f5b5ac3f68faabed3eb0d710e449
build:
number: ${{ build }}
# this needs to be duplicated into output skips
# until https://github.com/prefix-dev/rattler-build/issues/1918 is fixed
skip: win or (linux and cuda_compiler_version != cuda_compiler_version_min)
outputs:
- package:
name: openmpi
build:
script: build-mpi
string: ${{ string_prefix }}h${{ hash }}_${{ build }}
requirements:
run_exports:
- if: mpi_type != 'external'
then: ${{ pin_subpackage('openmpi', lower_bound='x.x.x', upper_bound='x') }}
build:
- if: mpi_type != 'external'
then:
- ${{ compiler('c') }}
- ${{ compiler('cxx') }}
- if: with_cuda
then:
- ${{ compiler('cuda') }}
- ${{ compiler('fortran') }}
- ${{ stdlib('c') }}
- pkg-config
- make
- shellcheck
host:
- if: mpi_type != 'external'
then:
- libevent
- libfabric-devel ${{ libfabric }}.*
- libhwloc
- libpmix-devel
- zlib
- if: linux
then:
- libnl
- if: linux and not ppc64le
then:
- ucc
- ucx
- if: with_cuda
then:
- cuda-version ${{ cuda_compiler_version }}.*
run:
- mpi 1.0.* openmpi
run_constraints:
- if: mpi_type != 'external'
then:
# Open MPI only uses CUDA Driver APIs, set the minimal driver version
- if: with_cuda
then:
- __cuda >= ${{ cuda_major ~ ".0" }}
# Ensure a consistent CUDA environment
- cuda-version >= ${{ cuda_major ~ ".0" }}
# conflict with prrte
# openmpi (starting with 6)
# bundles its own fork of prrte
- libprrte ==0.0.0
ignore_run_exports:
from_package:
- if: with_cuda
then:
- ${{ compiler("cuda") | split | first }}
tests:
- if: mpi_type == 'external'
then:
- script:
- echo 'ok'
- if: mpi_type == 'conda'
then:
- package_contents:
files:
not_exists:
- share/doc/openmpi
- share/man/man3/MPI_Init.3
- script:
file: run_test
requirements:
run:
- if: linux
then:
- patchelf
files:
recipe:
- tests/helloworld.sh
- package:
name: openmpi-mpicc
build:
skip: mpi_type == 'external' or win or (linux and cuda_compiler_version != cuda_compiler_version_min)
script:
- echo 'ok'
requirements:
build:
- ${{ stdlib('c') }}
run:
- ${{ pin_subpackage('openmpi', exact=True) }}
- ${{ compiler('c') | replace(' =', '>=') }}
tests:
- if: mpi_type == 'conda'
then:
- script:
file: run_test
files:
recipe:
- tests/helloworld.c
- package:
name: openmpi-mpicxx
build:
skip: mpi_type == 'external' or win or (linux and cuda_compiler_version != cuda_compiler_version_min)
script:
- echo 'ok'
requirements:
build:
- ${{ stdlib('c') }}
run:
- ${{ pin_subpackage('openmpi', exact=True) }}
- ${{ compiler('cxx') | replace(' =', '>=') }}
tests:
- if: mpi_type == 'conda'
then:
- script:
file: run_test
files:
recipe:
- tests/helloworld.cxx
- package:
name: openmpi-mpifort
build:
skip: mpi_type == 'external' or win or (linux and cuda_compiler_version != cuda_compiler_version_min)
script:
- echo 'ok'
requirements:
build:
- ${{ stdlib('c') }}
run:
- ${{ pin_subpackage('openmpi', exact=True) }}
- ${{ compiler('fortran') | replace(' =', '>=') }}
tests:
- if: mpi_type == 'conda'
then:
- script:
file: run_test
files:
recipe:
- tests/helloworld.f
- tests/helloworld.f90
about:
homepage: 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.
documentation: https://www.open-mpi.org/doc/
repository: https://github.com/open-mpi/ompi
extra:
recipe-maintainers:
- astrofrog
- bekozi
- dalcinl
- leofang
- minrk
- msarahan
- ocefpaf
- beckermr
- j34ni