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

87 Commits

Author SHA1 Message Date
Tanguy Pruvot
762c7f8656 nvapi: fix plimit argument on x64
now use the same percents as the x86

nvml watts (like linux) could work but requires admin rights
2017-05-07 12:09:55 +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
6c9852c153 nvapi: fix weird code style 2017-04-21 13:20:31 +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
aaa24a6262 stats: submit real freqs and plimit to yiimp benchmarks 2017-02-05 13:20:38 +01:00
Tanguy Pruvot
aaef92cab2 nvml: workaround for beta drivers 378.49 clocks
even nvidia-smi doesnt report the right pascal clocks
2017-01-29 22:23:05 +01:00
Tanguy Pruvot
496052e47d xmr: vstudio warning fix about mpcount linkage
and move ptr type cast defines to common cuda helper
2017-01-25 21:16:31 +00: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
3eba451d4c nvml: add Elsa vendor and workaround for Colorful pid
Colorful (and Inno3D) only set their vid, with an empty product id
2016-10-25 03:40:07 +02: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
9123eff7dd Update Galax vendor id, used on 1070s 2016-07-25 16:37:00 +02:00
Tanguy Pruvot
af1d5c9f3d nvapi: zotac rgb led support, to improve..
zotac cards doesnt allow a real RGB value, so i converted manually
the card seems to handle it, but seems to lock sometimes for some time...

colors can be tested with "ccminer -d 2 --led=0x1f1f00 -Dn"

but... unsure the card handle it fast enough to be fully usable
2016-07-22 01:20:30 +02:00
Tanguy Pruvot
78c3d25ccf release 1.8, as promised 2016-07-20 10:28:50 +02:00
Tanguy Pruvot
dbb9507d2b api: change unit of device mem to MB
without that, no way to read sizes > 4GB on x86 binaries
2016-07-10 13:12:16 +02:00
Tanguy Pruvot
fc1472b5f7 nvapi: allow different led modes (mining,shares) 2016-07-04 09:14:19 +02:00
Tanguy Pruvot
0e942bf60c nvapi: proper rgb color dimm function 2016-07-03 18:46:40 +02:00
Tanguy Pruvot
d43084cec6 nvapi: improve rgb led stability + multi gpus 2016-07-03 18:25:38 +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
036473347e nvapi: fan level, for future use... maybe 2016-07-01 20:13:47 +02:00
Tanguy Pruvot
24436febd6 led: proper log format 2016-07-01 20:13:17 +02:00
Tanguy Pruvot
d3976cf38d nvapi: sample i2c rvb led color (gigabyte)
you can now use --led=0xFF00FF to change the color/level (windows only)

for non-rvb standard nvidia devices, you can use a level value (0 to 100)

ps: i really need to find how to turn them off on linux, not found yet...
2016-06-29 12:28:38 +02:00
Tanguy Pruvot
801db3d076 nvapi: be more secure with unsupported apis
also query the led level and fix OV delta output

note: the Gigabyte 1080 G1 seems not compatible with the current nvapi
2016-06-29 12:00:40 +02:00
Tanguy Pruvot
eb84ef9c8a vendors: add Palit and the right PNY VIDs
seen on yiimp benchs, PNY duplicate could be for usb keys only
2016-06-28 01:39:53 +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
d19039fd7f nvapi: read pascal voltage + show meminfo in -Dn
also add perf stats api, unsure what it is exactly..
2016-06-26 08:28:44 +02:00
Tanguy Pruvot
7ff179abe9 nvapi: base memclock was wrong on maxwell 2016-06-25 16:18:39 +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
2ee8bc9791 nvapi: do not print that on normal -D 2016-06-24 10:14:58 +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
0deb9a2aca win32: implement a nvapi.dll wrapper like nvml
Allow to get/set missing infos like the power limit on x86

squashed for a better min/max and device mapping

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2016-06-21 05:16:12 +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
fe99de24a8 nvml: small changes to handle the 750ti app clocks
dynamically alloc the hardcoded gpu clocks list array size.

Unlike the 9xx, the 750ti api call requires to get them all (361.62)

Something was "fixed" recently for the 750 Ti in linux drivers...
2016-06-19 20:13:01 +02:00
Tanguy Pruvot
1c3a95213d nvml: do average on milliwatts reading
and ignore nvapi percents in pool stats

also allow decimals in intensity
2016-05-17 22:07:25 +02:00
Tanguy Pruvot
a1d448d4e0 linux: disable pcidev stuff, no more required 2016-05-16 16:31:14 +02:00
Tanguy Pruvot
35b728907c nvapi: product id was wrong when subsystem id is set
also test its filled... (cf Inno3D), use generic nvidia ids else
2016-05-15 21:14:27 +02:00
Tanguy Pruvot
5fb84189b2 nvml: fix possible mismatch of vendor names (x64)
seen on a weird motherboard with a PCI Express Switch (MSI XPower Z87)

On this motherboard, the first/top device pci id is the highest one...
2015-12-03 14:25:35 +01:00
Tanguy Pruvot
59a6cd133b nvapi: x86 can also get sub vendor ids 2015-10-22 12:29:03 +02:00
Tanguy Pruvot
c7cfe0e2ca Fix windows linkage, C/C++ mismatch 2015-10-11 00:55:22 +02:00
Tanguy Pruvot
64e997e9d6 prepare release 1.6.6 2015-08-22 17:33:26 +02:00
Tanguy Pruvot
40fc2bdcbc nvml: store prev. clocks/limit for a proper reset on exit 2015-07-21 13:21:49 +02:00
Tanguy Pruvot
25a78c96b5 nvml: allow to keep modified clocks + vendors
--keep-clocks option prevent reset clocks on exit...
2015-06-25 14:21:25 +02:00
Tanguy Pruvot
5abfac72d6 plimit: restore default limit on exit if changed
and show log on start if set/changed without --debug
2015-06-24 16:01:12 +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
f73f5f6a2e nvml: use the right nvmlDeviceGetPciInfo_v2 api
so... pciutils branch is no more required on windows :p
2015-06-23 14:38:12 +02:00
Tanguy Pruvot
7981e83db7 nvml: separated vendor id to string function
for the day nvidia will fix their nvmlDeviceGetPciInfo api..
2015-06-23 10:01:31 +02:00