Skip to content

Commit

Permalink
Ensure cupy-core can be installed in CPU-only envs (#264)
Browse files Browse the repository at this point in the history
automerged PR by conda-forge/automerge-action
  • Loading branch information
github-actions[bot] committed Apr 26, 2024
2 parents 16a211e + 95197ff commit 93627ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% set name = "cupy" %}
{% set version = "13.1.0" %}
{% set sha256 = "5caf62288481a27713384523623045380ff42e618be4245f478238ed1786f32d" %}
{% set number = 2 %}
{% set number = 3 %}

{% set target_name = "x86_64-linux" %} # [linux64]
{% set target_name = "ppc64le-linux" %} # [ppc64le]
Expand Down Expand Up @@ -190,9 +190,10 @@ outputs:
- python
- {{ pin_compatible('fastrlock', max_pin='x.x') }}
- numpy ~=1.22
run_constrained:
# we move these here so that cupy-core can be installed in CPU-only envs
- cuda-version >={{ cuda_major }}.2,<{{ cuda_major+1 }} # [(cuda_compiler_version or "").startswith("11")]
- cuda-version >={{ cuda_major }}.0,<{{ cuda_major+1 }} # [(cuda_compiler_version or "").startswith("12")]
run_constrained:
# Only GLIBC_2.17 or older symbols present
- __glibc >=2.17 # [linux]
- cudatoolkit # [(cuda_compiler_version or "").startswith("11")]
Expand Down

0 comments on commit 93627ff

Please sign in to comment.