Skip to content

cuda_nvcc: also patch math_functions.hpp for glibc 2.42#498678

Merged
GaetanLepage merged 1 commit into
NixOS:masterfrom
samuela:cuda_nvcc-fix-math-functions-hpp
Mar 22, 2026
Merged

cuda_nvcc: also patch math_functions.hpp for glibc 2.42#498678
GaetanLepage merged 1 commit into
NixOS:masterfrom
samuela:cuda_nvcc-fix-math-functions-hpp

Conversation

@samuela

@samuela samuela commented Mar 11, 2026

Copy link
Copy Markdown
Member

Description

The existing glibc 2.42 compatibility patch (added in #484031) fixes function signatures in math_functions.h but misses math_functions.hpp, which has the same rsqrt/sinpi/cospi functions wrapped in __func__() macros. Without throw() annotations on these, C++ compilation against CUDA headers fails when glibc 2.42 declares the same functions with throw().

Things done

  • Built on platform(s)
    • x86_64-linux

The existing glibc 2.42 compatibility patch fixes function signatures
in math_functions.h but misses math_functions.hpp, which has the same
rsqrt/sinpi/cospi functions wrapped in __func__() macros. Without
throw() annotations on these, C++ compilation fails when glibc 2.42
declares the same functions with throw().
@samuela samuela requested a review from a team March 11, 2026 00:28
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 6.topic: cuda Parallel computing platform and API labels Mar 11, 2026
@ConnorBaker ConnorBaker self-assigned this Mar 11, 2026
@ConnorBaker

Copy link
Copy Markdown
Contributor

What did you do to verify it/downstream consumers still correctly build and link?

@ConnorBaker ConnorBaker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GaetanLepage so long as torch/vllm build like we discussed, this is good to merge!

@ConnorBaker ConnorBaker moved this from New to 👀 Awaits reviews in CUDA Team Mar 11, 2026
@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Mar 12, 2026
@samuela

samuela commented Mar 12, 2026

Copy link
Copy Markdown
Member Author

What did you do to verify it/downstream consumers still correctly build and link?

only private stuff thus far, happy to try to address breakages if there are any

@GaetanLepage GaetanLepage left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GaetanLepage GaetanLepage added this pull request to the merge queue Mar 22, 2026
Merged via the queue into NixOS:master with commit b6a834e Mar 22, 2026
39 of 41 checks passed
@github-project-automation github-project-automation Bot moved this from 👀 Awaits reviews to ✅ Done in CUDA Team Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: cuda Parallel computing platform and API 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants