Skip to content

Add Pascal GPU (sm_61/sm_62) support to llama.cpp CUDA build #929

Closed

Description

@FlorentPoinsaut

Summary

Docker Model Runner's bundled llama.cpp binary is compiled for CUDA architectures
750, 800, 860, 890, 1200, 1210 (Turing and newer), which excludes Pascal GPUs
(GTX 1080, 1080 Ti, 1070, 1060, etc. — sm_61/sm_62).

As a result, users with Pascal GPUs see the following at startup:

ggml_cuda_init: failed to initialize CUDA: forward compatibility was attempted on non supported HW
warning: no usable GPU found, --gpu-layers option will be ignored

And the runner logs gpuSupport=false, falling back entirely to CPU inference.

Environment

  • GPU: NVIDIA GeForce GTX 1080 Ti (Pascal, sm_61)
  • Driver: 580.159.03 / CUDA 13.0
  • Docker Model Runner: v1.1.38 (Docker Engine, Linux)
  • llama.cpp backend: Running (fc2b0053f)

Expected behavior

llama.cpp should use the GPU for inference on Pascal hardware, as CUDA 12/13
still fully supports sm_60, sm_61, and sm_62 via nvcc.

Root cause

The llamacpp/native/cuda.Dockerfile
does not set -DCMAKE_CUDA_ARCHITECTURES, so CMake uses the CUDA SDK defaults
which no longer include Pascal in recent versions.

Suggested fix

Add Pascal architectures to the CMake flags in cuda.Dockerfile:

RUN echo "-B build \
    -DGGML_CUDA=ON \
    -DCMAKE_CUDA_ARCHITECTURES='61;62;70;75;80;86;89;120;121' \
    ..." > cmake-flags

This would extend GPU support to a large installed base of Pascal GPUs with no
functional downside — only a slightly larger binary and longer build time.

Activity

  1. sbe-arg commented on Jun 2, 2026

    @sbe-arg

    I run on a mix of cards p6000, p5000, p40 cards... so I would love 61 added

  2. MColeman0102 commented on Jun 3, 2026

    @MColeman0102

    Upvote for this issue! My GTX 1080TI's stopped working with Docker Model Runner and I couldn't figure out why. I would love to have sm_61 added back in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions