mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-18 00:37:46 +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"
|
#include "crypto/rx/RxDataset.h"
|
||||||
|
|
||||||
|
|
||||||
namespace xmrig {
|
constexpr uint32_t xmrig::CudaAstroBWTRunner::BWT_DATA_STRIDE;
|
||||||
|
|
||||||
|
|
||||||
constexpr uint32_t CudaAstroBWTRunner::BWT_DATA_STRIDE;
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace xmrig
|
|
||||||
|
|
||||||
|
|
||||||
xmrig::CudaAstroBWTRunner::CudaAstroBWTRunner(size_t index, const CudaLaunchData &data) :
|
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)));
|
return callWrapper(CudaLib::astroBWTPrepare(m_ctx, static_cast<uint32_t>(m_intensity)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
size_t xmrig::CudaAstroBWTRunner::roundSize() const
|
size_t xmrig::CudaAstroBWTRunner::roundSize() const
|
||||||
{
|
{
|
||||||
constexpr uint32_t STAGE1_SIZE = 147253;
|
constexpr uint32_t STAGE1_SIZE = 147253;
|
||||||
|
@ -75,6 +70,7 @@ size_t xmrig::CudaAstroBWTRunner::roundSize() const
|
||||||
return BATCH1_SIZE;
|
return BATCH1_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
size_t xmrig::CudaAstroBWTRunner::processedHashes() const
|
size_t xmrig::CudaAstroBWTRunner::processedHashes() const
|
||||||
{
|
{
|
||||||
return CudaLib::deviceInt(m_ctx, CudaLib::DeviceAstroBWTProcessedHashes);
|
return CudaLib::deviceInt(m_ctx, CudaLib::DeviceAstroBWTProcessedHashes);
|
||||||
|
|
|
@ -49,7 +49,6 @@ protected:
|
||||||
bool set(const Job &job, uint8_t *blob) override;
|
bool set(const Job &job, uint8_t *blob) override;
|
||||||
|
|
||||||
private:
|
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;
|
std::weak_ptr<IHttpListener> m_listener;
|
||||||
TlsContext *m_tls = nullptr;
|
TlsContext *m_tls = nullptr;
|
||||||
uv_tcp_t *m_tcp = nullptr;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue