sunnyyang/cuda-glibc-patch

Project ID: 206372

Description

NVIDIA CUDA Glibc Compatibility Patch for Fedora 43

This repository provides a crucial RPM package that applies a community-vetted patch to the NVIDIA CUDA Toolkit. It is designed specifically and exclusively for Fedora 43 to resolve compilation errors caused by an incompatibility with the modern glibc (version 2.42+) included in this release.


IMPORTANT WARNING

  • This is a community-provided, unofficial patch. It is not supported by NVIDIA.
  • This package is ONLY FOR FEDORA 43. Do NOT use this on other Fedora versions (like Fedora 42 or older) as it is unnecessary and may cause issues.
  • You must have the NVIDIA CUDA Toolkit installed on your system before using this patch.

How it Works:

  • This package does not contain or distribute any proprietary code from NVIDIA.
  • It applies a patch locally to the math_functions.h header file from your existing CUDA installation.
  • The process is fully reversible. Uninstalling this package will cleanly restore the original, unmodified file.

Credit: The patch itself is sourced from the official Arch Linux community, which developed this fix for the same glibc incompatibility issue. The original patch can be found here.

Installation Instructions

Step 1: Install NVIDIA CUDA Toolkit on Fedora 43

First, you must install the CUDA Toolkit from the official NVIDIA repository.

Note: NVIDIA may not have an official fedora43 repository available immediately upon its release. You may need to adapt the URL from a previous version (like fedora42). Always check the NVIDIA CUDA download page for the latest official instructions.

Here is an example of how you might add the repository, adapting from Fedora 42. You must verify and possibly change this URL for Fedora 43.

# EXAMPLE ONLY - VERIFY THE URL FOR FEDORA 43! sudo dnf config-manager addrepo --from-repofile=https://developer.download.nvidia.com/compute/cuda/repos/fedora42/x86_64/cuda-fedora42.repo # Install the full CUDA Toolkit sudo dnf install cuda-toolkit

Step 2: Enable this COPR Repository

Enable the sunnyyang/cuda-glibc-patch repository on your system.

sudo dnf copr enable sunnyyang/cuda-glibc-patch

Step 3: Install the Patch Package

Install the patch package. This will automatically find your CUDA installation and apply the fix.

sudo dnf install cuda-glibc-patch

That's it! Your CUDA installation on Fedora 43 is now patched and ready for compiling your projects.


Uninstallation

If you need to revert the patch, simply remove the patch package. This will automatically restore the original header file.

sudo dnf remove cuda-glibc-patch

To completely remove the CUDA Toolkit itself, there are two methods:

Method 1: Safe Removal This method removes only the NVIDIA CUDA packages, leaving shared dependencies like gcc and other development tools installed on your system.

sudo dnf remove --noautoremove "cuda*" "*cublas*" "*cufft*" "*cufile*" "*curand*" "*cusolver*" "*cusparse*" "*gds-tools*" "*npp*" "*nvjpeg*" "nsight*" "*nvvm*"

Method 2: Full Cleanup (Use with Caution) This method removes NVIDIA CUDA packages AND any dependencies that are no longer needed by other packages. Warning: On minimal systems or containers, this may also remove essential development tools like gcc and make.

sudo dnf remove "cuda*" "*cublas*" "*cufft*" "*cufile*" "*curand*" "*cusolver*" "*cusparse*" "*gds-tools*" "*npp*" "*nvjpeg*" "nsight*" "*nvvm*"

Active Releases

The following unofficial repositories are provided as-is by owner of this project. Contact the owner directly for bugs or issues (IE: not bugzilla).

Release Architectures Repo Download
Fedora 43 x86_64 (13)* Fedora 43 (7 downloads)

* Total number of downloaded packages.