1
0
mirror of https://github.com/GOSTSec/ccminer synced 2025-01-09 06:18:07 +00:00
Commit Graph

38 Commits

Author SHA1 Message Date
Tanguy Pruvot
9c4b8caf1a nvapi: apply memory offsets like nvsettings 2017-07-24 14:16:14 +02:00
Tanguy Pruvot
bcadca2c45 linux: prepare nvidia-settings queries
Note: this method is slower than real apis and requires X opened
and configured correctly.

sample usage: -d 0,1 --mem-clock=+200,-200
2017-06-08 22:07:29 +02:00
Tanguy Pruvot
e23b577e32 nvml: show product ids and pci bus in ccminer -D -n 2017-05-06 02:00:24 +02:00
Tanguy Pruvot
4da35e0bcf api: use MHz for all clocks and show plimit
plimit value is reported in mW like the power, or % on Windows x86 (via nvapi)

+ the monitor thread will no more report 0W if the device doesnt support it

also upgrade nvml and sample php api.

some more changes may come in this temporary API 1.9 (for the final 2.0)
2017-02-06 06:50:38 +01:00
Tanguy Pruvot
12ae185594 hwmonitor: efficiency unit and clean dead code 2017-01-10 14:20:33 +01:00
Tanguy Pruvot
0dd022779b power monitoring thread + some api changes
based on alexis monitoring thread idea, but which only use one thread

note: other api changes will come soon, related to that
2017-01-10 02:26:28 +00:00
Tanguy Pruvot
f84c83afe5 nvml: force 64bits types for mem sizes
size_t can be a bit... imprevisible on x86
2016-09-28 00:31:13 +02:00
Tanguy Pruvot
8985f7ee91 nvapi: asus rgb led
seems to be too slow to handle all wanted modes
2016-08-06 12:51:23 +02:00
Tanguy Pruvot
fc1472b5f7 nvapi: allow different led modes (mining,shares) 2016-07-04 09:14:19 +02:00
Tanguy Pruvot
8c4b25426f nvapi: device led flash on submit
disabled by default, require --led=100 on nvidia compatible devices

Gigabyte RGB led hack is not perfect for the moment, can fail and require a reboot.
2016-07-03 12:07:37 +02:00
Tanguy Pruvot
174e26164a nvapi: fix device mapping in -D -n
and rename RVB to RGB, french typo...
2016-07-02 20:21:33 +02:00
Tanguy Pruvot
095f25f9a8 nvapi: pascal core voltage boost + meminfo fix x86
cuda 6.5 one seems to crash on pascal or report invalid mem sizes
2016-06-26 22:30:54 +02:00
Tanguy Pruvot
bc6ac3a3ab nvapi: link clocks and tlimit to command line
boost clocks and the thermal limit are shared with afterburner
beware with your settings, not as safe as application clocks!

Note: both nvapi and nvml are now used on windows x64
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2016-06-25 10:00:43 +02:00
Tanguy Pruvot
bdc441ebd0 nvapi: link some more apis, pascal boost table
these informations are shown with ccminer -D -n
2016-06-24 10:06:54 +02:00
Tanguy Pruvot
9296d5218e nvml: remove autoboost functions, unsupported
not for GTX pascal neither...
2016-06-21 05:16:21 +02:00
Tanguy Pruvot
fd757f2180 nvml: add new getclock api (v8)
+ some new functions to test on pascal (if supported)
2016-06-20 07:32:26 +02:00
Tanguy Pruvot
7c5087d01c nvml: add --plimit and --pstate parameters
--pstate 0 is an alternative to clocks values to set the device in P0
mode, 1 will set appl. clocks to default P1 clocks, 2 to default P2..

--plimit 150W really works on the 9xx and allow to limit/reduce the gpu usage

Note: nvml interface is only available on linux and windows x64

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2015-06-24 10:35:34 +02:00
Tanguy Pruvot
b9cfee0bb3 nvml: api enhancements, add power usage
fallbacks on v2 nvml exports and check api implementation on call
2015-06-24 07:30:26 +02:00
Tanguy Pruvot
6b41234ff1 nvml: get devices vendor names with libpci
made for linux and require libpci-dev (optional)

