[PR #1848] [CLOSED] Seamless CUDA 12 & 13 Docker Support #3715

Closed
opened 2026-11-07 15:30:15 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1848
Author: @rafal-prasal
Created: 10/10/2026
Status: ❌ Closed

Base: main ← Head: feature/docker_cuda12


📝 Commits (5)

  • e92fb32 feature/docker_cuda12
  • a3168b1 autodiscovery of cuda in docker-entrypoint.sh
  • f2bbed8 autodiscovery of cuda in docker-entrypoint.sh
  • 622b3d6 Merge branch 'main' into feature/docker_cuda12
  • 262127b Fix Dockerfile comment formatting

📊 Changes

3 files changed (+61 additions, -44 deletions)

View changed files

📝 Dockerfile (+8 -43)
➕ docker-engine-build-cuda.py (+38 -0)
📝 docker-entrypoint.sh (+15 -1)

📄 Description

Seamless CUDA 12 & 13 Docker Support

Issue: Resolves #

  • fixes building of cuda13 docker image (python script embedded within Dockerfile did not work)
  • CUDA13 and CUDA12 can be built using the same Dockerfile and Scripting

default is CUDA13, image for cuda12 has to be explicitly given

Summary

user may specify CUDA docker base image.

image contains CUDA_VERSION variable, which allows autodiscovery
CUDA12 architectures 60, 61, 70 + flag STRATA_EXPERIMENTAL_SM60=1
CUDA13 architectures 75, 80, 86, 89, 120

it saves headache for people, who do not want to mess with their HOST os, and do things in Docker.

What changed

Dockerfile

  • added CUDA_IMAGE argument, default CUDA13
  • removed default from CUDA_ARCHITECTURES
  • carved out python script, which became docker-build-engine-cuda.py

docker-build-engine-cuda.py (not sure if should not be replaced by setup.py command call)

  • autodiscovery of (accordingly to CUDA_VERSION variable provided by nvidia/cuda image)

    • architectures
      • CUDA12 = 60, 61, 70
      • CUDA13 = 75, 80, 86, 89, 120
    • engine directory,
      • CUDA12 = engine-cuda12
      • CUDA13 = engine
    • parameter
      • CUDA12 = STRATA_EXPERIMENTAL_SM60=1

Extra Notes

changes are absolutely minimal to what was already there and was not working with docker 29.X.X


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1848 **Author:** [@rafal-prasal](https://github.com/rafal-prasal) **Created:** 10/10/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/docker_cuda12` --- ### 📝 Commits (5) - [`e92fb32`](https://github.com/Niko1221/Strata/commit/e92fb32969523496d9b68ec106383b89b70f1f45) feature/docker_cuda12 - [`a3168b1`](https://github.com/Niko1221/Strata/commit/a3168b1f976ce24153d22893e9394950f8e69173) autodiscovery of cuda in docker-entrypoint.sh - [`f2bbed8`](https://github.com/Niko1221/Strata/commit/f2bbed80c0ba122614c0c76621980a04121b5356) autodiscovery of cuda in docker-entrypoint.sh - [`622b3d6`](https://github.com/Niko1221/Strata/commit/622b3d69b60204bb7b32dfe6d258c2a72532f361) Merge branch 'main' into feature/docker_cuda12 - [`262127b`](https://github.com/Niko1221/Strata/commit/262127bb14d922b09802c8b4f09c96d9ff1b2539) Fix Dockerfile comment formatting ### 📊 Changes **3 files changed** (+61 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+8 -43) ➕ `docker-engine-build-cuda.py` (+38 -0) 📝 `docker-entrypoint.sh` (+15 -1) </details> ### 📄 Description ## Seamless CUDA 12 & 13 Docker Support Issue: Resolves # - fixes building of cuda13 docker image (python script embedded within Dockerfile did not work) - CUDA13 and CUDA12 can be built using the same Dockerfile and Scripting default is CUDA13, image for cuda12 has to be explicitly given ## Summary user may specify CUDA docker base image. image contains CUDA_VERSION variable, which allows autodiscovery CUDA12 architectures 60, 61, 70 + flag STRATA_EXPERIMENTAL_SM60=1 CUDA13 architectures 75, 80, 86, 89, 120 it saves headache for people, who do not want to mess with their HOST os, and do things in Docker. ## What changed Dockerfile - added CUDA_IMAGE argument, default CUDA13 - removed default from CUDA_ARCHITECTURES - carved out python script, which became docker-build-engine-cuda.py docker-build-engine-cuda.py (not sure if should not be replaced by setup.py command call) - autodiscovery of (accordingly to CUDA_VERSION variable provided by nvidia/cuda image) - - architectures - - - CUDA12 = 60, 61, 70 - - - CUDA13 = 75, 80, 86, 89, 120 - - engine directory, - - - CUDA12 = engine-cuda12 - - - CUDA13 = engine - - parameter - - - CUDA12 = STRATA_EXPERIMENTAL_SM60=1 ## Extra Notes changes are absolutely minimal to what was already there and was not working with docker 29.X.X --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:30:15 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3715
No description provided.