Skip to content

cuda-host rejects binary-compatible cubins on newer same-major GPUs #378

Closed

Description

@niklebedenko

Description

cuda-host rejects an artifact emitted for an older minor compute capability when the execution GPU has the same major capability, although NVIDIA guarantees binary compatibility in this direction. For example, route selection rejects sm_80 on sm_86 before the embedded NVVM IR can be compiled to and loaded as an sm_80 cubin.

NVIDIA's binary compatibility contract permits a cubin to run when the execution GPU has the same compute-capability major version and a minor version greater than or equal to the cubin target:
https://docs.nvidia.com/cuda/archive/13.2.1/cuda-programming-guide/01-introduction/cuda-platform.html#binary-compatibility

Minimal reproducer

On an sm_86 GPU, run the embedded NVVM IR path with an sm_80 target:

cargo oxide run vecadd --emit-nvvm-ir --arch sm_80

Expected behavior

cuda-host selects the cubin route, produces an sm_80 cubin from the embedded NVVM IR, loads it on sm_86, and executes successfully.

Actual behavior

Route selection returns IncompatibleExecutionTarget because only exact capabilities and the existing pre-Blackwell-to-Blackwell PTX bridge are accepted.

Environment

  • GPU: NVIDIA GeForce RTX 3080 (sm_86)
  • Emitted target: sm_80
  • Driver: 580.159.04
  • CUDA toolkit: 12.8
  • cuda-oxide base: 29396b7f643b1d42eb4d80b7347ad27bb011525a

Additional context

The compatible direction is same major with execution minor greater than or equal to emitted minor. Newer-to-older, cross-major, and architecture-suffixed forwarding must retain their existing fail-closed or explicit bridge behavior.

Activity

  1. added
    bug
    host-apis
    cuda-feature
    tests
    on Jul 21, 2026
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

    bugcuda-featurehost-apistests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions