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

Function afcu_get_native_id

src/api/unified/cuda.cpp:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23af_err afcu_get_native_id(int* nativeid, int id) {
24 af_backend backend;
25 af_get_active_backend(&backend);
26 if (backend == AF_BACKEND_CUDA) { CALL(afcu_get_native_id, nativeid, id); }
27 return AF_ERR_NOT_SUPPORTED;
28}
29
30af_err afcu_set_native_id(int nativeid) {
31 af_backend backend;

Callers 1

getNativeIdFunction · 0.50

Calls 1

af_get_active_backendFunction · 0.70

Tested by

no test coverage detected