Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Commit

Permalink
Delete unneeded free
Browse files Browse the repository at this point in the history
- GPU reset will free all allocated memory
  • Loading branch information
jean-m-cyr committed Jul 28, 2020
1 parent 09bf291 commit 1457bf7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libethash-cuda/CUDAMiner.cpp
Expand Up @@ -161,9 +161,6 @@ bool CUDAMiner::initEpoch_internal()
ethash_generate_dag(
m_epochContext.dagSize, m_settings.gridSize, m_settings.blockSize, m_streams[0]);

if (lightOnHost)
CUDA_SAFE_CALL(cudaFreeHost(reinterpret_cast<void*>(light)));

cudalog << "Generated DAG + Light in "
<< std::chrono::duration_cast<std::chrono::milliseconds>(
std::chrono::steady_clock::now() - startInit)
Expand Down

0 comments on commit 1457bf7

Please sign in to comment.