diff --git a/.azure-pipelines/azure-pipelines-linux.yml b/.azure-pipelines/azure-pipelines-linux.yml deleted file mode 100755 index 6a3984e..0000000 --- a/.azure-pipelines/azure-pipelines-linux.yml +++ /dev/null @@ -1,107 +0,0 @@ -# This file was generated automatically from conda-smithy. To update this configuration, -# update the conda-forge.yml and/or the recipe/meta.yaml. -# -*- mode: yaml -*- - -jobs: -- job: linux - pool: - vmImage: ubuntu-latest - strategy: - matrix: - linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.10.____cpython: - CONFIG: linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.10.____cpython - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.11.____cpython: - CONFIG: linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.11.____cpython - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.12.____cpython: - CONFIG: linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.12.____cpython - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.13.____cp313: - CONFIG: linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.13.____cp313 - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.9.____cpython: - CONFIG: linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.9.____cpython - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.10.____cpython: - CONFIG: linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.10.____cpython - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.11.____cpython: - CONFIG: linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.11.____cpython - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.12.____cpython: - CONFIG: linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.12.____cpython - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.13.____cp313: - CONFIG: linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.13.____cp313 - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.9.____cpython: - CONFIG: linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.9.____cpython - UPLOAD_PACKAGES: 'True' - DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 - timeoutInMinutes: 360 - variables: {} - - steps: - - script: | - sudo mkdir -p /opt/empty_dir || true - for d in \ - /opt/ghc \ - /opt/hostedtoolcache \ - /usr/lib/jvm \ - /usr/local/.ghcup \ - /usr/local/lib/android \ - /usr/local/share/powershell \ - /usr/share/dotnet \ - /usr/share/swift \ - ; do - sudo rsync --stats -a --delete /opt/empty_dir/ $d || true - done - sudo apt-get purge -y -f firefox \ - google-chrome-stable \ - microsoft-edge-stable - sudo apt-get autoremove -y >& /dev/null - sudo apt-get autoclean -y >& /dev/null - df -h - displayName: Manage disk space - - script: | - sudo fallocate -l 16GiB /swapfile || true - sudo chmod 600 /swapfile || true - sudo mkswap /swapfile || true - sudo swapon /swapfile || true - displayName: Create swap file - # configure qemu binfmt-misc running. This allows us to run docker containers - # embedded qemu-static - - script: | - docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes - ls /proc/sys/fs/binfmt_misc/ - condition: not(startsWith(variables['CONFIG'], 'linux_64')) - displayName: Configure binfmt_misc - - - script: | - export CI=azure - export flow_run_id=azure_$(Build.BuildNumber).$(System.JobAttempt) - export remote_url=$(Build.Repository.Uri) - export sha=$(Build.SourceVersion) - export GIT_BRANCH=$BUILD_SOURCEBRANCHNAME - export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME}) - if [[ "${BUILD_REASON:-}" == "PullRequest" ]]; then - export IS_PR_BUILD="True" - else - export IS_PR_BUILD="False" - fi - .scripts/run_docker_build.sh - displayName: Run docker build - env: - BINSTAR_TOKEN: $(BINSTAR_TOKEN) - FEEDSTOCK_TOKEN: $(FEEDSTOCK_TOKEN) - STAGING_BINSTAR_TOKEN: $(STAGING_BINSTAR_TOKEN) \ No newline at end of file diff --git a/.azure-pipelines/azure-pipelines-osx.yml b/.azure-pipelines/azure-pipelines-osx.yml index 8f00930..3877736 100755 --- a/.azure-pipelines/azure-pipelines-osx.yml +++ b/.azure-pipelines/azure-pipelines-osx.yml @@ -20,9 +20,6 @@ jobs: osx_64_python3.13.____cp313: CONFIG: osx_64_python3.13.____cp313 UPLOAD_PACKAGES: 'True' - osx_64_python3.9.____cpython: - CONFIG: osx_64_python3.9.____cpython - UPLOAD_PACKAGES: 'True' osx_arm64_python3.10.____cpython: CONFIG: osx_arm64_python3.10.____cpython UPLOAD_PACKAGES: 'True' @@ -35,9 +32,6 @@ jobs: osx_arm64_python3.13.____cp313: CONFIG: osx_arm64_python3.13.____cp313 UPLOAD_PACKAGES: 'True' - osx_arm64_python3.9.____cpython: - CONFIG: osx_arm64_python3.9.____cpython - UPLOAD_PACKAGES: 'True' timeoutInMinutes: 360 variables: {} @@ -61,4 +55,4 @@ jobs: env: BINSTAR_TOKEN: $(BINSTAR_TOKEN) FEEDSTOCK_TOKEN: $(FEEDSTOCK_TOKEN) - STAGING_BINSTAR_TOKEN: $(STAGING_BINSTAR_TOKEN) \ No newline at end of file + STAGING_BINSTAR_TOKEN: $(STAGING_BINSTAR_TOKEN) diff --git a/.ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.9.____cpython.yaml b/.ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.9.____cpython.yaml deleted file mode 100644 index b8b2b36..0000000 --- a/.ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.9.____cpython.yaml +++ /dev/null @@ -1,35 +0,0 @@ -c_stdlib: -- sysroot -c_stdlib_version: -- '2.17' -cdt_name: -- conda -channel_sources: -- conda-forge -channel_targets: -- conda-forge main -cuda_compiler: -- None -cuda_compiler_version: -- None -cxx_compiler: -- gxx -cxx_compiler_version: -- '13' -docker_image: -- quay.io/condaforge/linux-anvil-x86_64:alma9 -pin_run_as_build: - python: - min_pin: x.x - max_pin: x.x -python: -- 3.9.* *_cpython -pytorch: -- '2.7' -target_platform: -- linux-64 -zip_keys: -- - cxx_compiler_version - - cuda_compiler - - cuda_compiler_version - - docker_image diff --git a/.ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.10.____cpython.yaml b/.ci_support/linux_64_cuda_compiler_version12.9python3.10.____cpython.yaml similarity index 82% rename from .ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.10.____cpython.yaml rename to .ci_support/linux_64_cuda_compiler_version12.9python3.10.____cpython.yaml index c150d22..413bdc2 100644 --- a/.ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.10.____cpython.yaml +++ b/.ci_support/linux_64_cuda_compiler_version12.9python3.10.____cpython.yaml @@ -9,15 +9,17 @@ channel_sources: channel_targets: - conda-forge main cuda_compiler: -- None +- cuda-nvcc cuda_compiler_version: -- None +- '12.9' cxx_compiler: - gxx cxx_compiler_version: -- '13' +- '14' docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma9 +github_actions_labels: +- cirun-openstack-cpu-xlarge pin_run_as_build: python: min_pin: x.x @@ -30,6 +32,5 @@ target_platform: - linux-64 zip_keys: - - cxx_compiler_version - - cuda_compiler + - c_stdlib_version - cuda_compiler_version - - docker_image diff --git a/.ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.11.____cpython.yaml b/.ci_support/linux_64_cuda_compiler_version12.9python3.11.____cpython.yaml similarity index 82% rename from .ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.11.____cpython.yaml rename to .ci_support/linux_64_cuda_compiler_version12.9python3.11.____cpython.yaml index 051cfac..fdf4760 100644 --- a/.ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.11.____cpython.yaml +++ b/.ci_support/linux_64_cuda_compiler_version12.9python3.11.____cpython.yaml @@ -9,15 +9,17 @@ channel_sources: channel_targets: - conda-forge main cuda_compiler: -- None +- cuda-nvcc cuda_compiler_version: -- None +- '12.9' cxx_compiler: - gxx cxx_compiler_version: -- '13' +- '14' docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma9 +github_actions_labels: +- cirun-openstack-cpu-xlarge pin_run_as_build: python: min_pin: x.x @@ -30,6 +32,5 @@ target_platform: - linux-64 zip_keys: - - cxx_compiler_version - - cuda_compiler + - c_stdlib_version - cuda_compiler_version - - docker_image diff --git a/.ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.12.____cpython.yaml b/.ci_support/linux_64_cuda_compiler_version12.9python3.12.____cpython.yaml similarity index 82% rename from .ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.12.____cpython.yaml rename to .ci_support/linux_64_cuda_compiler_version12.9python3.12.____cpython.yaml index 0f8f546..ee635ef 100644 --- a/.ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.12.____cpython.yaml +++ b/.ci_support/linux_64_cuda_compiler_version12.9python3.12.____cpython.yaml @@ -9,15 +9,17 @@ channel_sources: channel_targets: - conda-forge main cuda_compiler: -- None +- cuda-nvcc cuda_compiler_version: -- None +- '12.9' cxx_compiler: - gxx cxx_compiler_version: -- '13' +- '14' docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma9 +github_actions_labels: +- cirun-openstack-cpu-xlarge pin_run_as_build: python: min_pin: x.x @@ -30,6 +32,5 @@ target_platform: - linux-64 zip_keys: - - cxx_compiler_version - - cuda_compiler + - c_stdlib_version - cuda_compiler_version - - docker_image diff --git a/.ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.13.____cp313.yaml b/.ci_support/linux_64_cuda_compiler_version12.9python3.13.____cp313.yaml similarity index 82% rename from .ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.13.____cp313.yaml rename to .ci_support/linux_64_cuda_compiler_version12.9python3.13.____cp313.yaml index 01c7082..bd6fc11 100644 --- a/.ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.13.____cp313.yaml +++ b/.ci_support/linux_64_cuda_compiler_version12.9python3.13.____cp313.yaml @@ -9,15 +9,17 @@ channel_sources: channel_targets: - conda-forge main cuda_compiler: -- None +- cuda-nvcc cuda_compiler_version: -- None +- '12.9' cxx_compiler: - gxx cxx_compiler_version: -- '13' +- '14' docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma9 +github_actions_labels: +- cirun-openstack-cpu-xlarge pin_run_as_build: python: min_pin: x.x @@ -30,6 +32,5 @@ target_platform: - linux-64 zip_keys: - - cxx_compiler_version - - cuda_compiler + - c_stdlib_version - cuda_compiler_version - - docker_image diff --git a/.ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.10.____cpython.yaml b/.ci_support/linux_64_cuda_compiler_versionNonepython3.10.____cpython.yaml similarity index 84% rename from .ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.10.____cpython.yaml rename to .ci_support/linux_64_cuda_compiler_versionNonepython3.10.____cpython.yaml index 5673298..a82676c 100644 --- a/.ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.10.____cpython.yaml +++ b/.ci_support/linux_64_cuda_compiler_versionNonepython3.10.____cpython.yaml @@ -11,13 +11,15 @@ channel_targets: cuda_compiler: - cuda-nvcc cuda_compiler_version: -- '12.6' +- None cxx_compiler: - gxx cxx_compiler_version: -- '13' +- '14' docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma9 +github_actions_labels: +- cirun-openstack-cpu-xlarge pin_run_as_build: python: min_pin: x.x @@ -30,6 +32,5 @@ target_platform: - linux-64 zip_keys: - - cxx_compiler_version - - cuda_compiler + - c_stdlib_version - cuda_compiler_version - - docker_image diff --git a/.ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.11.____cpython.yaml b/.ci_support/linux_64_cuda_compiler_versionNonepython3.11.____cpython.yaml similarity index 84% rename from .ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.11.____cpython.yaml rename to .ci_support/linux_64_cuda_compiler_versionNonepython3.11.____cpython.yaml index 3af087f..0643b35 100644 --- a/.ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.11.____cpython.yaml +++ b/.ci_support/linux_64_cuda_compiler_versionNonepython3.11.____cpython.yaml @@ -11,13 +11,15 @@ channel_targets: cuda_compiler: - cuda-nvcc cuda_compiler_version: -- '12.6' +- None cxx_compiler: - gxx cxx_compiler_version: -- '13' +- '14' docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma9 +github_actions_labels: +- cirun-openstack-cpu-xlarge pin_run_as_build: python: min_pin: x.x @@ -30,6 +32,5 @@ target_platform: - linux-64 zip_keys: - - cxx_compiler_version - - cuda_compiler + - c_stdlib_version - cuda_compiler_version - - docker_image diff --git a/.ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.12.____cpython.yaml b/.ci_support/linux_64_cuda_compiler_versionNonepython3.12.____cpython.yaml similarity index 84% rename from .ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.12.____cpython.yaml rename to .ci_support/linux_64_cuda_compiler_versionNonepython3.12.____cpython.yaml index 0c9933b..0382b93 100644 --- a/.ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.12.____cpython.yaml +++ b/.ci_support/linux_64_cuda_compiler_versionNonepython3.12.____cpython.yaml @@ -11,13 +11,15 @@ channel_targets: cuda_compiler: - cuda-nvcc cuda_compiler_version: -- '12.6' +- None cxx_compiler: - gxx cxx_compiler_version: -- '13' +- '14' docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma9 +github_actions_labels: +- cirun-openstack-cpu-xlarge pin_run_as_build: python: min_pin: x.x @@ -30,6 +32,5 @@ target_platform: - linux-64 zip_keys: - - cxx_compiler_version - - cuda_compiler + - c_stdlib_version - cuda_compiler_version - - docker_image diff --git a/.ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.13.____cp313.yaml b/.ci_support/linux_64_cuda_compiler_versionNonepython3.13.____cp313.yaml similarity index 84% rename from .ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.13.____cp313.yaml rename to .ci_support/linux_64_cuda_compiler_versionNonepython3.13.____cp313.yaml index d18a15a..2356c26 100644 --- a/.ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.13.____cp313.yaml +++ b/.ci_support/linux_64_cuda_compiler_versionNonepython3.13.____cp313.yaml @@ -11,13 +11,15 @@ channel_targets: cuda_compiler: - cuda-nvcc cuda_compiler_version: -- '12.6' +- None cxx_compiler: - gxx cxx_compiler_version: -- '13' +- '14' docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma9 +github_actions_labels: +- cirun-openstack-cpu-xlarge pin_run_as_build: python: min_pin: x.x @@ -30,6 +32,5 @@ target_platform: - linux-64 zip_keys: - - cxx_compiler_version - - cuda_compiler + - c_stdlib_version - cuda_compiler_version - - docker_image diff --git a/.ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.9.____cpython.yaml b/.ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.9.____cpython.yaml deleted file mode 100644 index c7fa202..0000000 --- a/.ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.9.____cpython.yaml +++ /dev/null @@ -1,35 +0,0 @@ -c_stdlib: -- sysroot -c_stdlib_version: -- '2.17' -cdt_name: -- conda -channel_sources: -- conda-forge -channel_targets: -- conda-forge main -cuda_compiler: -- cuda-nvcc -cuda_compiler_version: -- '12.6' -cxx_compiler: -- gxx -cxx_compiler_version: -- '13' -docker_image: -- quay.io/condaforge/linux-anvil-x86_64:alma9 -pin_run_as_build: - python: - min_pin: x.x - max_pin: x.x -python: -- 3.9.* *_cpython -pytorch: -- '2.7' -target_platform: -- linux-64 -zip_keys: -- - cxx_compiler_version - - cuda_compiler - - cuda_compiler_version - - docker_image diff --git a/.ci_support/migrations/cuda129.yaml b/.ci_support/migrations/cuda129.yaml new file mode 100644 index 0000000..5074cd1 --- /dev/null +++ b/.ci_support/migrations/cuda129.yaml @@ -0,0 +1,57 @@ +migrator_ts: 1738229377 +__migrator: + kind: + version + migration_number: + 1 + build_number: + 1 + paused: false + override_cbc_keys: + - cuda_compiler_stub + check_solvable: false + primary_key: cuda_compiler_version + ordering: + cuda_compiler_version: + - 12.4 + - 12.6 + - 12.8 + - None + - 12.9 + # to allow manual opt-in for CUDA 11.8, see + # https://github.com/conda-forge/conda-forge-pinning-feedstock/pull/7472 + # must be last due to how cuda_compiler ordering in that migrator works + - 11.8 + commit_message: | + Upgrade to CUDA 12.9 + + CUDA 12.8 added support for architectures `sm_100`, `sm_101` and `sm_120`, + while CUDA 12.9 further added `sm_103` and `sm_121`. To build for these, + maintainers will need to modify their existing list of specified architectures + (e.g. `CMAKE_CUDA_ARCHITECTURES`, `TORCH_CUDA_ARCH_LIST`, etc.) + for their package. A good balance between broad support and storage + footprint (resp. compilation time) is to add `sm_100` and `sm_120`. + + Since CUDA 12.8, the conda-forge nvcc package now sets `CUDAARCHS` and + `TORCH_CUDA_ARCH_LIST` in its activation script to a string containing all + of the supported real architectures plus the virtual architecture of the + latest. Recipes for packages who use these variables to control their build + but do not want to build for all supported architectures will need to override + these variables in their build script. + + ref: https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html#new-features + +cuda_compiler_version: # [((linux and (x86_64 or aarch64)) or win64) and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] + - 12.9 # [((linux and (x86_64 or aarch64)) or win64) and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] + +cuda_compiler_version_min: # [((linux and (x86_64 or aarch64)) or win64) and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] + - 12.9 # [((linux and (x86_64 or aarch64)) or win64) and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] + +c_compiler_version: # [(linux and (x86_64 or aarch64)) and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] + - 14 # [(linux and (x86_64 or aarch64)) and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] + +cxx_compiler_version: # [(linux and (x86_64 or aarch64)) and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] + - 14 # [(linux and (x86_64 or aarch64)) and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] + +fortran_compiler_version: # [(linux and (x86_64 or aarch64)) and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] + - 14 # [(linux and (x86_64 or aarch64)) and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] diff --git a/.ci_support/migrations/python313.yaml b/.ci_support/migrations/python313.yaml deleted file mode 100644 index f9389e3..0000000 --- a/.ci_support/migrations/python313.yaml +++ /dev/null @@ -1,46 +0,0 @@ -migrator_ts: 1724712607 -__migrator: - commit_message: Rebuild for python 3.13 - migration_number: 1 - operation: key_add - primary_key: python - ordering: - python: - - 3.6.* *_cpython - - 3.7.* *_cpython - - 3.8.* *_cpython - - 3.9.* *_cpython - - 3.10.* *_cpython - - 3.11.* *_cpython - - 3.12.* *_cpython - - 3.13.* *_cp313 # new entry - - 3.6.* *_73_pypy - - 3.7.* *_73_pypy - - 3.8.* *_73_pypy - - 3.9.* *_73_pypy - paused: false - longterm: true - pr_limit: 20 - max_solver_attempts: 3 # this will make the bot retry "not solvable" stuff 12 times - exclude: - # this shouldn't attempt to modify the python feedstocks - - python - - pypy3.6 - - pypy-meta - - cross-python - - python_abi - # see https://github.com/conda-forge/scipy-feedstock/pull/283 - - scipy - exclude_pinned_pkgs: false - additional_zip_keys: - - channel_sources - -python: -- 3.13.* *_cp313 -channel_sources: -- conda-forge/label/python_rc,conda-forge -# additional entries to add for zip_keys -numpy: -- 2 -python_impl: -- cpython diff --git a/.ci_support/osx_64_python3.10.____cpython.yaml b/.ci_support/osx_64_python3.10.____cpython.yaml index ffd7d85..a231891 100644 --- a/.ci_support/osx_64_python3.10.____cpython.yaml +++ b/.ci_support/osx_64_python3.10.____cpython.yaml @@ -11,13 +11,15 @@ channel_sources: channel_targets: - conda-forge main cuda_compiler: -- None +- cuda-nvcc cuda_compiler_version: - None cxx_compiler: - clangxx cxx_compiler_version: -- '18' +- '19' +github_actions_labels: +- cirun-openstack-cpu-xlarge macos_machine: - x86_64-apple-darwin13.4.0 pin_run_as_build: diff --git a/.ci_support/osx_64_python3.11.____cpython.yaml b/.ci_support/osx_64_python3.11.____cpython.yaml index 34f8288..dd7fc4a 100644 --- a/.ci_support/osx_64_python3.11.____cpython.yaml +++ b/.ci_support/osx_64_python3.11.____cpython.yaml @@ -11,13 +11,15 @@ channel_sources: channel_targets: - conda-forge main cuda_compiler: -- None +- cuda-nvcc cuda_compiler_version: - None cxx_compiler: - clangxx cxx_compiler_version: -- '18' +- '19' +github_actions_labels: +- cirun-openstack-cpu-xlarge macos_machine: - x86_64-apple-darwin13.4.0 pin_run_as_build: diff --git a/.ci_support/osx_64_python3.12.____cpython.yaml b/.ci_support/osx_64_python3.12.____cpython.yaml index caf2696..73fb132 100644 --- a/.ci_support/osx_64_python3.12.____cpython.yaml +++ b/.ci_support/osx_64_python3.12.____cpython.yaml @@ -11,13 +11,15 @@ channel_sources: channel_targets: - conda-forge main cuda_compiler: -- None +- cuda-nvcc cuda_compiler_version: - None cxx_compiler: - clangxx cxx_compiler_version: -- '18' +- '19' +github_actions_labels: +- cirun-openstack-cpu-xlarge macos_machine: - x86_64-apple-darwin13.4.0 pin_run_as_build: diff --git a/.ci_support/osx_64_python3.13.____cp313.yaml b/.ci_support/osx_64_python3.13.____cp313.yaml index 8c4e1bc..2d33fb5 100644 --- a/.ci_support/osx_64_python3.13.____cp313.yaml +++ b/.ci_support/osx_64_python3.13.____cp313.yaml @@ -11,13 +11,15 @@ channel_sources: channel_targets: - conda-forge main cuda_compiler: -- None +- cuda-nvcc cuda_compiler_version: - None cxx_compiler: - clangxx cxx_compiler_version: -- '18' +- '19' +github_actions_labels: +- cirun-openstack-cpu-xlarge macos_machine: - x86_64-apple-darwin13.4.0 pin_run_as_build: diff --git a/.ci_support/osx_64_python3.9.____cpython.yaml b/.ci_support/osx_64_python3.9.____cpython.yaml deleted file mode 100644 index f8de840..0000000 --- a/.ci_support/osx_64_python3.9.____cpython.yaml +++ /dev/null @@ -1,32 +0,0 @@ -MACOSX_DEPLOYMENT_TARGET: -- '10.15' -MACOSX_SDK_VERSION: -- '10.15' -c_stdlib: -- macosx_deployment_target -c_stdlib_version: -- '10.15' -channel_sources: -- conda-forge -channel_targets: -- conda-forge main -cuda_compiler: -- None -cuda_compiler_version: -- None -cxx_compiler: -- clangxx -cxx_compiler_version: -- '18' -macos_machine: -- x86_64-apple-darwin13.4.0 -pin_run_as_build: - python: - min_pin: x.x - max_pin: x.x -python: -- 3.9.* *_cpython -pytorch: -- '2.7' -target_platform: -- osx-64 diff --git a/.ci_support/osx_arm64_python3.10.____cpython.yaml b/.ci_support/osx_arm64_python3.10.____cpython.yaml index 0fc1166..c2d86bb 100644 --- a/.ci_support/osx_arm64_python3.10.____cpython.yaml +++ b/.ci_support/osx_arm64_python3.10.____cpython.yaml @@ -11,13 +11,15 @@ channel_sources: channel_targets: - conda-forge main cuda_compiler: -- None +- cuda-nvcc cuda_compiler_version: - None cxx_compiler: - clangxx cxx_compiler_version: -- '18' +- '19' +github_actions_labels: +- cirun-openstack-cpu-xlarge macos_machine: - arm64-apple-darwin20.0.0 pin_run_as_build: diff --git a/.ci_support/osx_arm64_python3.11.____cpython.yaml b/.ci_support/osx_arm64_python3.11.____cpython.yaml index cb5ad62..e48a3b8 100644 --- a/.ci_support/osx_arm64_python3.11.____cpython.yaml +++ b/.ci_support/osx_arm64_python3.11.____cpython.yaml @@ -11,13 +11,15 @@ channel_sources: channel_targets: - conda-forge main cuda_compiler: -- None +- cuda-nvcc cuda_compiler_version: - None cxx_compiler: - clangxx cxx_compiler_version: -- '18' +- '19' +github_actions_labels: +- cirun-openstack-cpu-xlarge macos_machine: - arm64-apple-darwin20.0.0 pin_run_as_build: diff --git a/.ci_support/osx_arm64_python3.12.____cpython.yaml b/.ci_support/osx_arm64_python3.12.____cpython.yaml index 97389a6..9f8ea45 100644 --- a/.ci_support/osx_arm64_python3.12.____cpython.yaml +++ b/.ci_support/osx_arm64_python3.12.____cpython.yaml @@ -11,13 +11,15 @@ channel_sources: channel_targets: - conda-forge main cuda_compiler: -- None +- cuda-nvcc cuda_compiler_version: - None cxx_compiler: - clangxx cxx_compiler_version: -- '18' +- '19' +github_actions_labels: +- cirun-openstack-cpu-xlarge macos_machine: - arm64-apple-darwin20.0.0 pin_run_as_build: diff --git a/.ci_support/osx_arm64_python3.13.____cp313.yaml b/.ci_support/osx_arm64_python3.13.____cp313.yaml index c0651be..c485115 100644 --- a/.ci_support/osx_arm64_python3.13.____cp313.yaml +++ b/.ci_support/osx_arm64_python3.13.____cp313.yaml @@ -11,13 +11,15 @@ channel_sources: channel_targets: - conda-forge main cuda_compiler: -- None +- cuda-nvcc cuda_compiler_version: - None cxx_compiler: - clangxx cxx_compiler_version: -- '18' +- '19' +github_actions_labels: +- cirun-openstack-cpu-xlarge macos_machine: - arm64-apple-darwin20.0.0 pin_run_as_build: diff --git a/.ci_support/osx_arm64_python3.9.____cpython.yaml b/.ci_support/osx_arm64_python3.9.____cpython.yaml deleted file mode 100644 index cb4e757..0000000 --- a/.ci_support/osx_arm64_python3.9.____cpython.yaml +++ /dev/null @@ -1,32 +0,0 @@ -MACOSX_DEPLOYMENT_TARGET: -- '11.0' -MACOSX_SDK_VERSION: -- '11.0' -c_stdlib: -- macosx_deployment_target -c_stdlib_version: -- '11.0' -channel_sources: -- conda-forge -channel_targets: -- conda-forge main -cuda_compiler: -- None -cuda_compiler_version: -- None -cxx_compiler: -- clangxx -cxx_compiler_version: -- '18' -macos_machine: -- arm64-apple-darwin20.0.0 -pin_run_as_build: - python: - min_pin: x.x - max_pin: x.x -python: -- 3.9.* *_cpython -pytorch: -- '2.7' -target_platform: -- osx-arm64 diff --git a/.gitattributes b/.gitattributes index 18f114a..85ccb8f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -24,4 +24,5 @@ bld.bat text eol=crlf /README.md linguist-generated=true azure-pipelines.yml linguist-generated=true build-locally.py linguist-generated=true +pixi.toml linguist-generated=true shippable.yml linguist-generated=true diff --git a/.github/workflows/conda-build.yml b/.github/workflows/conda-build.yml new file mode 100644 index 0000000..64c30da --- /dev/null +++ b/.github/workflows/conda-build.yml @@ -0,0 +1,144 @@ +# This file was generated automatically from conda-smithy. To update this configuration, +# update the conda-forge.yml and/or the recipe/meta.yaml. +# -*- mode: yaml -*- + +name: Build conda package +on: + push: + + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + +jobs: + build: + name: ${{ matrix.CONFIG }} + runs-on: ${{ matrix.runs_on }} + timeout-minutes: 720 + strategy: + fail-fast: false + matrix: + include: + - CONFIG: linux_64_cuda_compiler_version12.9python3.10.____cpython + UPLOAD_PACKAGES: True + os: ubuntu + runs_on: ['cirun-openstack-cpu-xlarge--${{ github.run_id }}-linux_64_cuda_compiler_version12.9python_h6e6b5039', 'linux', 'x64', 'self-hosted'] + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + - CONFIG: linux_64_cuda_compiler_version12.9python3.11.____cpython + UPLOAD_PACKAGES: True + os: ubuntu + runs_on: ['cirun-openstack-cpu-xlarge--${{ github.run_id }}-linux_64_cuda_compiler_version12.9python_h9224ed27', 'linux', 'x64', 'self-hosted'] + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + - CONFIG: linux_64_cuda_compiler_version12.9python3.12.____cpython + UPLOAD_PACKAGES: True + os: ubuntu + runs_on: ['cirun-openstack-cpu-xlarge--${{ github.run_id }}-linux_64_cuda_compiler_version12.9python_h33f95ef4', 'linux', 'x64', 'self-hosted'] + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + - CONFIG: linux_64_cuda_compiler_version12.9python3.13.____cp313 + UPLOAD_PACKAGES: True + os: ubuntu + runs_on: ['cirun-openstack-cpu-xlarge--${{ github.run_id }}-linux_64_cuda_compiler_version12.9python_hd2594ab6', 'linux', 'x64', 'self-hosted'] + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + - CONFIG: linux_64_cuda_compiler_versionNonepython3.10.____cpython + UPLOAD_PACKAGES: True + os: ubuntu + runs_on: ['cirun-openstack-cpu-xlarge--${{ github.run_id }}-linux_64_cuda_compiler_versionNonepython_hb6a3b480', 'linux', 'x64', 'self-hosted'] + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + - CONFIG: linux_64_cuda_compiler_versionNonepython3.11.____cpython + UPLOAD_PACKAGES: True + os: ubuntu + runs_on: ['cirun-openstack-cpu-xlarge--${{ github.run_id }}-linux_64_cuda_compiler_versionNonepython_h3c1a96fc', 'linux', 'x64', 'self-hosted'] + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + - CONFIG: linux_64_cuda_compiler_versionNonepython3.12.____cpython + UPLOAD_PACKAGES: True + os: ubuntu + runs_on: ['cirun-openstack-cpu-xlarge--${{ github.run_id }}-linux_64_cuda_compiler_versionNonepython_h7883cd14', 'linux', 'x64', 'self-hosted'] + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + - CONFIG: linux_64_cuda_compiler_versionNonepython3.13.____cp313 + UPLOAD_PACKAGES: True + os: ubuntu + runs_on: ['cirun-openstack-cpu-xlarge--${{ github.run_id }}-linux_64_cuda_compiler_versionNonepython_h46731b07', 'linux', 'x64', 'self-hosted'] + DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9 + steps: + + - name: Checkout code + uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 + + - name: Build on Linux + id: build-linux + if: matrix.os == 'ubuntu' + env: + CONFIG: ${{ matrix.CONFIG }} + UPLOAD_PACKAGES: ${{ matrix.UPLOAD_PACKAGES }} + DOCKER_IMAGE: ${{ matrix.DOCKER_IMAGE }} + CI: github_actions + CONDA_FORGE_DOCKER_RUN_ARGS: "${{ matrix.CONDA_FORGE_DOCKER_RUN_ARGS }}" + BINSTAR_TOKEN: ${{ secrets.BINSTAR_TOKEN }} + FEEDSTOCK_TOKEN: ${{ secrets.FEEDSTOCK_TOKEN }} + STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }} + shell: bash + run: | + if [[ "$(uname -m)" == "x86_64" ]]; then + echo "::group::Configure binfmt_misc" + docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes + fi + export flow_run_id="github_$GITHUB_RUN_ID" + export remote_url="https://github.com/$GITHUB_REPOSITORY" + export sha="$GITHUB_SHA" + export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)" + export GIT_BRANCH="$(basename $GITHUB_REF)" + if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then + export IS_PR_BUILD="True" + else + export IS_PR_BUILD="False" + fi + echo "::endgroup::" + ./.scripts/run_docker_build.sh + + - name: Build on macOS + id: build-macos + if: matrix.os == 'macos' + env: + CONFIG: ${{ matrix.CONFIG }} + UPLOAD_PACKAGES: ${{ matrix.UPLOAD_PACKAGES }} + CI: github_actions + BINSTAR_TOKEN: ${{ secrets.BINSTAR_TOKEN }} + FEEDSTOCK_TOKEN: ${{ secrets.FEEDSTOCK_TOKEN }} + STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }} + shell: bash + run: | + export flow_run_id="github_$GITHUB_RUN_ID" + export remote_url="https://github.com/$GITHUB_REPOSITORY" + export sha="$GITHUB_SHA" + export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)" + export GIT_BRANCH="$(basename $GITHUB_REF)" + if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then + export IS_PR_BUILD="True" + else + export IS_PR_BUILD="False" + fi + ./.scripts/run_osx_build.sh + + - name: Build on windows + id: build-windows + if: matrix.os == 'windows' + shell: cmd + run: | + set "flow_run_id=github_%GITHUB_RUN_ID%" + set "remote_url=https://github.com/%GITHUB_REPOSITORY%" + set "sha=%GITHUB_SHA%" + call ".scripts\run_win_build.bat" + env: + # default value; make it explicit, as it needs to match with artefact + # generation below. Not configurable for now, can be revisited later + CONDA_BLD_DIR: C:\bld + MINIFORGE_HOME: D:\Miniforge + PYTHONUNBUFFERED: 1 + CONFIG: ${{ matrix.CONFIG }} + CI: github_actions + UPLOAD_PACKAGES: ${{ matrix.UPLOAD_PACKAGES }} + BINSTAR_TOKEN: ${{ secrets.BINSTAR_TOKEN }} + FEEDSTOCK_TOKEN: ${{ secrets.FEEDSTOCK_TOKEN }} + STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }} \ No newline at end of file diff --git a/.scripts/build_steps.sh b/.scripts/build_steps.sh index 4b8c722..1d53b61 100755 --- a/.scripts/build_steps.sh +++ b/.scripts/build_steps.sh @@ -103,4 +103,4 @@ fi ( startgroup "Final checks" ) 2> /dev/null -touch "${FEEDSTOCK_ROOT}/build_artifacts/conda-forge-build-done-${CONFIG}" \ No newline at end of file +touch "${FEEDSTOCK_ROOT}/build_artifacts/conda-forge-build-done-${CONFIG}" diff --git a/.scripts/run_docker_build.sh b/.scripts/run_docker_build.sh index 6ee04aa..b63b5a0 100755 --- a/.scripts/run_docker_build.sh +++ b/.scripts/run_docker_build.sh @@ -111,4 +111,4 @@ docker run ${DOCKER_RUN_ARGS} \ test -f "$DONE_CANARY" # This closes the last group opened in `build_steps.sh` -( endgroup "Final checks" ) 2> /dev/null \ No newline at end of file +( endgroup "Final checks" ) 2> /dev/null diff --git a/.scripts/run_osx_build.sh b/.scripts/run_osx_build.sh index 1d78eef..f2fcf85 100755 --- a/.scripts/run_osx_build.sh +++ b/.scripts/run_osx_build.sh @@ -99,4 +99,4 @@ else fi ( endgroup "Uploading packages" ) 2> /dev/null -fi \ No newline at end of file +fi diff --git a/README.md b/README.md index bbacf1a..9d6c4eb 100644 --- a/README.md +++ b/README.md @@ -29,73 +29,59 @@ Current build status - + - + - + - + - + - + - + - + - - - - - - @@ -126,13 +112,6 @@ Current build status variant - - - - - -
VariantStatus
linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.10.____cpythonlinux_64_cuda_compiler_version12.9python3.10.____cpython - variant + variant
linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.11.____cpythonlinux_64_cuda_compiler_version12.9python3.11.____cpython - variant + variant
linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.12.____cpythonlinux_64_cuda_compiler_version12.9python3.12.____cpython - variant + variant
linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.13.____cp313linux_64_cuda_compiler_version12.9python3.13.____cp313 - variant + variant
linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.9.____cpythonlinux_64_cuda_compiler_versionNonepython3.10.____cpython - variant + variant
linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.10.____cpythonlinux_64_cuda_compiler_versionNonepython3.11.____cpython - variant + variant
linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.11.____cpythonlinux_64_cuda_compiler_versionNonepython3.12.____cpython - variant + variant
linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.12.____cpythonlinux_64_cuda_compiler_versionNonepython3.13.____cp313 - variant - -
linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.13.____cp313 - - variant - -
linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.9.____cpython - - variant + variant
osx_64_python3.9.____cpython - - variant - -
osx_arm64_python3.10.____cpython @@ -161,13 +140,6 @@ Current build status variant
osx_arm64_python3.9.____cpython - - variant - -
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 013bdc1..a13f0ae 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -28,5 +28,4 @@ stages: condition: and(succeeded(), eq(dependencies.Check.outputs['Skip.result.start_main'], 'true')) dependsOn: Check jobs: - - template: ./.azure-pipelines/azure-pipelines-linux.yml - template: ./.azure-pipelines/azure-pipelines-osx.yml \ No newline at end of file diff --git a/build-locally.py b/build-locally.py index 02c2374..9dfe440 100755 --- a/build-locally.py +++ b/build-locally.py @@ -106,9 +106,7 @@ def main(args=None): action="store_true", help="Setup debug environment using `conda debug`", ) - p.add_argument( - "--output-id", help="If running debug, specify the output to setup." - ) + p.add_argument("--output-id", help="If running debug, specify the output to setup.") ns = p.parse_args(args=args) verify_config(ns) @@ -124,9 +122,7 @@ def main(args=None): elif ns.config.startswith("win"): run_win_build(ns) finally: - recipe_license_file = os.path.join( - "recipe", "recipe-scripts-license.txt" - ) + recipe_license_file = os.path.join("recipe", "recipe-scripts-license.txt") if os.path.exists(recipe_license_file): os.remove(recipe_license_file) diff --git a/conda-forge.yml b/conda-forge.yml index 4ba5858..20f698b 100644 --- a/conda-forge.yml +++ b/conda-forge.yml @@ -14,4 +14,12 @@ conda_install_tool: pixi github: branch_name: main tooling_branch_name: main +github_actions: + self_hosted: true + timeout_minutes: 720 + triggers: + - push + - pull_request +provider: + linux_64: github_actions test: native_and_emulated diff --git a/pixi.toml b/pixi.toml index 672782e..a4d7acf 100644 --- a/pixi.toml +++ b/pixi.toml @@ -7,7 +7,7 @@ [project] name = "xformers-feedstock" -version = "3.50.0" # conda-smithy version used to generate this file +version = "3.52.0" # conda-smithy version used to generate this file description = "Pixi configuration for conda-forge/xformers-feedstock" authors = ["@conda-forge/xformers"] channels = ["conda-forge"] @@ -25,66 +25,54 @@ description = "List contents of all packages found in rattler-build build direct [tasks.build] cmd = "rattler-build build --recipe recipe" description = "Build xformers-feedstock directly (without setup scripts), no particular variant specified" -[tasks."build-linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.10.____cpython"] -cmd = "rattler-build build --recipe recipe -m .ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.10.____cpython.yaml" -description = "Build xformers-feedstock with variant linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.10.____cpython directly (without setup scripts)" -[tasks."inspect-linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.10.____cpython"] -cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.10.____cpython.yaml" -description = "List contents of xformers-feedstock packages built for variant linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.10.____cpython" -[tasks."build-linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.11.____cpython"] -cmd = "rattler-build build --recipe recipe -m .ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.11.____cpython.yaml" -description = "Build xformers-feedstock with variant linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.11.____cpython directly (without setup scripts)" -[tasks."inspect-linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.11.____cpython"] -cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.11.____cpython.yaml" -description = "List contents of xformers-feedstock packages built for variant linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.11.____cpython" -[tasks."build-linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.12.____cpython"] -cmd = "rattler-build build --recipe recipe -m .ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.12.____cpython.yaml" -description = "Build xformers-feedstock with variant linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.12.____cpython directly (without setup scripts)" -[tasks."inspect-linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.12.____cpython"] -cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.12.____cpython.yaml" -description = "List contents of xformers-feedstock packages built for variant linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.12.____cpython" -[tasks."build-linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.13.____cp313"] -cmd = "rattler-build build --recipe recipe -m .ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.13.____cp313.yaml" -description = "Build xformers-feedstock with variant linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.13.____cp313 directly (without setup scripts)" -[tasks."inspect-linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.13.____cp313"] -cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.13.____cp313.yaml" -description = "List contents of xformers-feedstock packages built for variant linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.13.____cp313" -[tasks."build-linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.9.____cpython"] -cmd = "rattler-build build --recipe recipe -m .ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.9.____cpython.yaml" -description = "Build xformers-feedstock with variant linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.9.____cpython directly (without setup scripts)" -[tasks."inspect-linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.9.____cpython"] -cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.9.____cpython.yaml" -description = "List contents of xformers-feedstock packages built for variant linux_64_cuda_compilercuda-nvcccuda_compiler_version12.6cxx_compiler_version13python3.9.____cpython" -[tasks."build-linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.10.____cpython"] -cmd = "rattler-build build --recipe recipe -m .ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.10.____cpython.yaml" -description = "Build xformers-feedstock with variant linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.10.____cpython directly (without setup scripts)" -[tasks."inspect-linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.10.____cpython"] -cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.10.____cpython.yaml" -description = "List contents of xformers-feedstock packages built for variant linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.10.____cpython" -[tasks."build-linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.11.____cpython"] -cmd = "rattler-build build --recipe recipe -m .ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.11.____cpython.yaml" -description = "Build xformers-feedstock with variant linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.11.____cpython directly (without setup scripts)" -[tasks."inspect-linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.11.____cpython"] -cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.11.____cpython.yaml" -description = "List contents of xformers-feedstock packages built for variant linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.11.____cpython" -[tasks."build-linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.12.____cpython"] -cmd = "rattler-build build --recipe recipe -m .ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.12.____cpython.yaml" -description = "Build xformers-feedstock with variant linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.12.____cpython directly (without setup scripts)" -[tasks."inspect-linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.12.____cpython"] -cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.12.____cpython.yaml" -description = "List contents of xformers-feedstock packages built for variant linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.12.____cpython" -[tasks."build-linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.13.____cp313"] -cmd = "rattler-build build --recipe recipe -m .ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.13.____cp313.yaml" -description = "Build xformers-feedstock with variant linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.13.____cp313 directly (without setup scripts)" -[tasks."inspect-linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.13.____cp313"] -cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.13.____cp313.yaml" -description = "List contents of xformers-feedstock packages built for variant linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.13.____cp313" -[tasks."build-linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.9.____cpython"] -cmd = "rattler-build build --recipe recipe -m .ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.9.____cpython.yaml" -description = "Build xformers-feedstock with variant linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.9.____cpython directly (without setup scripts)" -[tasks."inspect-linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.9.____cpython"] -cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.9.____cpython.yaml" -description = "List contents of xformers-feedstock packages built for variant linux_64_cuda_compilerNonecuda_compiler_versionNonecxx_compiler_version13python3.9.____cpython" +[tasks."build-linux_64_cuda_compiler_version12.9python3.10.____cpython"] +cmd = "rattler-build build --recipe recipe -m .ci_support/linux_64_cuda_compiler_version12.9python3.10.____cpython.yaml" +description = "Build xformers-feedstock with variant linux_64_cuda_compiler_version12.9python3.10.____cpython directly (without setup scripts)" +[tasks."inspect-linux_64_cuda_compiler_version12.9python3.10.____cpython"] +cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_64_cuda_compiler_version12.9python3.10.____cpython.yaml" +description = "List contents of xformers-feedstock packages built for variant linux_64_cuda_compiler_version12.9python3.10.____cpython" +[tasks."build-linux_64_cuda_compiler_version12.9python3.11.____cpython"] +cmd = "rattler-build build --recipe recipe -m .ci_support/linux_64_cuda_compiler_version12.9python3.11.____cpython.yaml" +description = "Build xformers-feedstock with variant linux_64_cuda_compiler_version12.9python3.11.____cpython directly (without setup scripts)" +[tasks."inspect-linux_64_cuda_compiler_version12.9python3.11.____cpython"] +cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_64_cuda_compiler_version12.9python3.11.____cpython.yaml" +description = "List contents of xformers-feedstock packages built for variant linux_64_cuda_compiler_version12.9python3.11.____cpython" +[tasks."build-linux_64_cuda_compiler_version12.9python3.12.____cpython"] +cmd = "rattler-build build --recipe recipe -m .ci_support/linux_64_cuda_compiler_version12.9python3.12.____cpython.yaml" +description = "Build xformers-feedstock with variant linux_64_cuda_compiler_version12.9python3.12.____cpython directly (without setup scripts)" +[tasks."inspect-linux_64_cuda_compiler_version12.9python3.12.____cpython"] +cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_64_cuda_compiler_version12.9python3.12.____cpython.yaml" +description = "List contents of xformers-feedstock packages built for variant linux_64_cuda_compiler_version12.9python3.12.____cpython" +[tasks."build-linux_64_cuda_compiler_version12.9python3.13.____cp313"] +cmd = "rattler-build build --recipe recipe -m .ci_support/linux_64_cuda_compiler_version12.9python3.13.____cp313.yaml" +description = "Build xformers-feedstock with variant linux_64_cuda_compiler_version12.9python3.13.____cp313 directly (without setup scripts)" +[tasks."inspect-linux_64_cuda_compiler_version12.9python3.13.____cp313"] +cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_64_cuda_compiler_version12.9python3.13.____cp313.yaml" +description = "List contents of xformers-feedstock packages built for variant linux_64_cuda_compiler_version12.9python3.13.____cp313" +[tasks."build-linux_64_cuda_compiler_versionNonepython3.10.____cpython"] +cmd = "rattler-build build --recipe recipe -m .ci_support/linux_64_cuda_compiler_versionNonepython3.10.____cpython.yaml" +description = "Build xformers-feedstock with variant linux_64_cuda_compiler_versionNonepython3.10.____cpython directly (without setup scripts)" +[tasks."inspect-linux_64_cuda_compiler_versionNonepython3.10.____cpython"] +cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_64_cuda_compiler_versionNonepython3.10.____cpython.yaml" +description = "List contents of xformers-feedstock packages built for variant linux_64_cuda_compiler_versionNonepython3.10.____cpython" +[tasks."build-linux_64_cuda_compiler_versionNonepython3.11.____cpython"] +cmd = "rattler-build build --recipe recipe -m .ci_support/linux_64_cuda_compiler_versionNonepython3.11.____cpython.yaml" +description = "Build xformers-feedstock with variant linux_64_cuda_compiler_versionNonepython3.11.____cpython directly (without setup scripts)" +[tasks."inspect-linux_64_cuda_compiler_versionNonepython3.11.____cpython"] +cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_64_cuda_compiler_versionNonepython3.11.____cpython.yaml" +description = "List contents of xformers-feedstock packages built for variant linux_64_cuda_compiler_versionNonepython3.11.____cpython" +[tasks."build-linux_64_cuda_compiler_versionNonepython3.12.____cpython"] +cmd = "rattler-build build --recipe recipe -m .ci_support/linux_64_cuda_compiler_versionNonepython3.12.____cpython.yaml" +description = "Build xformers-feedstock with variant linux_64_cuda_compiler_versionNonepython3.12.____cpython directly (without setup scripts)" +[tasks."inspect-linux_64_cuda_compiler_versionNonepython3.12.____cpython"] +cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_64_cuda_compiler_versionNonepython3.12.____cpython.yaml" +description = "List contents of xformers-feedstock packages built for variant linux_64_cuda_compiler_versionNonepython3.12.____cpython" +[tasks."build-linux_64_cuda_compiler_versionNonepython3.13.____cp313"] +cmd = "rattler-build build --recipe recipe -m .ci_support/linux_64_cuda_compiler_versionNonepython3.13.____cp313.yaml" +description = "Build xformers-feedstock with variant linux_64_cuda_compiler_versionNonepython3.13.____cp313 directly (without setup scripts)" +[tasks."inspect-linux_64_cuda_compiler_versionNonepython3.13.____cp313"] +cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/linux_64_cuda_compiler_versionNonepython3.13.____cp313.yaml" +description = "List contents of xformers-feedstock packages built for variant linux_64_cuda_compiler_versionNonepython3.13.____cp313" [tasks."build-osx_64_python3.10.____cpython"] cmd = "rattler-build build --recipe recipe -m .ci_support/osx_64_python3.10.____cpython.yaml" description = "Build xformers-feedstock with variant osx_64_python3.10.____cpython directly (without setup scripts)" @@ -109,12 +97,6 @@ description = "Build xformers-feedstock with variant osx_64_python3.13.____cp313 [tasks."inspect-osx_64_python3.13.____cp313"] cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/osx_64_python3.13.____cp313.yaml" description = "List contents of xformers-feedstock packages built for variant osx_64_python3.13.____cp313" -[tasks."build-osx_64_python3.9.____cpython"] -cmd = "rattler-build build --recipe recipe -m .ci_support/osx_64_python3.9.____cpython.yaml" -description = "Build xformers-feedstock with variant osx_64_python3.9.____cpython directly (without setup scripts)" -[tasks."inspect-osx_64_python3.9.____cpython"] -cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/osx_64_python3.9.____cpython.yaml" -description = "List contents of xformers-feedstock packages built for variant osx_64_python3.9.____cpython" [tasks."build-osx_arm64_python3.10.____cpython"] cmd = "rattler-build build --recipe recipe -m .ci_support/osx_arm64_python3.10.____cpython.yaml" description = "Build xformers-feedstock with variant osx_arm64_python3.10.____cpython directly (without setup scripts)" @@ -139,15 +121,10 @@ description = "Build xformers-feedstock with variant osx_arm64_python3.13.____cp [tasks."inspect-osx_arm64_python3.13.____cp313"] cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/osx_arm64_python3.13.____cp313.yaml" description = "List contents of xformers-feedstock packages built for variant osx_arm64_python3.13.____cp313" -[tasks."build-osx_arm64_python3.9.____cpython"] -cmd = "rattler-build build --recipe recipe -m .ci_support/osx_arm64_python3.9.____cpython.yaml" -description = "Build xformers-feedstock with variant osx_arm64_python3.9.____cpython directly (without setup scripts)" -[tasks."inspect-osx_arm64_python3.9.____cpython"] -cmd = "inspect_artifacts --recipe-dir recipe -m .ci_support/osx_arm64_python3.9.____cpython.yaml" -description = "List contents of xformers-feedstock packages built for variant osx_arm64_python3.9.____cpython" [feature.smithy.dependencies] conda-smithy = "*" +shellcheck = "*" [feature.smithy.tasks.build-locally] cmd = "python ./build-locally.py" description = "Build packages locally using the same setup scripts used in conda-forge's CI" diff --git a/recipe/build.sh b/recipe/build.sh index 4f69772..b2ad2a0 100644 --- a/recipe/build.sh +++ b/recipe/build.sh @@ -4,8 +4,8 @@ set -ex # https://github.com/conda-forge/pytorch-cpu-feedstock/blob/main/recipe/build_pytorch.sh # Number of CUDA archs reduced to fit CI resources if [[ ${cuda_compiler_version} != "None" ]]; then - if [[ ${cuda_compiler_version} == 12.6 ]]; then - export TORCH_CUDA_ARCH_LIST="5.0;6.0;6.1;7.0;7.5;8.0;8.6;8.9;9.0+PTX" + if [[ ${cuda_compiler_version} == 12.9 ]]; then + export TORCH_CUDA_ARCH_LIST="5.0;6.0;7.0;7.5;8.0;8.6;8.9+PTX" else echo "Unsupported CUDA compiler version. Edit build.sh to add target CUDA archs." exit 1 @@ -17,6 +17,6 @@ fi # avoid "error: 'value' is unavailable: introduced in macOS 10.13" export CXXFLAGS="${CXXFLAGS} -D_LIBCPP_DISABLE_AVAILABILITY" -export BUILD_VERSION=${package_version} +export BUILD_VERSION=${PKG_VERSION} $PYTHON -m pip install . -vv --no-deps --no-build-isolation diff --git a/recipe/conda_build_config.yaml b/recipe/conda_build_config.yaml index 97ef0fe..2a09044 100644 --- a/recipe/conda_build_config.yaml +++ b/recipe/conda_build_config.yaml @@ -2,3 +2,6 @@ c_stdlib_version: # [osx and x86_64] - '10.15' # [osx and x86_64] + +github_actions_labels: +- cirun-openstack-cpu-xlarge diff --git a/recipe/recipe.yaml b/recipe/recipe.yaml index 04d725a..a873647 100644 --- a/recipe/recipe.yaml +++ b/recipe/recipe.yaml @@ -1,18 +1,15 @@ context: - name: xformers version: "0.0.30" build_number: 0 - cuda_version: ${{ env.get("CONDA_OVERRIDE_CUDA", default="None")}} - cuda: ${{ "enabled" if cuda_version != "None" else "disabled" }} - cuda_build_string: cuda_${{ cuda_version | version_to_buildstring }} - string_prefix: ${{ cuda_build_string if cuda == "enabled" else "cpu_" }} + cuda_build_string: cuda_${{ cuda_compiler_version | version_to_buildstring }} + string_prefix: ${{ cuda_build_string if cuda_compiler_version != "None" else "cpu_" }} package: - name: ${{ name|lower }} + name: xformers version: ${{ version }} source: - - url: https://pypi.io/packages/source/x/xformers/xformers-${{ version }}.tar.gz + - url: https://pypi.org/packages/source/x/xformers/xformers-${{ version }}.tar.gz sha256: a12bf3eb39e294cdbe8a7253ac9b665f41bac61d6d98df174e34ef7bdb6f2fc4 - url: https://raw.githubusercontent.com/NVIDIA/cutlass/main/LICENSE.txt sha256: 80a7a18b73d41f64dd9ca881af35938f8de88b18c728703251f4c94d1299884d @@ -23,19 +20,10 @@ source: build: number: ${{ build_number }} - skip: win or cuda_compiler_version == "11.8" + skip: win string: ${{ string_prefix }}py${{ python | version_to_buildstring }}h${{ hash }}_${{ build_number }} - variant: - use_keys: - # use cuda from the variant config, e.g. to build multiple CUDA variants - - ${{ "cuda" if cuda == "enabled" }} - # this will down-prioritize the cuda variant versus other variants of the package - down_prioritize_variant: ${{ 1 if cuda == "enabled" else 0 }} script: file: build - env: - cuda_compiler_version: ${{ cuda_version | default('None') }} - package_version: ${{ version }} requirements: build: @@ -45,7 +33,7 @@ requirements: - cross-python_${{ target_platform }} - pytorch >=2.7 - - if: match(cuda_version, ">=12") + - if: cuda_compiler_version != "None" then: - cuda-driver-dev - cuda-cudart-dev @@ -62,25 +50,22 @@ requirements: - ${{ stdlib('c') }} - git - - if: cuda == "enabled" + - if: cuda_compiler_version != "None" then: - ${{ compiler('cuda') }} - - cuda-version ==${{ cuda_version }} + - cuda-version ==${{ cuda_compiler_version }} host: - python - pip - setuptools - - ${{ "pytorch * cuda*" if cuda == "enabled" }} - - ${{ "pytorch * cpu*" if cuda == "disabled" }} + - ${{ "pytorch * cuda*" if cuda_compiler_version != "None" }} + - ${{ "pytorch * cpu*" if cuda_compiler_version == "None" }} - pytorch - - if: cuda == "enabled" - then: - - cuda-version ==${{ cuda_version }} - - - if: match(cuda_version, ">=12") + - if: cuda_compiler_version != "None" then: + - cuda-version ==${{ cuda_compiler_version }} - cuda-driver-dev - cuda-cudart-dev - cuda-nvrtc-dev @@ -95,9 +80,9 @@ requirements: - python - numpy - pyre-extensions >=0.0.29 - - ${{ "pytorch * cuda*" if cuda == "enabled" }} - - ${{ "pytorch * cpu*" if cuda == "disabled" }} - - if: match(cuda_version, ">=12") + - ${{ "pytorch * cuda*" if cuda_compiler_version != "None" }} + - ${{ "pytorch * cpu*" if cuda_compiler_version == "None" }} + - if: cuda_compiler_version != "None" then: - cuda-driver-dev @@ -105,7 +90,7 @@ requirements: # not identical to list of host deps; we do need cuda-cudart, # cuda-driver-dev & cuda-nvml-dev have no run-exports from_package: - - if: match(cuda_version, ">=12") + - if: cuda_compiler_version != "None" then: - cuda-nvrtc-dev - cuda-nvtx-dev