Initial stub for setting job in OpenCL backend.

This commit is contained in:
XMRig 2019-08-28 02:05:19 +07:00
parent fcfb738ded
commit aa294ff066
10 changed files with 67 additions and 23 deletions

View file

@ -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)
{
}