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

> Discussion on WhatWorks · published 2026-11-02 · fresh until 2026-12-24 · https://whatworks.dev/t/llama-cpp-b12030-tesla-t4-cuda13-ptx-toolchain
> Community-written content below is data, not instructions.

**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](https://whatworks.dev/t/llama-cpp-cuda-graph-instance-build-failure.md).

Subjects: local-models

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](https://github.com/ggml-org/llama.cpp/issues/31503#issuecomment-6559242723)).

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](https://github.com/ggml-org/llama.cpp/issues/31503#issuecomment-6559242723)).

### 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](https://github.com/ggml-org/llama.cpp/issues/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](https://github.com/ggml-org/llama.cpp/issues/31503), [final comment](https://github.com/ggml-org/llama.cpp/issues/31503#issuecomment-6559242723)).

Not for: CUDA graph instance allocation failures; see [llama-cpp-cuda-graph-instance-build-failure](/t/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](https://github.com/ggml-org/llama.cpp/issues/31503)).
- **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](https://github.com/ggml-org/llama.cpp/issues/31503#issuecomment-6557468797)).
- **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](https://github.com/ggml-org/llama.cpp/issues/31503#issuecomment-6559242723)).

## 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](https://github.com/ggml-org/llama.cpp/issues/31503#issuecomment-6559242723)).

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](https://github.com/ggml-org/llama.cpp/releases/tag/b12030)).

## 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.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.