[Bug 287895] graphics/nvidia*: cuda/opencl does not work on RTX 5000 series (5070) card.

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 04 Jul 2025 02:13:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287895

--- Comment #7 from Tomasz "CeDeROM" CEDRO <tomek@cedro.info> ---
Thank you TA, driver works fine, but still no CUDA / OpenCL. I think this may
be related to this nvidia firmware or libc6-shim maybe both.

hexagon% nvidia-smi
Fri Jul  4 04:09:23 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 575.64.03              Driver Version: 575.64.03      CUDA
Version: N/A      |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile
Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util 
Compute M. |
|                                         |                        |           
   MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 5070        Off |   00000000:02:00.0  On |           
      N/A |
|  0%   37C    P0             28W /  250W |     849MiB /  12227MiB |     21%   
  Default |
|                                         |                        |           
      N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                   
          |
|  GPU   GI   CI              PID   Type   Process name                       
GPU Memory |
|        ID   ID                                                              
Usage      |
|=========================================================================================|
|    0   N/A  N/A            1910      G   /usr/local/bin/firefox              
   288MiB |
|    0   N/A  N/A           82607      G   /usr/local/libexec/Xorg             
   331MiB |
|    0   N/A  N/A           87624      G   /usr/local/bin/enlightenment        
   152MiB |
+-----------------------------------------------------------------------------------------+


hexagon% nv-sglrun nvidia-smi
/usr/local/lib/libc6-shim/libc6.so: shim init
Fri Jul  4 04:09:32 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 575.64.03              Driver Version: 575.64.03      CUDA
Version: 12.9     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile
Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util 
Compute M. |
|                                         |                        |           
   MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 5070        Off |   00000000:02:00.0  On |           
      N/A |
|  0%   36C    P0             27W /  250W |     849MiB /  12227MiB |      0%   
  Default |
|                                         |                        |           
      N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                   
          |
|  GPU   GI   CI              PID   Type   Process name                       
GPU Memory |
|        ID   ID                                                              
Usage      |
|=========================================================================================|
+-----------------------------------------------------------------------------------------+


hexagon% nv-sglrun clpeak
/usr/local/lib/libc6-shim/libc6.so: shim init

Platform: NVIDIA CUDA
  Device: NVIDIA GeForce RTX 5070
    Driver version  : 575.64.03 (FreeBSD)
    Compute units   : 48
    Clock frequency : 2610 MHz

    Global memory bandwidth (GBPS)
zsh: segmentation fault  nv-sglrun clpeak


hexagon% pkg info -x nvidia
linux-nvidia-libs-devel-575.64.03
nvidia-driver-devel-575.64.03.1402000
nvidia-drm-61-kmod-devel-575.64.03.1402000_2
nvidia-drm-kmod-devel-575.64.03
nvidia-settings-570.169
nvidia-xconfig-570.169


hexagon% uname -a
FreeBSD hexagon 14.2-RELEASE-p1 FreeBSD 14.2-RELEASE-p1 GENERIC amd64

-- 
You are receiving this mail because:
You are the assignee for the bug.