Skip to content

Commit

Permalink
support CUDA version configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzi-co committed Aug 18, 2018
1 parent d4b61bf commit d2dad14
Show file tree
Hide file tree
Showing 15 changed files with 142 additions and 0 deletions.
1 change: 1 addition & 0 deletions Additional Miners/A-WildRig-0.10.3.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
],
"API": "XMRig",
"APIPort": 4028,
"Fee": 0.02,
"Algorithms": {
"WildKeccakPurk": "--scratchpad-url http://purk.fairpool.xyz/static/scratchpad.bin",
"WildKeccakBbr": "--scratchpad-url http://bbr.poolto.be/dl/scratchpad.bin"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
],
"API": "Ccminer",
"APIPort": 4068,
"CUDA": 9.2,
"Algorithms": {
"X16r": "-a x16r",
"X16s": "-a x16s"
Expand Down
2 changes: 2 additions & 0 deletions Additional Miners/N-WildRig-0.10.3.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
],
"API": "XMRig",
"APIPort": 4028,
"Fee": 0.02,
"CUDA": 9.2,
"Algorithms": {
"WildKeccakPurk": "--scratchpad-url http://purk.fairpool.xyz/static/scratchpad.bin",
"WildKeccakBbr": "--scratchpad-url http://bbr.poolto.be/dl/scratchpad.bin"
Expand Down
3 changes: 3 additions & 0 deletions Config-SAMPLE.ini
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ ForceDynamicPorts = Disabled
# The default is revB, but older GPUs (which tend to be 1080s) only take the revA well, that why it's needed to be specified
ETHlargementPill = Disabled

# CUDA version for NVIDIA miners. Some miners require certain version, please set the version your drivers support
CUDAVersion = 9.2

# [Optional]Port for Forager API (http://localhost:port), set zero to disable API.
APIPort = 0

Expand Down
7 changes: 7 additions & 0 deletions Core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,13 @@ while ($Quit -eq $false) {
}
}

if ($Config.CUDAVersion -and $Miner.CUDA) {
if ([version]$Miner.CUDA -gt [version]$Config.CUDAVersion) {
Log-Message "$($MinerFile.BaseName) skipped due to CUDA version constraints" -Severity Debug
Continue
}
}

if ($DeviceGroup.Algorithms -and $Algorithms -notin $DeviceGroup.Algorithms) {Continue} #check config has this algo as minable

