cn/r part 2 of 2.
This commit is contained in:
parent
b9e15389ca
commit
57f82f7504
16 changed files with 287 additions and 139 deletions
|
@ -66,11 +66,10 @@ xmrig::OclBaseRunner::OclBaseRunner(size_t id, const OclLaunchData &data) :
|
|||
|
||||
xmrig::OclBaseRunner::~OclBaseRunner()
|
||||
{
|
||||
OclLib::releaseProgram(m_program);
|
||||
OclLib::releaseMemObject(m_input);
|
||||
OclLib::releaseMemObject(m_output);
|
||||
|
||||
OclLib::releaseCommandQueue(m_queue);
|
||||
OclLib::release(m_program);
|
||||
OclLib::release(m_input);
|
||||
OclLib::release(m_output);
|
||||
OclLib::release(m_queue);
|
||||
}
|
||||
|
||||
|
||||
|
@ -86,6 +85,12 @@ bool xmrig::OclBaseRunner::selfTest() const
|
|||
}
|
||||
|
||||
|
||||
uint32_t xmrig::OclBaseRunner::deviceIndex() const
|
||||
{
|
||||
return data().thread.index();
|
||||
}
|
||||
|
||||
|
||||
void xmrig::OclBaseRunner::build()
|
||||
{
|
||||
if (!isReadyToBuild()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue