- 👋 Hi, I’m @luminousmining
- 👀 I’m interested in mining software GPU
- I love C/C++
luminousmining / miner Goto Github PK
View Code? Open in Web Editor NEWGPU Miner / Mining Software - 0% fees
License: MIT License
GPU Miner / Mining Software - 0% fees
License: MIT License
Can you share a telegram group? I want to learn how to compile this miner source code
(2024/Feb/13)(12:21:05) - ==================== HASHRATE =====================
(2024/Feb/13)(12:21:05) - | DeviceID | Coin | Pool | Hashrate |
(2024/Feb/13)(12:21:05) - | 0 | etchash | etc.2miners.com | 49.99MH/S |
(2024/Feb/13)(12:21:05) - | 1 | etchash | etc.2miners.com | 0MH/S |
(2024/Feb/13)(12:21:05) - ====================================================
(2024/Feb/13)(12:21:10) - ==================== HASHRATE =====================
(2024/Feb/13)(12:21:10) - | DeviceID | Coin | Pool | Hashrate |
(2024/Feb/13)(12:21:10) - | 0 | etchash | etc.2miners.com | 0MH/S |
(2024/Feb/13)(12:21:10) - | 1 | etchash | etc.2miners.com | 38.56MH/S |
(2024/Feb/13)(12:21:10) - ====================================================
The old hashrate should be stay display.
Add option --elec_price
, unit price of $/kwh.
This option will be use by smart_mining
to enable or disable mining in term of rentability from electribity price.
Implement BufferData
to wrapper cl::Buffer.
Use same pattern than BufferMappedData
.
When HiveOS release official version with ubuntu 20 you can upgrade clang version and compil with c++20.
Add source_group
to create .filter for visual studio.
https://cmake.org/cmake/help/v3.4/command/source_group.html
https://stackoverflow.com/questions/33808087/cmake-how-to-create-visual-studio-filters
Add profile mining ravenminer to mine rvn and payout with other coin.
Flags:
--rm_wallet=WALLET
--rm_payout_type=PPS|PNLS
Add double queue buffering.
The fonction of resolver resovler::XX::execute
use one stream to improve the performant the process must use 2 streams.
(2024/Apr/14)(21:05:17)(i) - GPU[0] AMD Radeon RX Vega 56
(2024/Apr/14)(21:05:17)(i) - GPU[1] AMD Radeon RX 570
(2024/Apr/14)(21:05:17)(i) - GPU[2] AMD Radeon RX 470
(2024/Apr/14)(21:05:17)(i) - GPU[3] AMD Radeon RX 470
(2024/Apr/14)(21:05:17)(i) - GPU[4] NVIDIA GeForce RTX 3070
(2024/Apr/14)(21:05:17)(i) - GPU[5] NVIDIA GeForce GTX 1060 6GB
(2024/Apr/14)(21:14:07) - ========================== HASHRATE ===========================
(2024/Apr/14)(21:14:07) - | DeviceID | Algorithm | Pool | Hashrate | Shares |
(2024/Apr/14)(21:14:07) - | 0 | kawpow | clore.2miners.com | 18.88MH | 1/0/1 |
(2024/Apr/14)(21:14:07) - | 1 | kawpow | clore.2miners.com | 7.04MH | 0/0/0 |
(2024/Apr/14)(21:14:07) - | 2 | kawpow | clore.2miners.com | 6.40MH | 0/0/0 |
(2024/Apr/14)(21:14:07) - | 3 | kawpow | clore.2miners.com | 6.39MH | 0/1/1 |
(2024/Apr/14)(21:14:07) - | 4 | kawpow | clore.2miners.com | 25.51MH | 3/0/3 |
(2024/Apr/14)(21:14:07) - | 5 | kawpow | clore.2miners.com | 6.10MH | 1/0/1 |
(2024/Apr/14)(21:14:07) - ================================================================
GPU 3 Radeon RX Vega 56
report 1 share invalid.
Log show GPU 3
-> AMD Radeon RX 470 create share invalid not Radeon RX Vega 56
.
Radeon RX Vega 56 shoud be -> GPU 0
AMD Radeon RX 470 -> GPU 3
Looking API
./h-stats.sh
stats => {"hs":[18866417,7041255,6523043,6514064,25538822,5983662],"hs_units":"hs","temp":[0,0,0,0,0,0],"fan":[0,0,0,0,0,0],"uptime":0,"ver":"0.2","ar":[0,0,0,1,0,0],"algo":"kawpow","bus_numbers":[12,9,8,6,7,13]}
total_hash => {"total_hash_rate":70467263}
khs => 70467263
"ar":[0,0,0,1,0,0]
index 4 have 1 invalide share. the order of GPUs is different between luminousminer and hiveos.
https://github.com/minershive/hiveos-linux/blob/master/hive/miners/custom/README.md#h-statssh
"ar": [123, 3], //Optional: acceped, rejected shares
API report wrong values
https://github.com/minershive/hiveos-linux/blob/master/hive/miners/custom/README.md
Mining on HiveOS.
Add documentation page to help miner HiveOS.md
api : #31 (comment)
I hope to add the MEOWPOW algorithm, which is an adaptation of the KAWPOW algorithm
Missing implementation FIROPOW on AMD
The function device::DeviceManager::updateDevice
is no async, calling device->update(updateMemory, updateConstants, jobInfo);
is blocking mutex UNIQUE_LOCK(mtxUpdate);
void device::Device::update(
bool const memory,
bool const constants,
stratum::StratumJobInfo const& newJobInfo)
{
UNIQUE_LOCK(mtxUpdate);
jobInfo = newJobInfo;
jobInfo.nonce += (jobInfo.gapNonce * id);
needUpdateMemory.store(memory, boost::memory_order::seq_cst);
needUpdateConstants.store(constants, boost::memory_order::seq_cst);
}
StratumJobInfo need refacto, this struct will be big will new algorithm and all variable will not used.
The process copy
all variable whatever alforithm is computing.
namespace stratum
{
struct StratumJobInfo
{
// Common
int32_t epoch{ -1 };
algo::hash256 jobID{};
algo::hash256 headerHash{};
algo::hash256 seedHash{};
algo::hash256 boundary{};
uint64_t nonce{ 0ull };
uint64_t startNonce{ 0ull };
uint64_t extraNonce{ 0ull };
uint64_t gapNonce{ 0x1ull };
uint64_t blockNumber{ 0ull };
uint64_t period{ 0ull };
uint64_t boundaryU64{ 0ull };
uint32_t targetBits{ 0u };
bool cleanJob{ false };
std::string jobIDStr{};
// SHA256
algo::hash1024 coinb1{};
algo::hash2048 coinb2{};
algo::hash256 merkletree[12]{};
// ETHASH && PROGPOW
uint32_t extraNonceSize{ 0u };
uint32_t extraNonce2Size{ 0u };
StratumJobInfo(StratumJobInfo&& obj) = delete;
StratumJobInfo& operator=(StratumJobInfo&& obj) = delete;
StratumJobInfo() = default;
~StratumJobInfo() = default;
StratumJobInfo(StratumJobInfo const& obj);
StratumJobInfo& operator=(StratumJobInfo const& obj);
void copy(StratumJobInfo const& obj);
};
}
variable for sha256
will not use during compute progpow
.
We need new pattern for it.
Solutions ?
1)
Add std::optional
for all variable expect common variable.
Implemente inheritance, but this I will create a lot of cast
.
Using component
, example std::unordered_map<uint32_t, Component>
.
component[COMPONENT_ID] = ComponentHeader;
Write the listing of features in FEATURE.md
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.