foreach ($Pool in ($Pools | Where-Object Algorithm -eq $AlgoName)) {
Expand Down
23 changes: 23 additions & 0 deletions Miners/N-CcminerKlaustCUDA80-8.22.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"Path": "ccminer.exe",
"Uri": "https://github.com/KlausT/ccminer/releases/download/8.22/ccminer-822-cuda80-x64.zip",
"SHA256": "68FDB70720434C64B9ECAB8D7F0A6ED444E2B8E7B0E3CC29864E752411801A56",
"Type": "NVIDIA",
"Arguments": [
"-o #Protocol#://#Server#:#Port#",
"-u #Login#",
"-p #Password#",
"-R 10",
"-r 4",
"-d #Devices#",
"-b #APIPort#",
"#AlgorithmParameters#"
],
"API": "Ccminer",
"APIPort": 4068,
"CUDA": 8.0,
"Algorithms": {
"WhirlpoolX": "-a whirlpoolx",
"Whirlpool": "-a whirl"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
],
"API": "Ccminer",
"APIPort": 4068,
"CUDA": 9.2,
"Algorithms": {
"WhirlpoolX": "-a whirlpoolx",
"Whirlpool": "-a whirl"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
],
"API": "Ccminer",
"APIPort": 4068,
"CUDA": 9.0,
"Algorithms": {
"C11": "-a c11",
"HMQ1725": "-a hmq1725",
Expand Down
32 changes: 32 additions & 0 deletions Miners/N-CryptoDredgeCUDA91-0.8.3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"Path": "CryptoDredge_0.8.3\\CryptoDredge.exe",
"Uri": "https://github.com/technobyl/CryptoDredge/releases/download/v0.8.3/CryptoDredge_0.8.3_cuda_9.1_windows.zip",
"SHA256": "3D80427DB7DBCB40EE5D6F79F1D6BD67FD1C47A185DB8CE9B72FE9B0516D3199",
"Type": "NVIDIA",
"Arguments": [
"-o #Protocol#://#Server#:#Port#",
"-u #Login#",
"-p #Password#",
"-d #Devices#",
"--retries 4",
"--retry-pause 10",
"--timeout 5",
"-b 127.0.0.1:#APIPort#",
"#AlgorithmParameters#"
],
"API": "Ccminer",
"APIPort": 4068,
"CUDA": 9.1,
"Algorithms": {
"Allium": "-a allium",
"Blake2s": "-a blake2s",
"Lyra2v2": "-a lyra2v2",
"Lyra2v2|old": "-a lyra2v2-old",
"Lyra2z": "-a lyra2z",
"NeoScrypt": "-a neoscrypt",
"Phi": "-a phi",
"Phi2": "-a phi2",
"Skunk": "-a skunk",
"Tribus": "-a tribus"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
],
"API": "Ccminer",
"APIPort": 4068,
"CUDA": 9.2,
"Algorithms": {
"Allium": "-a allium",
"Blake2s": "-a blake2s",
Expand Down
1 change: 1 addition & 0 deletions Miners/N-TRex-5.7.json → Miners/N-TRexCUDA91-5.7.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"API": "Ccminer",
"APIPort": 4068,
"Fee": 0.01,
"CUDA": 9.1,
"Algorithms": {
"C11": "-a c11",
"HSR": "-a hsr",
Expand Down
31 changes: 31 additions & 0 deletions Miners/N-XMrigCUDA80-2.7.0b.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"Path": "xmrig-nvidia.exe",
"Uri": "https://github.com/xmrig/xmrig-nvidia/releases/download/v2.7.0-beta/xmrig-nvidia-2.7.0-beta-cuda8-win64.zip",
"SHA256": "73AB64871B3E6DE8D47CD38C0D173F13727282E2B6EC62E840B654FFF7E28E60",
"Type": "NVIDIA",
"Arguments": [
"-o #Protocol#://#Server#:#Port#",
"-u #Login#",
"-p #Password#",
"--cuda-devices=#Devices#",
"$(if ($Nicehash){'--nicehash'})",
"--donate-level 1",
"--api-port #APIPort#",
"#AlgorithmParameters#"
],
"API": "XMRig",
"APIPort": 4068,
"Fee": 0.01,
"CUDA": 8.0,
"Algorithms": {
"CnAlloy": "-a cn/xao",
"CnArto": "-a cn/rto",
"CnFast": "-a cn/msr",
"CnHaven": "-a cn-heavy/xhv",
"CnHeavy": "-a cn-heavy",
"CnLiteV7": "-a cn-lite/1",
"CnSaber": "-a cn-heavy/tube",
"CnV7": "-a cn/1",
"CnXTL": "-a cn/xtl"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"API": "XMRig",
"APIPort": 4068,
"Fee": 0.01,
"CUDA": 9.2,
"Algorithms": {
"CnAlloy": "-a cn/xao",
"CnArto": "-a cn/rto",
Expand Down
36 changes: 36 additions & 0 deletions Miners/N-zEnemyCUDA91-1.16.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"Path": "z-enemy.exe",
"Uri": "https://github.com/yuzi-co/miners/releases/download/2018.8/z-enemy.1-16-cuda9.1_x64.zip",
"SHA256": "0C9C6D3D038CCD5313BA3AF981BC91B2777C2066B50CFE3073A73D2F10B13204",
"Type": "NVIDIA",
"Arguments": [
"-o #Protocol#://#Server#:#Port#",
"-u #Login#",
"-p #Password#",
"-R 10",
"-r 4",
"-d #Devices#",
"-b #APIPort#",
"#AlgorithmParameters#"
],
"API": "Ccminer",
"APIPort": 4068,
"Fee": 0.01,
"CUDA": 9.1,
"Algorithms": {
"Aergo": "-a aeriumx -i 20",
"Bitcore": "-a bitcore -i 20",
"C11": "-a c11 -i 20",
"Hex": "-a hex -i 20",
"Polytimos": "-a poly -i 20",
"Renesis": "-a renesis -i 20",
"SonoA": "-a sonoa -i 20",
"TimeTravel": "-a timetravel -i 20",
"Tribus": "-a tribus -i 20",
"Vitalium": "-a vit -i 20",
"X16r": "-a x16r -i 20",
"X16s": "-a x16s -i 20",
"X17": "-a x17 -i 20",
"Xevan": "-a xevan -i 20"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"API": "Ccminer",
"APIPort": 4068,
"Fee": 0.01,
"CUDA": 9.2,
"Algorithms": {
"Aergo": "-a aeriumx -i 20",
"Bitcore": "-a bitcore -i 20",
Expand Down

0 comments on commit d2dad14

Please sign in to comment.