Skip to content

Commit

Permalink
Merge pull request #58 from conda-forge-admin/conda_forge_admin_34
Browse files Browse the repository at this point in the history
Cross-compile `linux_aarch64` & `linux_ppc64le`
  • Loading branch information
jakirkham authored Dec 19, 2023
2 parents 8be616d + bd30a28 commit 16af942
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 32 deletions.
16 changes: 8 additions & 8 deletions .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cxx_compiler:
cxx_compiler_version:
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-aarch64
- quay.io/condaforge/linux-anvil-cos7-x86_64
pin_run_as_build:
python:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cxx_compiler:
cxx_compiler_version:
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-aarch64
- quay.io/condaforge/linux-anvil-cos7-x86_64
pin_run_as_build:
python:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cxx_compiler:
cxx_compiler_version:
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-aarch64
- quay.io/condaforge/linux-anvil-cos7-x86_64
pin_run_as_build:
python:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cxx_compiler:
cxx_compiler_version:
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-aarch64
- quay.io/condaforge/linux-anvil-cos7-x86_64
pin_run_as_build:
python:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cxx_compiler:
cxx_compiler_version:
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-ppc64le
- quay.io/condaforge/linux-anvil-cos7-x86_64
pin_run_as_build:
python:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cxx_compiler:
cxx_compiler_version:
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-ppc64le
- quay.io/condaforge/linux-anvil-cos7-x86_64
pin_run_as_build:
python:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cxx_compiler:
cxx_compiler_version:
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-ppc64le
- quay.io/condaforge/linux-anvil-cos7-x86_64
pin_run_as_build:
python:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cxx_compiler:
cxx_compiler_version:
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-ppc64le
- quay.io/condaforge/linux-anvil-cos7-x86_64
pin_run_as_build:
python:
min_pin: x.x
Expand Down
6 changes: 3 additions & 3 deletions .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .scripts/run_win_build.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions conda-forge.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
bot:
abi_migration_branches:
- 11.8
build_platform:
linux_aarch64: linux_64
linux_ppc64le: linux_64
conda_build:
pkg_format: '2'
conda_forge_output_validation: true
Expand Down
24 changes: 13 additions & 11 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,21 @@ source:
sha256: 7df0f84c4b6210112353374a7d992bfd5bba9c97358b39ea03b61bd634ce9c8a

build:
number: 3
number: 4
# Cython 0.29.x seems not to be fully compatible with Python 3.12, skipping for now.
# This can be removed in a later CUDA Python that supports Cython 3.x.
# xref: https://github.com/conda-forge/cuda-python-feedstock/issues/57
skip: true # [osx or cuda_compiler_version != "12.0" or py == 312]
skip: true # [py == 312]
{% if not (environ.get("cuda_compiler_version")|string()).startswith(major_version|string()) %}
skip: true
{% endif %}
script:
- set "INCLUDE=%INCLUDE%;%BUILD_PREFIX%\Library\include" # [win64]
- {{ PYTHON }} -m pip install . --no-deps -vv
script_env:
# Ensure that CUDA includes can be found by the host compiler
- CUDA_HOME="${BUILD_PREFIX}/targets/{{ target_name }}" # [linux]
- CUDA_HOME=%BUILD_PREFIX%\Library # [win64]
- CUDA_HOME="${PREFIX}/targets/{{ target_name }}" # [linux]
- CUDA_HOME=%PREFIX%\Library # [win64]
run_exports:
- {{ pin_subpackage('cuda-python', min_pin='x', max_pin='x') }}
ignore_run_exports_from:
Expand All @@ -38,13 +42,11 @@ requirements:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{ compiler('cuda') }}
# The packages with CUDA headers need to be added to "build" so that
# cuda-python can find and parse the headers. The parsing code in
# cuda-python doesn't support splayed layouts, i.e. packages split between
# "build" and "host", because $CUDA_HOME can only point to build or host.
- cuda-nvrtc-dev
- cuda-profiler-api
- cuda-version {{ major_version }}.{{ minor_version }}
- sysroot_{{ target_platform }} 2.17 # [linux]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- python # [build_platform != target_platform]
- cython <3 # [build_platform != target_platform]
host:
- cuda-cudart-dev
- cuda-nvrtc-dev
Expand All @@ -54,7 +56,7 @@ requirements:
- pyclibrary
- python
- setuptools
- cuda-version {{ major_version }}
- cuda-version {{ major_version }}.{{ minor_version }}
run:
- python
- {{ pin_compatible('cuda-version', min_pin='x', max_pin='x') }}
Expand Down

0 comments on commit 16af942

Please sign in to comment.