Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .azure-pipelines/azure-pipelines-linux.yml

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

124 changes: 117 additions & 7 deletions .github/workflows/conda-build.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,125 @@
# This file was added automatically by admin-migrations. Do not modify.
# It ensures that Github Actions can run once rerendered for the first time.
# 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:
workflow_dispatch:
push:

pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

jobs:
build:
name: Disabled build
runs-on: ubuntu-slim
if: false
name: ${{ matrix.CONFIG }}
runs-on: ${{ matrix.runs_on }}
timeout-minutes: 360
strategy:
fail-fast: false
max-parallel: 50
matrix:
include:
- CONFIG: linux_64_cuda_compiler_version12.9mpinompi
UPLOAD_PACKAGES: True
os: ubuntu
runs_on: ['ubuntu-latest']
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9
- CONFIG: linux_64_cuda_compiler_version12.9mpiopenmpi
UPLOAD_PACKAGES: True
os: ubuntu
runs_on: ['ubuntu-latest']
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9
- CONFIG: linux_64_cuda_compiler_version13.0mpinompi
UPLOAD_PACKAGES: True
os: ubuntu
runs_on: ['ubuntu-latest']
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9
- CONFIG: linux_64_cuda_compiler_version13.0mpiopenmpi
UPLOAD_PACKAGES: True
os: ubuntu
runs_on: ['ubuntu-latest']
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9
steps:
- run: exit 0

- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- 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: ${{ contains(runner.arch, 'ARM') && 'C' || '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 }}
1 change: 1 addition & 0 deletions .scripts/build_steps.sh

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

33 changes: 27 additions & 6 deletions .scripts/run_docker_build.sh

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

7 changes: 0 additions & 7 deletions build-locally.py

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

5 changes: 2 additions & 3 deletions recipe/cuquantum-python/cuquantum-python-tests
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ LD_PRELOAD="${CUDA_STUB_LIBRARY}" python -c "import cuquantum.bindings.cudensity

echo "cuQuantum Python and submodules are importable."

# TODO: uncomment this out when missing libnvidia-ml.so is fixed
# LD_PRELOAD="${CUDA_STUB_LIBRARY}" python -m cuquantum --includes --libs --target custatevec || exit 1
# echo "cuQuantum Python custatevec module is functional"
LD_PRELOAD="${CUDA_STUB_LIBRARY}" python -m cuquantum --includes --libs --target custatevec || exit 1
echo "cuQuantum Python custatevec module is functional"

LD_PRELOAD="${CUDA_STUB_LIBRARY}" python -m cuquantum --includes --libs --target cutensornet || exit 1
echo "cuQuantum Python cutensornet module is functional"
Expand Down
2 changes: 1 addition & 1 deletion recipe/custatevec/cusv-tests
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if [[ -n "${CUQUANTUM_VER}" ]] ; then
compile_command=(
"${NVCC:-"nvcc"}" "${NVCC_FLAGS:-"--verbose"}" "--std=c++17"
"-I${PREFIX}/include" "-L${PREFIX}/lib" "-L${PREFIX}/lib/stubs"
"-lcustatevec" "-lnvidia-ml" "${example}" "-o" "${example}.out"
"-lcustatevec" "${example}" "-o" "${example}.out"
)
echo "${compile_command[@]}"
"${compile_command[@]}"
Expand Down
26 changes: 11 additions & 15 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{% set package = "cuquantum" %}
# Make sure the component versions are consistent with the SDK version!
{% set version = "26.01.0.4" %}
{% set cudm_version = "0.4.0" %}
{% set cusv_version = "1.12.0" %}
{% set cutn_version = "2.11.0" %}
{% set cupp_version = "0.2.0" %}
{% set cust_version = "0.2.0" %}
{% set version = "26.03.0.5" %}
{% set cudm_version = "0.5.0" %}
{% set cusv_version = "1.13.0" %}
{% set cutn_version = "2.12.0" %}
{% set cupp_version = "0.3.0" %}
{% set cust_version = "0.3.0" %}

{% set sdk_version = version.split(".") %}
{% set sdk_year = sdk_version[0] | int %}
Expand Down Expand Up @@ -61,13 +61,13 @@ package:

source:
- url: {{ devzone }} # [((cuda_compiler_version or "").startswith("12") or (cuda_compiler_version or "").startswith("13")) and (linux64 or aarch64)]
sha256: a6120312154f51bddfa50edc9a11d239ed8a2630b893fccf953a73780d656134 # [(cuda_compiler_version or "").startswith("12") and linux64]
sha256: 64781007659513442344f9c9e4e04ead717c991798ccec716808699b99a95d93 # [(cuda_compiler_version or "").startswith("13") and linux64]
sha256: 1ec3b95b4788a5e7e7d935d25e0cb7f28db8085ecdf851371581bca66be01576 # [(cuda_compiler_version or "").startswith("12") and aarch64]
sha256: 43dc4eee6c7dc2564dc36396bc7cb0775e631c28052c470ebb20fdbf1dd426c1 # [(cuda_compiler_version or "").startswith("13") and aarch64]
sha256: f66e97cef65700c4a6c93bb4dc312cf8f9c2abbedf7a7731faa8e28062c9adec # [(cuda_compiler_version or "").startswith("12") and linux64]
sha256: cdb873e69fc16c51a09e23b3a3b04cb9028f1141715764437cda3eaa9f27dd56 # [(cuda_compiler_version or "").startswith("13") and linux64]
sha256: 2220ce633963b4c1dd8606cf2ac4529ccef1fca52bfbdb9708ecacf963cca35e # [(cuda_compiler_version or "").startswith("12") and aarch64]
sha256: d0f6e0eee9a9de2241af051a4c4c2884cbf20d7ad6758ad07757dc12395b5528 # [(cuda_compiler_version or "").startswith("13") and aarch64]

- url: {{ github }} # [linux64 or aarch64]
sha256: 3cba5b907af9ba2609b813087254fa8f4f7cad8a39c8ab4a49cff90d6f458b04 # [linux64 or aarch64]
sha256: 85c36c6c896db98b268cfcd18bd97659cc2f567de461ff86e71f30e4c79a68de # [linux64 or aarch64]

build:
number: {{ build_num }}
Expand Down Expand Up @@ -383,8 +383,6 @@ outputs:
- {{ compiler("cuda") }}
- libcublas
post-link: post-link
missing_dso_whitelist:
- libnvidia-ml.so
requirements:
build:
- {{ stdlib('c') }}
Expand Down Expand Up @@ -455,8 +453,6 @@ outputs:
- {{ compiler('cuda') }}
- cuda-bindings
- cuda-python
missing_dso_whitelist:
- libnvidia-ml.so
requirements:
build:
- {{ stdlib('c') }}
Expand Down
Loading