MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / eval

Method eval

src/backend/opencl/Array.cpp:220–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218
219template<typename T>
220void Array<T>::eval() {
221 if (isReady()) { return; }
222
223 this->setId(getActiveDeviceId());
224 data = std::shared_ptr<cl::Buffer>(memAlloc<T>(info.elements()).release(),
225 bufferFree);
226
227 // Do not replace this with cast operator
228 KParam info = {{dims()[0], dims()[1], dims()[2], dims()[3]},
229 {strides()[0], strides()[1], strides()[2], strides()[3]},
230 0};
231
232 Param res = {data.get(), info};
233
234 evalNodes(res, getNode().get());
235 node.reset();
236}
237
238template<typename T>
239void Array<T>::eval() const {

Callers 15

sparseConvertDenseToCOOFunction · 0.45
sparseConvertCOOToDenseFunction · 0.45
topkFunction · 0.45
shiftFunction · 0.45
evalMultipleFunction · 0.45
createSubArrayFunction · 0.45
sort_indexFunction · 0.45
momentsFunction · 0.45
createSelectNodeFunction · 0.45

Calls 6

setIdMethod · 0.95
resetMethod · 0.80
getActiveDeviceIdFunction · 0.70
evalNodesFunction · 0.70
elementsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected