Skip to content

SveSop/nvidia-libs

Repository files navigation

NVIDIA Libs

Release: 0.7.16
Recommended nVidia proprietary driver branch 550+ for best compatibility with OptiX and CUDA.

CUDA SDK >11.5 should now mostly be supported. There can still be missing functions
Running CUFFT samples with CUDA 12.3 or higher is known to crash.

Older drivers that does not support SDK 10 and older may also fail/crash. Report any crashes with
logs on the issue page. However these are highly outdated drivers in general and will probably not
see too much attention in that regard.

Create logs typically with: WINEDEBUG=-all,+nvcuda wine ./yourapp.exe > yourapp.log 2>&1

Library contains:
nvapi (dxvk-nvapi)
nvcuda (staging)
nvml (wine-nvml)
nvoptix (wine-nvoptix)

Build requirements:

How to build

./package-release.sh name destdir

How to install

Wineprefix

You can install symlinks and dll-overrides to the libraries in your wineprefix like this:
WINEPREFIX=/your/wine/prefix ./setup_nvlibs.sh install

To uninstall:
WINEPREFIX=/your/wine/prefix ./setup_nvlibs.sh uninstall

WINE-NVML

In order to use DXVK-NVAPI (NvAPI) with some extra GPU information (temps and the likes)
you need to copy the NVML binaries to your wine binaries folder. You can do this by
running the included nvml_setup.sh script. NVML is only available as 64-bit
See the Readme_nvml.txt file.

Tests

You can run tests of your adapter and functions by running the test case file:
WINEPREFIX=/your/wine/prefix wine bin/nvapi64-tests.exe

PS. You must install said libraryfile in your WINEPREFIX (see above)

Proton

You can drop-in the libraries in Proton8 - Experimental or GE-Proton-8 or newer like this:

PROTON_LIBS='$HOME/.steam/compatibilitytools.d/Proton-8.27-GE' ./proton_setup.sh

This will replace or add the libs to Proton for use with games.
The installscript is no longer compatible with older Proton-6.3 or Proton-GE-6/7 versions.

OBS!
You can add:
"DXVK_ENABLE_NVAPI": "1",
"PROTON_ENABLE_NVAPI": "1", to your user_settings.py script in the proton folder eg:
PROTON_LIBS='$HOME/.steam/compatibilitytools.d/GE-Proton-8.27/user_settings.py'

Or you can run the game with PROTON_ENABLE_NVAPI=1 DXVK_ENABLE_NVAPI=1 %command%

Some additional tweaks may be required depending on game used and version of Proton.

Info

Loads of reference info here:

NVIDIA NvAPI
NVIDIA OPTIX
DXVK-NVAPI
WINE-NVML
WINE-NVOPTIX

Tool to check various GPU options:
http://www.ozone3d.net/gpu_caps_viewer/