-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
abe9621
commit 7a45178
Showing
54 changed files
with
331 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/hive/miners/custom/SWARM/build/export/libcurl.so.3.0.0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "ethminer-amd", | ||
"AMD1": { | ||
"name": "AMD1", | ||
"delay": "1", | ||
"prestart": [ | ||
"export GPU_FORCE_64BIT_PTR 0", | ||
"export GPU_MAX_HEAP_SIZE=100", | ||
"export GPU_USE_SYNC_OBJECTS=1", | ||
"export GPU_SINGLE_ALLOC_PERCENT=100", | ||
"export GPU_MAX_ALLOC_PERCENT=100" | ||
], | ||
"commands": { | ||
"ethash": "" | ||
}, | ||
"difficulty": { | ||
"ethash": "" | ||
}, | ||
"naming": { | ||
"ethash": "ethash" | ||
}, | ||
"fee": { | ||
"ethash": 0 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"name": "ethminer", | ||
"NVIDIA1": { | ||
"name": "NVIDIA1", | ||
"delay": "1", | ||
"prestart": [], | ||
"commands": { | ||
"ethash": "" | ||
}, | ||
"difficulty": { | ||
"ethash": "" | ||
}, | ||
"naming": { | ||
"ethash": "ethash" | ||
}, | ||
"fee": { | ||
"ethash": 0 | ||
} | ||
}, | ||
"NVIDIA2": { | ||
"name": "NVIDIA2", | ||
"delay": "1", | ||
"prestart": [], | ||
"commands": { | ||
"ethash": "" | ||
}, | ||
"difficulty": { | ||
"ethash": "" | ||
}, | ||
"naming": { | ||
"ethash": "ethash" | ||
}, | ||
"fee": { | ||
"ethash": 0 | ||
} | ||
}, | ||
"NVIDIA3": { | ||
"name": "NVIDIA3", | ||
"delay": "1", | ||
"prestart": [], | ||
"commands": { | ||
"ethash": "" | ||
}, | ||
"difficulty": { | ||
"ethash": "" | ||
}, | ||
"naming": { | ||
"ethash": "ethash" | ||
}, | ||
"fee": { | ||
"ethash": 0 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
$(vars).AMDTypes | ForEach-Object { | ||
|
||
$ConfigType = $_; $Num = $ConfigType -replace "AMD", "" | ||
$CName = "progminer-amd" | ||
|
||
##Miner Path Information | ||
if ($(vars).amd.$CName.$ConfigType) { $Path = "$($(vars).amd.$CName.$ConfigType)" } | ||
else { $Path = "None" } | ||
if ($(vars).amd.$CName.uri) { $Uri = "$($(vars).amd.$CName.uri)" } | ||
else { $Uri = "None" } | ||
if ($(vars).amd.$CName.minername) { $MinerName = "$($(vars).amd.$CName.minername)" } | ||
else { $MinerName = "None" } | ||
|
||
$User = "User$Num"; $Pass = "Pass$Num"; $Name = "$CName-$Num"; $Port = "2700$Num" | ||
|
||
Switch ($Num) { | ||
1 { $Get_Devices = $(vars).AMDDevices1; $Rig = $(arg).Rigname1 } | ||
} | ||
|
||
##Log Directory | ||
$Log = Join-Path $($(vars).dir) "logs\$ConfigType.log" | ||
|
||
##Parse -GPUDevices | ||
if ($Get_Devices -ne "none") { | ||
$GPUDevices1 = $Get_Devices | ||
$GPUDevices1 = $GPUDevices1 -replace ',', ' ' | ||
$Devices = $GPUDevices1 | ||
} | ||
else { $Devices = $Get_Devices } | ||
|
||
##Get Configuration File | ||
$MinerConfig = $Global:config.miners.$CName | ||
|
||
##Export would be /path/to/[SWARMVERSION]/build/export## | ||
$ExportDir = Join-Path $($(vars).dir) "build\export" | ||
|
||
##Prestart actions before miner launch | ||
$Prestart = @() | ||
$PreStart += "export LD_LIBRARY_PATH=$ExportDir" | ||
$MinerConfig.$ConfigType.prestart | ForEach-Object { $Prestart += "$($_)" } | ||
|
||
if ($(vars).Coins) { $Pools = $(vars).CoinPools } else { $Pools = $(vars).AlgoPools } | ||
|
||
if ($(vars).Bancount -lt 1) { $(vars).Bancount = 5 } | ||
|
||
##Build Miner Settings | ||
$MinerConfig.$ConfigType.commands | Get-Member -MemberType NoteProperty | Select-Object -ExpandProperty Name | ForEach-Object { | ||
|
||
$MinerAlgo = $_ | ||
|
||
if ($MinerAlgo -in $(vars).Algorithm -and $Name -notin $global:Config.Pool_Algos.$MinerAlgo.exclusions -and $ConfigType -notin $global:Config.Pool_Algos.$MinerAlgo.exclusions -and $Name -notin $(vars).BanHammer) { | ||
$StatAlgo = $MinerAlgo -replace "`_", "`-" | ||
$Stat = Global:Get-Stat -Name "$($Name)_$($StatAlgo)_hashrate" | ||
$Check = $(vars).Miner_HashTable | Where Miner -eq $Name | Where Algo -eq $MinerAlgo | Where Type -Eq $ConfigType | ||
|
||
if ($Check.RAW -ne "Bad") { | ||
$Pools | Where-Object Algorithm -eq $MinerAlgo | ForEach-Object { | ||
[PSCustomObject]@{ | ||
MName = $Name | ||
Coin = $(vars).Coins | ||
Delay = $MinerConfig.$ConfigType.delay | ||
Fees = $MinerConfig.$ConfigType.fee.$($_.Algorithm) | ||
Symbol = "$($_.Symbol)" | ||
MinerName = $MinerName | ||
Prestart = $PreStart | ||
Type = $ConfigType | ||
Path = $Path | ||
Devices = $Devices | ||
Stratum = "$($_.Protocol)://$($_.Host):$($_.Port)" | ||
Version = "$($(vars).amd.$CName.version)" | ||
DeviceCall = "progminer_amd" | ||
Arguments = "-P stratum2+tcp://$($_.$User).$($_.$Pass):x@$($_.Host):$($_.Port) --opencl --api-bind 0.0.0.0:$Port --noeval --dag-load-mode 1 $($MinerConfig.$ConfigType.commands.$($_.Algorithm))" | ||
HashRates = $Stat.Hour | ||
Quote = if ($Stat.Hour) { $Stat.Hour * ($_.Price) }else { 0 } | ||
Power = if ($(vars).Watts.$($_.Algorithm)."$($ConfigType)_Watts") { $(vars).Watts.$($_.Algorithm)."$($ConfigType)_Watts" }elseif ($(vars).Watts.default."$($ConfigType)_Watts") { $(vars).Watts.default."$($ConfigType)_Watts" }else { 0 } | ||
API = "claymore" | ||
Port = $Port | ||
Worker = $Rig | ||
MinerPool = "$($_.Name)" | ||
Wallet = "$($_.$User)" | ||
URI = $Uri | ||
Server = "localhost" | ||
Algo = "$($_.Algorithm)" | ||
Log = $Log | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.