From 64865330d3422962752538b821410c059a08eece Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Mon, 29 Dec 2025 13:00:40 -0800 Subject: [PATCH 1/4] build non-CUDA builds on CPU agents --- recipe/bld.bat | 3 +++ recipe/build.sh | 3 +++ recipe/conda_build_config.yaml | 1 + recipe/meta.yaml | 17 +++++++++++++++++ 4 files changed, 24 insertions(+) diff --git a/recipe/bld.bat b/recipe/bld.bat index c4750dc4..9dfee0bd 100644 --- a/recipe/bld.bat +++ b/recipe/bld.bat @@ -1,6 +1,9 @@ @echo On setlocal enabledelayedexpansion +:: intentional abort +exit 1 + @REM remove pyproject.toml to avoid installing deps from pip if EXIST pyproject.toml ( DEL pyproject.toml diff --git a/recipe/build.sh b/recipe/build.sh index dd24fc2d..ed02c7ed 100644 --- a/recipe/build.sh +++ b/recipe/build.sh @@ -2,6 +2,9 @@ set -ex +# intentional abort +exit 1 + echo "#########################################################################" echo "Building ${PKG_NAME} (py: ${PY_VER}) using BLAS implementation $blas_impl" echo "#########################################################################" diff --git a/recipe/conda_build_config.yaml b/recipe/conda_build_config.yaml index 1ce6c8f1..0b1161e4 100644 --- a/recipe/conda_build_config.yaml +++ b/recipe/conda_build_config.yaml @@ -27,6 +27,7 @@ blas_impl: # https://github.com/conda-forge/.cirun github_actions_labels: +- cirun-openstack-cpu-xlarge # [linux] - cirun-openstack-gpu-2xlarge # [linux] - cirun-macos-m4-large # [osx] - cirun-azure-windows-4xlarge # [win] diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 0767a128..9302f130 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -13,6 +13,19 @@ {% set build = build + 100 %} {% endif %} +# CUDA builds on GPU agents, non-CUDA builds on CPU agents; these gymnastics would be avoidable with +# https://github.com/conda-forge/conda-forge-pinning-feedstock/pull/6910 +{% set diagonalize = False %} +{% if False %} +{% elif target_platform.startswith("linux") and cuda_compiler_version == "None" and "gpu" in github_actions_labels %} + {% set diagonalize = True %} +{% elif target_platform.startswith("linux") and cuda_compiler_version != "None" and "cpu" in github_actions_labels %} + {% set diagonalize = True %} +{% endif %} + +# ensure github_actions_labels appears "used" from POV of conda-{build,smithy} +# [github_actions_labels] + # see https://github.com/pytorch/pytorch/blame/v{{ version }}/.ci/docker/ci_commit_pins/triton.txt # pytorch and triton are released in tandem, see notes in their release process # https://github.com/pytorch/pytorch/blob/main/RELEASE.md#triton-dependency-for-the-release @@ -66,6 +79,10 @@ build: {% else %} skip: true # [is_rc] {% endif %} + {% if diagonalize %} + # CUDA builds on GPU agents, non-CUDA builds on CPU agents; see above + skip: true + {% endif %} string: cuda{{ cuda_compiler_version | replace('.', '') }}_{{ blas_impl }}_h{{ PKG_HASH }}_{{ build }} # [cuda_compiler_version != "None"] string: cpu_{{ blas_impl }}_h{{ PKG_HASH }}_{{ build }} # [cuda_compiler_version == "None"] detect_binary_files_with_prefix: false From 0b36150562b30382f5cca21bd4176ce48ec2101a Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 29 Dec 2025 13:02:21 -0800 Subject: [PATCH 2/4] MNT: Re-rendered with conda-smithy 3.54.2.dev1+gec879dc6 and conda-forge-pinning 2025.12.29.20.21.59 Other tools: - conda-build 25.9.0 - rattler-build 0.47.0 - rattler-build-conda-compat 1.4.5 --- ...cirun-openstack-gpu-2xlargeis_rcTrue.yaml} | 0 ...scirun-openstack-cpu-xlargeis_rcTrue.yaml} | 2 +- ...cirun-openstack-gpu-2xlargeis_rcTrue.yaml} | 0 ...scirun-openstack-cpu-xlargeis_rcTrue.yaml} | 2 +- ...cirun-openstack-gpu-2xlargeis_rcTrue.yaml} | 0 ...scirun-openstack-cpu-xlargeis_rcTrue.yaml} | 2 +- .ci_support/migrations/fmt12_spdlog116.yaml | 10 ----- .github/workflows/conda-build.yml | 39 +++++++++---------- 8 files changed, 21 insertions(+), 34 deletions(-) rename .ci_support/{linux_64_blas_implgenericchannel_targetsconda-forge_pytorch_rccuda_compiler_version12.9is_rcTrue.yaml => linux_64_blas_implgenericchannel_targetsconda-forge_pytorch_rccuda_compiler_version12.9github_actions_labelscirun-openstack-gpu-2xlargeis_rcTrue.yaml} (100%) rename .ci_support/{linux_64_blas_implgenericchannel_targetsconda-forge_pytorch_rccuda_compiler_versionNoneis_rcTrue.yaml => linux_64_blas_implgenericchannel_targetsconda-forge_pytorch_rccuda_compiler_versionNonegithub_actions_labelscirun-openstack-cpu-xlargeis_rcTrue.yaml} (97%) rename .ci_support/{linux_64_blas_implmklchannel_targetsconda-forge_pytorch_rccuda_compiler_version12.9is_rcTrue.yaml => linux_64_blas_implmklchannel_targetsconda-forge_pytorch_rccuda_compiler_version12.9github_actions_labelscirun-openstack-gpu-2xlargeis_rcTrue.yaml} (100%) rename .ci_support/{linux_64_blas_implmklchannel_targetsconda-forge_pytorch_rccuda_compiler_versionNoneis_rcTrue.yaml => linux_64_blas_implmklchannel_targetsconda-forge_pytorch_rccuda_compiler_versionNonegithub_actions_labelscirun-openstack-cpu-xlargeis_rcTrue.yaml} (97%) rename .ci_support/{linux_aarch64_channel_targetsconda-forge_pytorch_rccuda_compiler_version12.9is_rcTrue.yaml => linux_aarch64_channel_targetsconda-forge_pytorch_rccuda_compiler_version12.9github_actions_labelscirun-openstack-gpu-2xlargeis_rcTrue.yaml} (100%) rename .ci_support/{linux_aarch64_channel_targetsconda-forge_pytorch_rccuda_compiler_versionNoneis_rcTrue.yaml => linux_aarch64_channel_targetsconda-forge_pytorch_rccuda_compiler_versionNonegithub_actions_labelscirun-openstack-cpu-xlargeis_rcTrue.yaml} (97%) delete mode 100644 .ci_support/migrations/fmt12_spdlog116.yaml diff --git a/.ci_support/linux_64_blas_implgenericchannel_targetsconda-forge_pytorch_rccuda_compiler_version12.9is_rcTrue.yaml b/.ci_support/linux_64_blas_implgenericchannel_targetsconda-forge_pytorch_rccuda_compiler_version12.9github_actions_labelscirun-openstack-gpu-2xlargeis_rcTrue.yaml similarity index 100% rename from .ci_support/linux_64_blas_implgenericchannel_targetsconda-forge_pytorch_rccuda_compiler_version12.9is_rcTrue.yaml rename to .ci_support/linux_64_blas_implgenericchannel_targetsconda-forge_pytorch_rccuda_compiler_version12.9github_actions_labelscirun-openstack-gpu-2xlargeis_rcTrue.yaml diff --git a/.ci_support/linux_64_blas_implgenericchannel_targetsconda-forge_pytorch_rccuda_compiler_versionNoneis_rcTrue.yaml b/.ci_support/linux_64_blas_implgenericchannel_targetsconda-forge_pytorch_rccuda_compiler_versionNonegithub_actions_labelscirun-openstack-cpu-xlargeis_rcTrue.yaml similarity index 97% rename from .ci_support/linux_64_blas_implgenericchannel_targetsconda-forge_pytorch_rccuda_compiler_versionNoneis_rcTrue.yaml rename to .ci_support/linux_64_blas_implgenericchannel_targetsconda-forge_pytorch_rccuda_compiler_versionNonegithub_actions_labelscirun-openstack-cpu-xlargeis_rcTrue.yaml index aa311390..d3b10fa2 100644 --- a/.ci_support/linux_64_blas_implgenericchannel_targetsconda-forge_pytorch_rccuda_compiler_versionNoneis_rcTrue.yaml +++ b/.ci_support/linux_64_blas_implgenericchannel_targetsconda-forge_pytorch_rccuda_compiler_versionNonegithub_actions_labelscirun-openstack-cpu-xlargeis_rcTrue.yaml @@ -27,7 +27,7 @@ docker_image: fmt: - '12.0' github_actions_labels: -- cirun-openstack-gpu-2xlarge +- cirun-openstack-cpu-xlarge is_rc: - 'True' libabseil: diff --git a/.ci_support/linux_64_blas_implmklchannel_targetsconda-forge_pytorch_rccuda_compiler_version12.9is_rcTrue.yaml b/.ci_support/linux_64_blas_implmklchannel_targetsconda-forge_pytorch_rccuda_compiler_version12.9github_actions_labelscirun-openstack-gpu-2xlargeis_rcTrue.yaml similarity index 100% rename from .ci_support/linux_64_blas_implmklchannel_targetsconda-forge_pytorch_rccuda_compiler_version12.9is_rcTrue.yaml rename to .ci_support/linux_64_blas_implmklchannel_targetsconda-forge_pytorch_rccuda_compiler_version12.9github_actions_labelscirun-openstack-gpu-2xlargeis_rcTrue.yaml diff --git a/.ci_support/linux_64_blas_implmklchannel_targetsconda-forge_pytorch_rccuda_compiler_versionNoneis_rcTrue.yaml b/.ci_support/linux_64_blas_implmklchannel_targetsconda-forge_pytorch_rccuda_compiler_versionNonegithub_actions_labelscirun-openstack-cpu-xlargeis_rcTrue.yaml similarity index 97% rename from .ci_support/linux_64_blas_implmklchannel_targetsconda-forge_pytorch_rccuda_compiler_versionNoneis_rcTrue.yaml rename to .ci_support/linux_64_blas_implmklchannel_targetsconda-forge_pytorch_rccuda_compiler_versionNonegithub_actions_labelscirun-openstack-cpu-xlargeis_rcTrue.yaml index e413beb1..b33f2a00 100644 --- a/.ci_support/linux_64_blas_implmklchannel_targetsconda-forge_pytorch_rccuda_compiler_versionNoneis_rcTrue.yaml +++ b/.ci_support/linux_64_blas_implmklchannel_targetsconda-forge_pytorch_rccuda_compiler_versionNonegithub_actions_labelscirun-openstack-cpu-xlargeis_rcTrue.yaml @@ -27,7 +27,7 @@ docker_image: fmt: - '12.0' github_actions_labels: -- cirun-openstack-gpu-2xlarge +- cirun-openstack-cpu-xlarge is_rc: - 'True' libabseil: diff --git a/.ci_support/linux_aarch64_channel_targetsconda-forge_pytorch_rccuda_compiler_version12.9is_rcTrue.yaml b/.ci_support/linux_aarch64_channel_targetsconda-forge_pytorch_rccuda_compiler_version12.9github_actions_labelscirun-openstack-gpu-2xlargeis_rcTrue.yaml similarity index 100% rename from .ci_support/linux_aarch64_channel_targetsconda-forge_pytorch_rccuda_compiler_version12.9is_rcTrue.yaml rename to .ci_support/linux_aarch64_channel_targetsconda-forge_pytorch_rccuda_compiler_version12.9github_actions_labelscirun-openstack-gpu-2xlargeis_rcTrue.yaml diff --git a/.ci_support/linux_aarch64_channel_targetsconda-forge_pytorch_rccuda_compiler_versionNoneis_rcTrue.yaml b/.ci_support/linux_aarch64_channel_targetsconda-forge_pytorch_rccuda_compiler_versionNonegithub_actions_labelscirun-openstack-cpu-xlargeis_rcTrue.yaml similarity index 97% rename from .ci_support/linux_aarch64_channel_targetsconda-forge_pytorch_rccuda_compiler_versionNoneis_rcTrue.yaml rename to .ci_support/linux_aarch64_channel_targetsconda-forge_pytorch_rccuda_compiler_versionNonegithub_actions_labelscirun-openstack-cpu-xlargeis_rcTrue.yaml index 1c7ea27a..48e44edf 100644 --- a/.ci_support/linux_aarch64_channel_targetsconda-forge_pytorch_rccuda_compiler_versionNoneis_rcTrue.yaml +++ b/.ci_support/linux_aarch64_channel_targetsconda-forge_pytorch_rccuda_compiler_versionNonegithub_actions_labelscirun-openstack-cpu-xlargeis_rcTrue.yaml @@ -27,7 +27,7 @@ docker_image: fmt: - '12.0' github_actions_labels: -- cirun-openstack-gpu-2xlarge +- cirun-openstack-cpu-xlarge is_rc: - 'True' libabseil: diff --git a/.ci_support/migrations/fmt12_spdlog116.yaml b/.ci_support/migrations/fmt12_spdlog116.yaml deleted file mode 100644 index 87c31a2b..00000000 --- a/.ci_support/migrations/fmt12_spdlog116.yaml +++ /dev/null @@ -1,10 +0,0 @@ -__migrator: - build_number: 1 - commit_message: Rebuild for fmt 12.0 and spdlog 1.16 - kind: version - migration_number: 1 -migrator_ts: 1760196591.995821 -fmt: -- '12.0' -spdlog: -- '1.16' diff --git a/.github/workflows/conda-build.yml b/.github/workflows/conda-build.yml index d3fce267..e508c9b3 100644 --- a/.github/workflows/conda-build.yml +++ b/.github/workflows/conda-build.yml @@ -21,48 +21,45 @@ jobs: fail-fast: false matrix: include: - - CONFIG: linux_64_blas_implgenericchannel_targetsconda-forge_pytorch_rccuda_compiler_version12.9is_rcTrue - SHORT_CONFIG: linux_64_blas_implgenericchannel_targets_hc637dd34 + - CONFIG: linux_64_blas_implgenericchannel_targetsconda-forge_pytorch_rccuda_compiler_version12.9github_actions_labelscirun-openstack-gpu-2xlargeis_rcTrue + SHORT_CONFIG: linux_64_blas_implgenericchannel_targets_h6680b940 UPLOAD_PACKAGES: True os: ubuntu - runs_on: ['cirun-openstack-gpu-2xlarge--${{ github.run_id }}-linux_64_blas_implgenericchannel_targets_hc637dd34', 'linux', 'x64', 'self-hosted'] + runs_on: ['cirun-openstack-gpu-2xlarge--${{ github.run_id }}-linux_64_blas_implgenericchannel_targets_h6680b940', 'linux', 'x64', 'self-hosted'] DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 CONDA_FORGE_DOCKER_RUN_ARGS: "--gpus all" - - CONFIG: linux_64_blas_implgenericchannel_targetsconda-forge_pytorch_rccuda_compiler_versionNoneis_rcTrue - SHORT_CONFIG: linux_64_blas_implgenericchannel_targets_h7548ab25 + - CONFIG: linux_64_blas_implgenericchannel_targetsconda-forge_pytorch_rccuda_compiler_versionNonegithub_actions_labelscirun-openstack-cpu-xlargeis_rcTrue + SHORT_CONFIG: linux_64_blas_implgenericchannel_targets_hddb1fad7 UPLOAD_PACKAGES: True os: ubuntu - runs_on: ['cirun-openstack-gpu-2xlarge--${{ github.run_id }}-linux_64_blas_implgenericchannel_targets_h7548ab25', 'linux', 'x64', 'self-hosted'] + runs_on: ['cirun-openstack-cpu-xlarge--${{ github.run_id }}-linux_64_blas_implgenericchannel_targets_hddb1fad7', 'linux', 'x64', 'self-hosted'] DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - CONDA_FORGE_DOCKER_RUN_ARGS: "--gpus all" - - CONFIG: linux_64_blas_implmklchannel_targetsconda-forge_pytorch_rccuda_compiler_version12.9is_rcTrue - SHORT_CONFIG: linux_64_blas_implmklchannel_targetscond_h2dde49c7 + - CONFIG: linux_64_blas_implmklchannel_targetsconda-forge_pytorch_rccuda_compiler_version12.9github_actions_labelscirun-openstack-gpu-2xlargeis_rcTrue + SHORT_CONFIG: linux_64_blas_implmklchannel_targetscond_hf0764c09 UPLOAD_PACKAGES: True os: ubuntu - runs_on: ['cirun-openstack-gpu-2xlarge--${{ github.run_id }}-linux_64_blas_implmklchannel_targetscond_h2dde49c7', 'linux', 'x64', 'self-hosted'] + runs_on: ['cirun-openstack-gpu-2xlarge--${{ github.run_id }}-linux_64_blas_implmklchannel_targetscond_hf0764c09', 'linux', 'x64', 'self-hosted'] DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 CONDA_FORGE_DOCKER_RUN_ARGS: "--gpus all" - - CONFIG: linux_64_blas_implmklchannel_targetsconda-forge_pytorch_rccuda_compiler_versionNoneis_rcTrue - SHORT_CONFIG: linux_64_blas_implmklchannel_targetscond_h0aaf175a + - CONFIG: linux_64_blas_implmklchannel_targetsconda-forge_pytorch_rccuda_compiler_versionNonegithub_actions_labelscirun-openstack-cpu-xlargeis_rcTrue + SHORT_CONFIG: linux_64_blas_implmklchannel_targetscond_h0654276e UPLOAD_PACKAGES: True os: ubuntu - runs_on: ['cirun-openstack-gpu-2xlarge--${{ github.run_id }}-linux_64_blas_implmklchannel_targetscond_h0aaf175a', 'linux', 'x64', 'self-hosted'] + runs_on: ['cirun-openstack-cpu-xlarge--${{ github.run_id }}-linux_64_blas_implmklchannel_targetscond_h0654276e', 'linux', 'x64', 'self-hosted'] DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - CONDA_FORGE_DOCKER_RUN_ARGS: "--gpus all" - - CONFIG: linux_aarch64_channel_targetsconda-forge_pytorch_rccuda_compiler_version12.9is_rcTrue - SHORT_CONFIG: linux_aarch64_channel_targetsconda-forge_h562a5d25 + - CONFIG: linux_aarch64_channel_targetsconda-forge_pytorch_rccuda_compiler_version12.9github_actions_labelscirun-openstack-gpu-2xlargeis_rcTrue + SHORT_CONFIG: linux_aarch64_channel_targetsconda-forge_hdce6c6a1 UPLOAD_PACKAGES: True os: ubuntu - runs_on: ['cirun-openstack-gpu-2xlarge--${{ github.run_id }}-linux_aarch64_channel_targetsconda-forge_h562a5d25', 'linux', 'x64', 'self-hosted'] + runs_on: ['cirun-openstack-gpu-2xlarge--${{ github.run_id }}-linux_aarch64_channel_targetsconda-forge_hdce6c6a1', 'linux', 'x64', 'self-hosted'] DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 CONDA_FORGE_DOCKER_RUN_ARGS: "--gpus all" - - CONFIG: linux_aarch64_channel_targetsconda-forge_pytorch_rccuda_compiler_versionNoneis_rcTrue - SHORT_CONFIG: linux_aarch64_channel_targetsconda-forge_he6bea9a8 + - CONFIG: linux_aarch64_channel_targetsconda-forge_pytorch_rccuda_compiler_versionNonegithub_actions_labelscirun-openstack-cpu-xlargeis_rcTrue + SHORT_CONFIG: linux_aarch64_channel_targetsconda-forge_h172dcced UPLOAD_PACKAGES: True os: ubuntu - runs_on: ['cirun-openstack-gpu-2xlarge--${{ github.run_id }}-linux_aarch64_channel_targetsconda-forge_he6bea9a8', 'linux', 'x64', 'self-hosted'] + runs_on: ['cirun-openstack-cpu-xlarge--${{ github.run_id }}-linux_aarch64_channel_targetsconda-forge_h172dcced', 'linux', 'x64', 'self-hosted'] DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - CONDA_FORGE_DOCKER_RUN_ARGS: "--gpus all" - CONFIG: osx_64_blas_implgenericchannel_targetsconda-forge_pytorch_rcis_rcTrue SHORT_CONFIG: osx_64_blas_implgenericchannel_targetsco_h36e27ba7 UPLOAD_PACKAGES: True From 2876fc7006a96e281239fe8cb9a23a6a09054f44 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Mon, 29 Dec 2025 13:07:10 -0800 Subject: [PATCH 3/4] remove used --- recipe/meta.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 9302f130..09ef7f5f 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -23,9 +23,6 @@ {% set diagonalize = True %} {% endif %} -# ensure github_actions_labels appears "used" from POV of conda-{build,smithy} -# [github_actions_labels] - # see https://github.com/pytorch/pytorch/blame/v{{ version }}/.ci/docker/ci_commit_pins/triton.txt # pytorch and triton are released in tandem, see notes in their release process # https://github.com/pytorch/pytorch/blob/main/RELEASE.md#triton-dependency-for-the-release From 8e3d80dd6d5ee115e55c93b10fd99f8f51f703da Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 7 Jan 2026 09:36:09 -0800 Subject: [PATCH 4/4] use jinja in skip --- recipe/meta.yaml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 09ef7f5f..260fa1f9 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -13,16 +13,6 @@ {% set build = build + 100 %} {% endif %} -# CUDA builds on GPU agents, non-CUDA builds on CPU agents; these gymnastics would be avoidable with -# https://github.com/conda-forge/conda-forge-pinning-feedstock/pull/6910 -{% set diagonalize = False %} -{% if False %} -{% elif target_platform.startswith("linux") and cuda_compiler_version == "None" and "gpu" in github_actions_labels %} - {% set diagonalize = True %} -{% elif target_platform.startswith("linux") and cuda_compiler_version != "None" and "cpu" in github_actions_labels %} - {% set diagonalize = True %} -{% endif %} - # see https://github.com/pytorch/pytorch/blame/v{{ version }}/.ci/docker/ci_commit_pins/triton.txt # pytorch and triton are released in tandem, see notes in their release process # https://github.com/pytorch/pytorch/blob/main/RELEASE.md#triton-dependency-for-the-release @@ -76,8 +66,8 @@ build: {% else %} skip: true # [is_rc] {% endif %} - {% if diagonalize %} # CUDA builds on GPU agents, non-CUDA builds on CPU agents; see above + {% if (cuda_compiler_version == "None" and "gpu" in github_actions_labels) or (cuda_compiler_version != "None" and "cpu" in github_actions_labels) %} skip: true {% endif %} string: cuda{{ cuda_compiler_version | replace('.', '') }}_{{ blas_impl }}_h{{ PKG_HASH }}_{{ build }} # [cuda_compiler_version != "None"]