Skip to content

Commit 1913347

Browse files
committed
put ucx dependency in run_constrained
ignoring run_exports
1 parent 2637cd7 commit 1913347

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

recipe/meta.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% set version = "4.1.3" %}
22
{% set major = version.rpartition('.')[0] %}
3-
{% set build = 3 %}
3+
{% set build = 4 %}
44

55
# give conda package a higher build number
66
{% if mpi_type == 'conda' %}
@@ -39,6 +39,8 @@ outputs:
3939
build:
4040
run_exports:
4141
- {{ pin_subpackage('openmpi', min_pin='x.x.x', max_pin='x') }}
42+
ignore_run_exports:
43+
- ucx # [enable_cuda]
4244
script_env:
4345
- CUDA_HOME # [enable_cuda]
4446
requirements:
@@ -60,7 +62,7 @@ outputs:
6062
- mpi 1.0 openmpi
6163
run_constrained:
6264
- cudatoolkit >= {{ cudatoolkit }} # [enable_cuda]
63-
- ucx # [enable_cuda]
65+
- {{ pin_compatible("ucx", max_pin="x.x") }} # [enable_cuda]
6466
test:
6567
script: run_test.sh
6668
files:

recipe/run_test.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ if [[ $PKG_NAME == "openmpi" ]]; then
1212
command -v ompi_info
1313
ompi_info
1414

15+
if [[ ! -z "$(conda list | grep ucx)" ]]; then
16+
echo "Improper UCX dependency!"
17+
exit 1
18+
fi
19+
if [[ ! -z "$(conda list | grep cudatoolkit)" ]]; then
20+
echo "Improper cuda dependency!"
21+
exit 1
22+
fi
23+
1524
command -v mpiexec
1625
which mpiexec
1726
$MPIEXEC --help

0 commit comments

Comments
 (0)