void resetFlags() { if (m_set_id) { resetCommonFlags(); m_lhs->resetFlags(); m_rhs->resetFlags(); } }
void resetFlags() { m_set_id = false; m_gen_func = false; m_gen_param = false; m_gen_offset = false; m_lhs->resetFlags(); m_rhs->resetFlags(); }
void resetFlags() { m_set_id = false; m_gen_func = false; m_gen_param = false; m_gen_offset = false; m_child->resetFlags(); }
void Array<T>::eval() { if (isReady()) return; this->setId(getActiveDeviceId()); data = Buffer_ptr(bufferAlloc(elements() * sizeof(T)), bufferFree); // Do not replace this with cast operator KParam info = {{dims()[0], dims()[1], dims()[2], dims()[3]}, {strides()[0], strides()[1], strides()[2], strides()[3]}, 0}; Param res = {data.get(), info}; evalNodes(res, this->getNode().get()); ready = true; Node_ptr prev = node; prev->resetFlags(); // FIXME: Replace the current node in any JIT possible trees with the new BufferNode node.reset(); }
void Array<T>::eval() { if (isReady()) return; this->setId(getActiveDeviceId()); data = shared_ptr<T>(memAlloc<T>(elements()), memFree<T>); Param<T> res; res.ptr = data.get(); for (int i = 0; i < 4; i++) { res.dims[i] = dims()[i]; res.strides[i] = strides()[i]; } evalNodes(res, this->getNode().get()); ready = true; Node_ptr prev = node; prev->resetFlags(); // FIXME: Replace the current node in any JIT possible trees with the new BufferNode node.reset(); }
void resetFlags() { resetCommonFlags(); m_lhs->resetFlags(); m_rhs->resetFlags(); }
void resetFlags() { resetCommonFlags(); m_child->resetFlags(); }