packages icon indicating copy to clipboard operation
packages copied to clipboard

[BUG] CUDA 13.x is not API compatible with 12.x

Open ebendler opened this issue 3 months ago • 5 comments

Describe the bug CUDA 13.x is binary compatible at runtime with CUDA 12.x, but not API compatible at build-time.

To Reproduce Build stuff against CUDA 13.x instead of 12.x.

Expected behavior Packages build

Screenshots If applicable, add screenshots to help explain your problem.

Affected (please complete the following information):

  • Distro - I'm personally on F42, but applies to all
  • Package - most things that use CUDA libs

Additional context As a more general note (peep the email), CUDA 13.0 changed a looooot of API parameters - we made sure it is binary compatible with built CUDA programs, but it will probably take a while for downstream packages to get their calls updated when building from source.

If you don't want to carry a bunch of patches, you will need to build most things (like ffmpeg, see #5992 ) against 12.x, though you are fine to offer 13.x as a runtime or -dev packages.

ebendler avatar Sep 08 '25 14:09 ebendler

Our main policy states that we ship the latest packages, and we currently lack one that mandates downgrading or holding back updates for keeping API/ABI compat. Additionally the current design of subatomic makes it difficult to retain older package versions (since they're overwritten by default).

But I do think we should do something about this.

madonuko avatar Sep 08 '25 15:09 madonuko

On the plus side, I think ffmpeg is the only package that is trying to to build against any of the CUDA libraries.

I assume libnpp does something to help there, but maybe not enough to patch it manually on your side. Main problem there at the moment is that the patches need to be rebased to 8.0.

ebendler avatar Sep 08 '25 16:09 ebendler

On the plus side, I think ffmpeg is the only package that is trying to to build against any of the CUDA libraries.

I assume libnpp does something to help there, but maybe not enough to patch it manually on your side. Main problem there at the moment is that the patches need to be rebased to 8.0.

We build it with similar methods to Negativo17 so usual practice is waiting to see what he does.

GildedRoach avatar Sep 08 '25 16:09 GildedRoach

Good news then, he dropped npp because upstream says it is deprecated but they haven't made that official yet.

I'll send in a PR with the other mods needed for ffmpeg 8.0

ebendler avatar Sep 08 '25 16:09 ebendler