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

Method device

src/backend/oneapi/Array.cpp:237–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235
236template<typename T>
237buffer<T> *Array<T>::device() {
238 if (!isOwner() || getOffset() || data.use_count() > 1) {
239 *this = copyArray<T>(*this);
240 }
241 return this->get();
242}
243
244template<typename T>
245void 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