if libpci is not installed, card's vendor names are not handled...

Note: only a few vendor names were added, common GeForce vendors.

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2015-06-22 04:03:22 +02:00
Tanguy Pruvot
0c545eb724 nvml: check available memory clocks and fix param for -d 1
"-d 1 --gpu-clock 1200" was not working
2015-05-28 07:49:31 +02:00
Tanguy Pruvot
cbd7865a79 nvml: check supported graphics clocks...
and use reset application clocks api
2015-05-27 18:15:38 +02:00
Tanguy Pruvot
a08056ed2a linux: reset modified application clocks 2015-05-27 15:50:10 +02:00
Tanguy Pruvot
c9d110e543 linux: allow to set application clocks
Since linux driver 346.72, nvidia-smi allow to query gpu/mem clocks

Tested ok on the Asus Strix 970, but fails on the Gigabyte 750 Ti

system could require first persistence mode and app clock unlock :
    nvidia-smi -pm 1
    nvidia-smi -acp 0

supported values are displayed by
    nvidia-smi -q -d SUPPORTED_CLOCKS

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2015-05-27 14:34:39 +02:00
Tanguy Pruvot
ec454dd78c api: add fan rpm (windows nvapi only) 2014-12-26 15:33:55 +01:00
Tanguy Pruvot
56170bb32e nvml: cleanup and check api restrictions
there was too much wrap_ prefixes, internal cleanup

SetAPIRestriction reports success but we can not query/set app clocks
2014-11-29 09:13:00 +01:00
Tanguy Pruvot
8ad180cc70 various small changes
heavy: reduce by 256 threads default intensity to all -i 20
cuda: put static thread init bools outside the code (made once)
api: fix nvml header to build without
2014-11-28 20:57:35 +01:00
Tanguy Pruvot
3e8457d76c api: add device uuid (nvml), and OS in hwinfo
move nvdriver to sys infos (unique on system)

prepare pool query
2014-11-24 21:20:26 +01:00
Tanguy Pruvot
484bbc4b15 api: restore bios, can be useful to identify
We have no way yet to identify a MSI 750 from a Gigabyte one...
2014-11-24 14:32:34 +01:00
Tanguy Pruvot
aec310d4a7 nvml: grab nvidia driver version string too 2014-11-24 00:27:49 +01:00
Tanguy Pruvot
e2ac7a2a75 api: add nvapi and nvml ids for C# tools 2014-11-23 11:12:58 +01:00
Tanguy Pruvot
7bb86defcc nvml: clean up and fix retorted bus id bug in api 2014-11-23 07:33:36 +01:00
Tanguy Pruvot
1bc4e7e942 api: add mem size and freq to hwinfo query 2014-11-20 15:54:56 +01:00
Tanguy Pruvot
3ad4be7de0 api: export gpu freq on linux too + hwinfo command 2014-11-19 16:16:27 +01:00
Tanguy Pruvot
b24b65a9c9 api: add gpu pci bus id, unified id + bloc height 2014-11-18 16:25:44 +01:00
Tanguy Pruvot
2aea2c3ccc nvml: attempt to use another clock function
But no way, even recent 346 driver series or 343. Seems limited to
Tesla products...
2014-11-15 02:48:36 +01:00
Tanguy Pruvot
3652c708b9 api: add histo command and difficulty
enhance multi-gpu stats and fix nvapi indexes

change syslog prefix to ccminer (cpuminer remains)

api 1.1 modified - not officially released yet
2014-11-14 19:09:48 +01:00
Tanguy Pruvot
15eea1bc81 api: add nvapi for windows binaries
nvml.dll doesnt exists for 32bit binaries! use nvapi to get infos

seems to have more/different features than NVML... like pstate etc..

This is nvapi r343 : https://developer.nvidia.com/nvapi

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2014-11-13 19:01:36 +01:00
Tanguy Pruvot
49f3c454c2 Add nvml for GPU monitoring (squashed)
Based on mwhite73 <marvin.white@gmail.com> implementation

  Linked to the api system

  Also fix Makefile to support standard c++ files
  This prevent nvcc use without device code

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2014-11-13 14:36:18 +01:00