From 7c2af218a9dcf9744febca7e924b64b65adc38fc Mon Sep 17 00:00:00 2001 From: jakirkham Date: Tue, 20 Feb 2024 14:52:44 -0800 Subject: [PATCH 1/2] Require CUDA 11 compiler to build `ucxx` Previously the CUDA compiler was only used by `ucxx` for CUDA 12. This makes sure it is used for CUDA 11 too to be consistent. --- conda/recipes/ucxx/meta.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conda/recipes/ucxx/meta.yaml b/conda/recipes/ucxx/meta.yaml index e732ebe6..bddf6269 100644 --- a/conda/recipes/ucxx/meta.yaml +++ b/conda/recipes/ucxx/meta.yaml @@ -206,7 +206,9 @@ outputs: - cmake - {{ compiler('c') }} - {{ compiler('cxx') }} - {% if cuda_major != "11" %} + {% if cuda_major == "11" %} + - {{ compiler('cuda11') }} ={{ cuda_version }} + {% else %} - {{ compiler('cuda') }} {% endif %} - cuda-version ={{ cuda_version }} From 58c6fe40f97e69adce9bfb623bb32d1786c14744 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Tue, 20 Feb 2024 14:56:52 -0800 Subject: [PATCH 2/2] `ignore_run_exports_from` CUDA compiler in `ucxx` Having the CUDA compiler as a build dependency in `ucxx` means that some requirements are added to `ucxx` at runtime (like a `cuda-version` minimum). However we know we can have a more lax constraint on these dependencies at runtime. So ignore `run_exports` that the CUDA compiler would add. --- conda/recipes/ucxx/meta.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conda/recipes/ucxx/meta.yaml b/conda/recipes/ucxx/meta.yaml index bddf6269..0db56b71 100644 --- a/conda/recipes/ucxx/meta.yaml +++ b/conda/recipes/ucxx/meta.yaml @@ -200,6 +200,11 @@ outputs: number: {{ GIT_DESCRIBE_NUMBER }} string: cuda{{ cuda_major }}_py{{ python }}_{{ date_string }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }} ignore_run_exports_from: + {% if cuda_major == "11" %} + - {{ compiler('cuda11') }} + {% else %} + - {{ compiler('cuda') }} + {% endif %} - ucx requirements: build: