Skip to content

Commit

Permalink
add sysroot constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk authored Nov 27, 2024
1 parent 2b5aa88 commit 108adff
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ requirements:
- pytorch-cpu ==99999999 # [cuda_compiler_version != "None"]
- pytorch {{ version }} cuda{{ cuda_compiler_version | replace('.', '') }}_*_{{ PKG_BUILDNUM }} # [cuda_compiler_version != "None"]
- pytorch {{ version }} cpu_{{ blas_impl }}_*_{{ PKG_BUILDNUM }} # [cuda_compiler_version == "None"]
# See following link for sysroot consraint addition
# https://github.com/conda-forge/pytorch-cpu-feedstock/pull/293#issuecomment-2503611320
# 2024/12 hmaarrfk's summary:
# The medium term solution is to add such a constraint to libcufile
# The long term solution is to add such a constraint to all packages
# that depend on a specific sysroot at building.
- sysroot_{{ target_platform }} >={{ c_stdlib_version }}

# these tests are for the libtorch output below, but due to
# a particularity of conda-build, that output is defined in
Expand Down

0 comments on commit 108adff

Please sign in to comment.