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

Method device

src/backend/cuda/Array.cpp:194–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192
193template<typename T>
194T *Array<T>::device() {
195 if (!isOwner() || getOffset() || data.use_count() > 1) {
196 *this = copyArray<T>(*this);
197 }
198 return this->get();
199}
200
201template<typename T>
202void evalMultiple(std::vector<Array<T> *> arrays) {

Callers 3

convolve2_cudnnFunction · 0.45
data_gradient_cudnnFunction · 0.45
filter_gradient_cudnnFunction · 0.45

Calls 3

getMethod · 0.95
isOwnerFunction · 0.85
getOffsetFunction · 0.50

Tested by

no test coverage detected