Skip to content

Commit

Permalink
Address link failures
Browse files Browse the repository at this point in the history
  • Loading branch information
bmhowe23 committed Feb 8, 2025
1 parent 41354f2 commit c8aaf7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ jobs:
TAGS+=" -t ghcr.io/nvidia/cudaqx-dev:latest-py${{ matrix.python }}-${{ matrix.platform }}"
BUILDARGS="--build-arg base_image=ghcr.io/nvidia/cuda-quantum-devdeps:manylinux-${{ matrix.platform }}-cu12.0-gcc11-main"
BUILDARGS+=" --build-arg python_version=${{ matrix.python }}"
# Failure to link if there are too many jobs
BUILDARGS+=" --build-arg cudaq_ninja_jobs_arg="-j 8"
docker build $TAGS $BUILDARGS -f docker/build_env/cudaqx.wheel.Dockerfile .
docker push -a ghcr.io/nvidia/cudaqx-dev
shell: bash --noprofile --norc -euo pipefail {0}
Expand Down
3 changes: 2 additions & 1 deletion docker/build_env/cudaqx.wheel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ARG base_image=ghcr.io/nvidia/cuda-quantum-devdeps:manylinux-amd64-cu12.0-gcc11-
FROM ${base_image}

ARG python_version=3.10
ARG cudaq_ninja_jobs_arg=""

LABEL org.opencontainers.image.description="Dev tools for building and testing CUDA-QX libraries"
LABEL org.opencontainers.image.source="https://github.com/NVIDIA/cudaqx"
Expand All @@ -28,5 +29,5 @@ RUN mkdir -p /workspaces/cudaqx/cudaq && cd /workspaces/cudaqx/cudaq \
&& git remote add origin https://github.com/${CUDAQ_REPO} \
&& git fetch -q --depth=1 origin ${CUDAQ_COMMIT} \
&& git reset --hard FETCH_HEAD \
&& bash ../build_cudaq.sh --python-version ${python_version} \
&& bash ../build_cudaq.sh --python-version ${python_version} ${cudaq_ninja_jobs_arg} \
&& rm -rf build

0 comments on commit c8aaf7c

Please sign in to comment.