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

Method eval

src/backend/cuda/Array.cpp:177–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175
176template<typename T>
177void Array<T>::eval() {
178 if (isReady()) { return; }
179
180 this->setId(getActiveDeviceId());
181 this->data = shared_ptr<T>(memAlloc<T>(elements()).release(), memFree);
182
183 Param<T> p(data.get(), dims().get(), strides().get());
184 evalNodes<T>(p, node.get());
185 node.reset();
186}
187
188template<typename T>
189void Array<T>::eval() const {

Callers 5

shiftFunction · 0.45
evalMultipleFunction · 0.45
createSubArrayFunction · 0.45
momentsFunction · 0.45
createSelectNodeFunction · 0.45

Calls 4

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

Tested by

no test coverage detected