|
Monero
|
#include <fstream>#include <iostream>#include <iomanip>#include <exception>#include <string>#include <vector>#include <thread>#include <atomic>#include "stopwatch.hpp"#include "utility.hpp"#include "../randomx.h"#include "../dataset.hpp"#include "../blake2/endian.h"#include "../common.hpp"#include "../jit_compiler.hpp"#include "affinity.hpp"
Classes | |
| class | AtomicHash |
| struct | MemoryException |
| struct | CacheAllocException |
| struct | DatasetAllocException |
Typedefs | |
| using | MineFunc = void(randomx_vm * vm, std::atomic<uint32_t> & atomicNonce, AtomicHash & result, uint32_t noncesCount, int thread, int cpuid) |
Functions | |
| void | printUsage (const char *executable) |
| template<bool batch, bool commit> | |
| void | mine (randomx_vm *vm, std::atomic< uint32_t > &atomicNonce, AtomicHash &result, uint32_t noncesCount, int thread, int cpuid=-1) |
| int | main (int argc, char **argv) |
Variables | |
| const uint8_t | blockTemplate_ [] |
| using MineFunc = void(randomx_vm * vm, std::atomic<uint32_t> & atomicNonce, AtomicHash & result, uint32_t noncesCount, int thread, int cpuid) |
| int main | ( | int | argc, |
| char ** | argv ) |
| void mine | ( | randomx_vm * | vm, |
| std::atomic< uint32_t > & | atomicNonce, | ||
| AtomicHash & | result, | ||
| uint32_t | noncesCount, | ||
| int | thread, | ||
| int | cpuid = -1 ) |
| void printUsage | ( | const char * | executable | ) |