Code cleanup.

This commit is contained in:
XMRig 2020-04-12 19:50:11 +07:00
parent 9634907676
commit 2d95a394a6
No known key found for this signature in database
GPG key ID: 446A53638BE94409
3 changed files with 4 additions and 10 deletions

View file

@ -31,13 +31,7 @@
#include "crypto/rx/RxDataset.h"
namespace xmrig {
constexpr uint32_t CudaAstroBWTRunner::BWT_DATA_STRIDE;
} // namespace xmrig
constexpr uint32_t xmrig::CudaAstroBWTRunner::BWT_DATA_STRIDE;
xmrig::CudaAstroBWTRunner::CudaAstroBWTRunner(size_t index, const CudaLaunchData &data) :
@ -63,6 +57,7 @@ bool xmrig::CudaAstroBWTRunner::set(const Job &job, uint8_t *blob)
return callWrapper(CudaLib::astroBWTPrepare(m_ctx, static_cast<uint32_t>(m_intensity)));
}
size_t xmrig::CudaAstroBWTRunner::roundSize() const
{
constexpr uint32_t STAGE1_SIZE = 147253;
@ -75,6 +70,7 @@ size_t xmrig::CudaAstroBWTRunner::roundSize() const
return BATCH1_SIZE;
}
size_t xmrig::CudaAstroBWTRunner::processedHashes() const
{
return CudaLib::deviceInt(m_ctx, CudaLib::DeviceAstroBWTProcessedHashes);

View file

@ -49,7 +49,6 @@ protected:
bool set(const Job &job, uint8_t *blob) override;
private:
bool m_ready = false;
size_t m_intensity = 0;
};

View file

@ -61,7 +61,6 @@ private:
std::weak_ptr<IHttpListener> m_listener;
TlsContext *m_tls = nullptr;
uv_tcp_t *m_tcp = nullptr;
};