Skip to content

Commit

Permalink
Version 0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jonano614 committed Feb 11, 2018
1 parent 76006f5 commit b2dbde1
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
6 changes: 3 additions & 3 deletions GpuMiner/Core/MinerManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ bool MinerManager::InterpretOption(int& i, int argc, char** argv)
}
else if(arg == "-opencl-cpu")
{
_useOpenCpu = true;
_useOpenClCpu = true;
}
else if(arg == "-nvidia-fix")
{
Expand All @@ -181,7 +181,7 @@ void MinerManager::Execute()
{
if((_minerType & MinerType::CL) == MinerType::CL)
{
CLMiner::ListDevices(_useOpenCpu);
CLMiner::ListDevices(_useOpenClCpu);
}
if((_minerType & MinerType::CPU) == MinerType::CPU)
{
Expand Down Expand Up @@ -391,7 +391,7 @@ void MinerManager::ConfigureGpu()
_localWorkSize,
_globalWorkSizeMultiplier,
_openclPlatform,
_useOpenCpu))
_useOpenClCpu))
{
exit(1);
}
Expand Down
2 changes: 1 addition & 1 deletion GpuMiner/Core/MinerManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class MinerManager
unsigned _openclSelectedKernel = 0; ///< A numeric value for the selected OpenCL kernel
unsigned _openclDeviceCount = 0;
unsigned _openclDevices[MAX_CL_DEVICES];
bool _useOpenCpu = false;
bool _useOpenClCpu = false;
unsigned _globalWorkSizeMultiplier = CLMiner::_defaultGlobalWorkSizeMultiplier;
unsigned _localWorkSize = CLMiner::_defaultLocalWorkSize;
bool _useNvidiaFix = false;
Expand Down
2 changes: 1 addition & 1 deletion GpuMiner/MinerEngine/CLMiner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ void CLMiner::WorkLoop()
bool hasSolution = false;
if(loopCounter > 0)
{
// Read results.
// Read results.
ReadData(results);

//miner return an array with 17 64-bit values. If nonce for hash lower than target hash is found - it is written to array.
Expand Down
2 changes: 1 addition & 1 deletion GpuMiner/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#define VERSION_MAJOR 0
#define VERSION_MINOR 2
#define VERSION_REVISION 2
#define VERSION_REVISION 3

#define VER_FILE_DESCRIPTION_STR "Standalone GPU/CPU miner for Dagger coin"
#define VER_FILE_VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ Linux:
AMD driver / SDK link https://developer.amd.com/amd-accelerated-parallel-processing-app-sdk/
Nvidia driver / SDK link https://developer.nvidia.com/cuda-downloads

Check dependencies:libboost-dev, libboost-system-dev, openssl
Check dependencies: libboost-dev, libboost-system-dev, openssl.

Download this source code, then cd to source folder.
In GpuMiner folder run command $make all, it will generate xdag-gpu
Download this source code, then cd to source folder. In GpuMiner folder run command $make all, it will generate xdag-gpu.
Launch parameters:
1) GPU benchmark: ./xdag-gpu -G -M
2) GPU mining: ./xdag-gpu -G -a <WALLET_ADDRESS> -p <POOL_ADDRESS>
3) CPU mining: ./xdag-gpu -cpu -a <WALLET_ADDRESS> -p <POOL_ADDRESS> -t 8

Workaround on issue with high CPU usage with NVIDIA GPUs.
There is an issue with NVIDIA GPUs leading to very high CPU usage. The reason is improper implementation of OpenCL by NVIDIA. When CPU thread waits for results from GPU, it does not stop, it spins in loop eating CPU resources for nothing.
There was impemented a workaround on this issue: before reading results from GPU current thread sleeps during small calculated time. CPU usage was decreased in 90%. The change made optional, use launch parameter "-nvidia-fix" to enable it. The change can decrease hashrate a bit in some cases. But GPU rigs should gain increase of hashrate. So try it and choose to use or not to use it.

You can support author: XDAG gKNRtSL1pUaTpzMuPMznKw49ILtP6qX3
3 changes: 3 additions & 0 deletions version_history.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
0.2.3
- workaround on issue with high cpu usage with NVIDIA cards is implemented. By default workaround is disabled, use "-nvidia-fix" parameter to enable it. The change can decrease hashrate a bit.

0.2.2
- a number of optimizations. Performance of mining was increased. Increase for AMD GPUs is about 20%, for NVIDIA GPU increase is low.

Expand Down

0 comments on commit b2dbde1

Please sign in to comment.