nicehash / excavator

NiceHash's proprietary low-level CUDA miner
https://www.nicehash.com
53 stars 19 forks source link

Bad documentation on JSON #331

Open PaS3 opened 3 years ago

PaS3 commented 3 years ago

Please define in detail what each command option does in excavator JSON

[
        {"time":0,"commands":[
                {"id":1,"method":"algorithm.add","params":["daggerhashimoto","daggerhashimoto.usa-east.nicehash.com:3353","39xXJzGWuHLSCaoa4jWKwb3ns17WFTwdJk.TeslaM40"]},
                {"id":1,"method":"worker.add","params":["0","1","B=256","TPB=128","S=1","HPW=2"]},
                {"id":1,"method":"worker.add","params":["1","0","B=256","TPB=128","S=1","HPW=2"]}
        ]},
        {"time":10,"commands":[
                {"id":1,"method":"device.set.oc_profile","params":["0","-100","1114","132","100"]},
                {"id":1,"method":"device.set.oc_profile","params":["1","-100","1114","132","100"]}
        ]},
        {"time":20,"loop":10,"commands":[
                {"id":1,"method":"worker.print.speed","params":["0"]},
                {"id":1,"method":"algorithm.print.speeds","params":["0"]},
                {"id":1,"method":"worker.print.speed","params":["1"]},
                {"id":1,"method":"algorithm.print.speeds","params":["1"]},
                {"id":1,"method":"worker.reset","params":["0"]},
                {"id":1,"method":"worker.reset","params":["1"]}
        ]}
]

I am not getting a second device running

"worker.add","params":["0","1" ] or "worker.add","params":["1","0" ]

or all ones ?

None of your examples work, runtime errors, but do compile.

|===============================+======================+======================|
|   0  Tesla M40           Off  | 00000000:0B:00.0 Off |                    0 |
| N/A   42C    P0    60W / 250W |    120MiB / 11443MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   1  Tesla M40           Off  | 00000000:0D:00.0 Off |                    0 |
| N/A   54C    P0    90W / 250W |   9281MiB / 11443MiB |     99%      Default |
+-------------------------------+----------------------+----------------------+

"device.set.oc_profile","params":["0","-100","1114","132","100"]}, which is what?

TNT911 commented 2 years ago

I found it in the API documentation: https://github.com/nicehash/excavator/blob/master/api/README.md#device-set-oc-profile