Initial stub for setting job in OpenCL backend.
This commit is contained in:
parent
fcfb738ded
commit
aa294ff066
10 changed files with 67 additions and 23 deletions
|
@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue