Skip to content

CUDA build fails on every branch: candle-kernels redefines __hmax_nan/__hmin_nan under CUDA 12.6 #86

Closed

Description

@b-re-w

build-cuda-wheel.yml has failed on every run since 2026-10-04, develop and main included (latest: run 38780125426 on #85). The CUDA build claim is therefore unproven on every branch.

Cause, from the log: candle-kernels 0.11.0 src/compatibility.cuh defines __hmax_nan/__hmin_nan under #if __CUDA_ARCH__ < 800, and CUDA 12.6's cuda_fp16.hpp (lines 3288/3305) now defines them for every arch. With CUDA_COMPUTE_CAP=75:

src/compatibility.cuh(11): error: function "__hmax_nan(__half, __half)" has already been defined
2 errors detected in the compilation of "src/affine.cu".

Done when

  • The CUDA build is green with compute capability 75 (vendored candle-kernels with a patch guarding the definitions on the toolkit version, or a toolkit pin that is recorded with its reason).
  • The guard is nullified once to show the build goes red again.

Activity

  1. added 2 commits that reference this issue on Oct 15, 2026
  2. b-re-w commented on Oct 16, 2026

    @b-re-w
    MemberAuthor

    Landed in develop via #88

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions