Browse Source

Merge pull request #40 from ethereum-mining/cleanups

Cleanups
cl-refactor
Paweł Bylica 8 years ago
committed by GitHub
parent
commit
4332082530
  1. 4
      cmake/gcc-5.cmake
  2. 2
      libethcore/EthashCUDAMiner.cpp

4
cmake/gcc-4.8.cmake → cmake/gcc-5.cmake

@ -1,5 +1,5 @@
set(CMAKE_C_COMPILER gcc-4.8)
set(CMAKE_CXX_COMPILER g++-4.8)
set(CMAKE_C_COMPILER gcc-5)
set(CMAKE_CXX_COMPILER g++-5)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_EXTENSIONS Off)

2
libethcore/EthashCUDAMiner.cpp

@ -196,7 +196,7 @@ void EthashCUDAMiner::workLoop()
}
uint64_t upper64OfBoundary = (uint64_t)(u64)((u256)w.boundary >> 192);
uint64_t startN;
uint64_t startN = w.startNonce;
if (w.exSizeBits >= 0)
startN = w.startNonce | ((uint64_t)index() << (64 - 4 - w.exSizeBits)); // this can support up to 16 devices
m_miner->search(w.headerHash.data(), upper64OfBoundary, *m_hook, (w.exSizeBits >= 0), startN);

Loading…
Cancel
Save