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

Method device

src/backend/opencl/Array.cpp:244–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242
243template<typename T>
244Buffer *Array<T>::device() {
245 if (!isOwner() || getOffset() || data.use_count() > 1) {
246 *this = copyArray<T>(*this);
247 }
248 return this->get();
249}
250
251template<typename T>
252void evalMultiple(vector<Array<T> *> arrays) {

Callers 1

getDevicePtrFunction · 0.45

Calls 3

getMethod · 0.95
isOwnerFunction · 0.85
getOffsetFunction · 0.50

Tested by

no test coverage detected