mirror of
https://github.com/xmrig/xmrig.git
synced 2026-04-30 09:12:39 -04:00
Initial stub for setting job in OpenCL backend.
This commit is contained in:
@@ -73,15 +73,21 @@ xmrig::OclBaseRunner::~OclBaseRunner()
|
||||
}
|
||||
|
||||
|
||||
bool xmrig::OclBaseRunner::selfTest() const
|
||||
bool xmrig::OclBaseRunner::isReadyToBuild() const
|
||||
{
|
||||
return m_queue != nullptr && m_input != nullptr && m_output != nullptr && !m_options.empty() && m_source != nullptr;
|
||||
}
|
||||
|
||||
|
||||
bool xmrig::OclBaseRunner::selfTest() const
|
||||
{
|
||||
return isReadyToBuild() && m_program != nullptr;
|
||||
}
|
||||
|
||||
|
||||
void xmrig::OclBaseRunner::build()
|
||||
{
|
||||
if (!selfTest()) {
|
||||
if (!isReadyToBuild()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -93,9 +99,3 @@ void xmrig::OclBaseRunner::run(uint32_t *hashOutput)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
void xmrig::OclBaseRunner::set(const Job &job)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user