published fresh until

llama.cpp: why does CUDA 13 PTX fail on a Tesla T4?

Summary As of November 2026, a llama.cpp T4 reporter traces the CUDA 13 PTX failure to driver userspace and compatibility-library injection. Compare the host-side remedies they report before blaming b12030 or changing model settings (checked 2026-11-02).

Not for CUDA graph instance allocation failures, see llama-cpp-cuda-graph-instance-build-failure.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Check which driver userspace the llama.cpp container receives: HyperForce's follow-up attributes the T4 PTX failure to compatibility-library injection and reports host-side recovery, rather than a b12030 kernel defect (November 1 update).

Do first: inspect whether the affected container receives the image's /usr/local/cuda/compat/libcuda.so.615.71.09 or the host's older driver userspace, the distinction HyperForce identifies in the final update (reported diagnosis).

Diagnostic: CUDA error: the provided PTX was compiled with an unsupported toolchain.

HyperForce reports “CUDA error: the provided PTX was compiled with an unsupported toolchain.” during initialization in ggml_cuda_kernel_can_use_pdl, at cudaFuncGetAttributes() (ggml-org/llama.cpp #31503, opened November 1).

Evidence: an official build baseline plus one reporting team's comparisons and later diagnosis. The issue is still open even though the author says the problem is resolved on their side (issue, final comment).

Not for: CUDA graph instance allocation failures; see llama-cpp-cuda-graph-instance-build-failure.

Findings

  • Original boundary: ghcr.io/ggml-org/llama.cpp:server-cuda13, linux/amd64, Ubuntu 24.04 containers, Tesla T4 sm_75, driver 610.43.02, host CUDA 13.3. HyperForce initially reports failures with b11176, b11243 and b12030, but successful deployments with b12004. The report also reproduces with simpler model configurations, so reducing context is not its stated remedy (original report).
  • New comparison changes the diagnosis: the same author then reports that the same b12030 image, ID 03dc44df4107, loads on another T4 host with the same nominal driver version. That comparison makes a universal image/T4 incompatibility or source-level CUDA regression an unsupported conclusion (first follow-up).
  • Attributed cause: HyperForce's final comment says the image contains CUDA 13.4 userspace 615.71.09. They attribute the failure on container-toolkit 1.17.5 to injection of host 13.3 userspace, whose JIT rejects PTX newer than it supports. Their toolkit 1.19.1+ path receives compatibility userspace and runs image builds that failed with the older toolkit. This is the reporting team's diagnosis, not an upstream maintainer finding (final update).

Reported remedies and release status

HyperForce reports that setting LD_LIBRARY_PATH=/usr/local/cuda/compat made the image load on the older-toolkit host. They also report that upgrading that host's driver to 615.71.10 allowed normal loading and their four acceptance checks, including 256K context, tensor split and MTP. These are source-reported host remedies, not a released llama.cpp patch (final update).

The official b12030 prerelease, published November 1 by github-actions[bot], describes “hexagon : fix DMA transfers with strides > 24 bits”. It does not announce a T4/PTX repair. There is no llama.cpp repair release identified for this host-userspace case in the cited sources (official build notes).

Limits

One reporting team supplies the host comparisons and remedy outcomes. Its final diagnosis supersedes its initial build-environment-drift hypothesis. The evidence does not establish an all-GPU compatibility matrix or make a driver/toolkit version alone sufficient without checking the userspace actually injected into the container.

Checked 2026-11-02.

Started from a post by @github-actions[bot], packaged by the editor. Original post

Subjects

More in local models

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# llama.cpp: why does CUDA 13 PTX fail on a Tesla T4?
Summary: As of November 2026, a llama.cpp T4 reporter traces the CUDA 13 PTX failure to driver userspace and compatibility-library injection. Compare the host-side remedies they report before blaming b12030 or changing model settings (checked 2026-11-02).
Copy for agent
get the whatworks thread llama-cpp-b12030-tesla-t4-cuda13-ptx-toolchain and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread llama-cpp-b12030-tesla-t4-cuda13-ptx-toolchain
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks