ViNi-Arco / nvapi_standalone

Standalone meson compile of nVidia's nvapi.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NVAPI (wine-staging)

An attempt to build WINE's NvAPI implementation outside a WINE source tree. Original source: https://github.com/pchome/wine-playground/tree/master/nvapi

Requires nVidia proprietary driver version 440.x or newer

Some custom mods for driver version++

Requirements:

How to build

./package-release.sh destdir

How to install

Setup script will be located in:
destdir/setup_nvapi.sh

eg.
WINEPREFIX=/your/wine/prefix ./setup_nvapi.sh install

OBS! Recommend a x86_64 WINEPREFIX as installscript may have unpredictible result in a 32-bit only wineprefix!

This creates symlinks in the wineprefix + creates dll-override that ENABLE nvapi.

Goal

The aim is to provide some more functions to NvAPI so that it will fake nVidia cards as best it can.
The "fakedll" folders have the fake dll's used by wine incase one wants to use the winelib created
dll.so files directly with a custom wine. You need to copy the dll.so files in their respective
lib/lib64 folders in your custom wine binary folder. Same with the fakedll's. (Recommended only with
wine-staging binaries!).

Changes

  • Implementing using nvml and nvidia-settings interface to get real values
  • A few functions:
    • GPU Load %
    • GPU Memory amount
    • GPU Name
    • GPU BusID
    • Bios version
    • Driver and branch version
    • GPU Vendor:Device ID's
    • GPU Temp
    • GPU / Memory clocks
    • Video Memory usage
    • Video Memory controller utilization
    • Get shader/cuda cores from NVCtrl
    • Read GPU Voltage
    • Calculate GPU fan speed
    • Get IRQ
    • Implement video memory bandwidth

Working on

  • Implement correct performancelevels.
  • Implement voltage reading.
  • The nvidia-settings routine is slow and causes delay. Currently experimenting with offloading this to different thread.

Info

Loads of reference info here:

https://docs.nvidia.com/gameworks/content/gameworkslibrary/coresdk/nvapi/annotated.html
https://1vwjbxf1wko0yhnr.wordpress.com/2015/08/10/overclocking-tools-for-nvidia-gpus-suck-i-made-my-own/
https://github.com/verybigbadboy/NVAPI-example

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

About

Standalone meson compile of nVidia's nvapi.

License:Other


Languages

Language:C 80.1%Language:C++ 18.7%Language:Meson 0.4%Language:Objective-C 0.4%Language:Shell 0.2%Language:Python 0.1%Language:Makefile 0.0%Language:Ruby 0.0%