fix: upgrade Docker build to CUDA 12.6 and Python 3.11#362
Open
sameeul wants to merge 1 commit into
Open
Conversation
- Replace cudatoolkit=11.5 conda packages with cuda-version=12.6, cuda-nvcc=12.6, cuda-cudart-dev=12.6, libcufft-dev (conda-forge CUDA 12 package names that include nvcc) - Add -DCMAKE_CUDA_COMPILER=$CONDA_PREFIX/bin/nvcc so CMake finds the conda nvcc without relying on check_language(CUDA) discovery - Bump PYTHON=3.9 -> 3.11 in build_conda.sh (3.9 is EOL) - Update Dockerfile base image from nvidia/cuda:11.5.2-runtime-ubuntu20.04 to nvidia/cuda:12.6.0-runtime-ubuntu22.04 - Update hardcoded nyxus-3.9 env path in publish_docker.yml to nyxus-3.11 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
darkclad
approved these changes
Jul 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades the GPU Docker build to CUDA 12.6 and Python 3.11:
nvidia/cuda:11.5.2-runtime-ubuntu20.04→nvidia/cuda:12.6.0-runtime-ubuntu22.04conda_linux_gpu.txt: replacecudatoolkit=11.5/cudatoolkit-dev=11.5with the CUDA 12.6 conda-forge packages that actually shipnvcc(cuda-version=12.6,cuda-nvcc=12.6,cuda-cudart-dev=12.6,libcufft-dev)build_conda.sh: add-DCMAKE_CUDA_COMPILER=$CONDA_PREFIX/bin/nvccso CMake doesn't rely oncheck_language(CUDA)discovery, and bumpPYTHON=3.9→3.11(3.9 is EOL)publish_docker.yml: update the hardcodednyxus-3.9env path tonyxus-3.11Root cause (the CUDA fix)
cudatoolkit-dev=11.5.0installs headers/libs but doesn't placenvccwhere CMake'scheck_language(CUDA)looks, so CMake reportedCMAKE_CUDA_COMPILER=NOTFOUNDand hit the fatal error inCMakeLists.txt. The CUDA 12.6 conda-forge packages shipnvcc, and passing-DCMAKE_CUDA_COMPILERexplicitly makes discovery deterministic.Rebased onto the z5 3.0.1 upgrade
This branch previously carried two extra commits that worked around the old z5 2.0.20 + xtensor stack in the Docker build:
z5/multiarray/xtensor_access.hxxinstead ofz5/z5.hxx"Both are moot now that the z5 3.0.1 upgrade is merged into
main: CMake looks forz5/z5.hxxagain, and the z5 C++ headers come from thez5py >=3.0.1conda package inconda_cpp.txt(no manual header install needed). The branch has been rebased onto the currentmainand those two commits dropped, leaving only the Docker/CUDA/Python change.Note the Python 3.11 bump is now also required for the GPU build to solve, not just a nicety: z5py 3.0.x has no Python 3.10/3.9 build (3.11+ only), and
build_conda.shpulls z5 viaconda_cpp.txt(z5py >=3.0.1).Test plan
Publish Docker imageworkflow on this branch and confirm the "Run Build Script" step passes (CUDA build + z5 3.0.1 via z5py on Python 3.11).🤖 Generated with Claude Code