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

Method device

src/backend/cpu/Array.cpp:153–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151
152template<typename T>
153T *Array<T>::device() {
154 if (!isOwner() || getOffset() || data.use_count() > 1) {
155 *this = copyArray<T>(*this);
156 }
157 getQueue().sync();
158 return this->get();
159}
160
161template<typename T>
162void evalMultiple(vector<Array<T> *> array_ptrs) {

Callers

nothing calls this directly

Calls 5

getMethod · 0.95
isOwnerFunction · 0.85
getOffsetFunction · 0.50
getQueueFunction · 0.50
syncMethod · 0.45

Tested by

no test coverage detected