forked from VeriBlock/nodecore-pow-cuda-miner
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Miner.h
22 lines (16 loc) · 851 Bytes
/
Miner.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// VeriBlock PoW GPU Miner
// Copyright 2017-2018 VeriBlock, Inc.
// All rights reserved.
// https://www.veriblock.org
// Distributed under the MIT software license, see the accompanying
// file LICENSE or http://www.opensource.org/licenses/mit-license.php.
#pragma once
#include <set>
#include "cuda_runtime.h"
#include "UCPClient.h"
extern cudaError_t grindNonces(uint32_t *dev_nonceStart, uint64_t* dev_header, uint32_t* dev_nonceResult,
uint64_t* dev_hashStart, uint32_t *nonceResult, uint64_t *hashStart, const
uint64_t *header, int deviceIndex, int threadsPerBlock, int blockSize);
void startMining(UCPClient& ucpClient, std::set<int>& deviceList,
int threadsPerBlock, int blockSize);
string strJoin(const std::set<int>& elements, const char* const separator);