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

Function writeHostDataArray

src/backend/opencl/Array.cpp:511–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509
510template<typename T>
511void writeHostDataArray(Array<T> &arr, const T *const data,
512 const size_t bytes) {
513 if (!arr.isOwner()) { arr = copyArray<T>(arr); }
514
515 getQueue().enqueueWriteBuffer(*arr.get(), CL_TRUE, arr.getOffset(), bytes,
516 data);
517}
518
519template<typename T>
520void writeDeviceDataArray(Array<T> &arr, const void *const data,

Callers

nothing calls this directly

Calls 4

getQueueFunction · 0.50
isOwnerMethod · 0.45
getMethod · 0.45
getOffsetMethod · 0.45

Tested by

no test coverage detected