mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-17 16:27:44 +00:00
Code cleanup.
This commit is contained in:
parent
9634907676
commit
2d95a394a6
3 changed files with 4 additions and 10 deletions
|
@ -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);
|
||||
|
|
|
@ -49,8 +49,7 @@ protected:
|
|||
bool set(const Job &job, uint8_t *blob) override;
|
||||
|
||||
private:
|
||||
bool m_ready = false;
|
||||
size_t m_intensity = 0;
|
||||
size_t m_intensity = 0;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -61,7 +61,6 @@ private:
|
|||
|
||||
std::weak_ptr<IHttpListener> m_listener;
|
||||
TlsContext *m_tls = nullptr;
|
||||
uv_tcp_t *m_tcp = nullptr;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue