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

Function checkAndMigrate

src/backend/oneapi/Array.cpp:92–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90
91template<typename T>
92void checkAndMigrate(const Array<T> &arr) {
93 if (arr.getDevId() != detail::getActiveDeviceId()) {
94 AF_ERROR("Input Array not created on current device", AF_ERR_DEVICE);
95 }
96}
97
98template<typename T>
99Array<T>::Array(const dim4 &dims)

Callers

nothing calls this directly

Calls 2

getDevIdMethod · 0.80
getActiveDeviceIdFunction · 0.70

Tested by

no test coverage detected