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

Function getNativeId

include/af/cuda.h:129–136  ·  view source on GitHub ↗

Get the native device id of the CUDA device with \p id in ArrayFire context \param[in] id ArrayFire device id \returns cuda native id of device \ingroup cuda_mat */

Source from the content-addressed store, hash-verified

127 \ingroup cuda_mat
128 */
129static inline int getNativeId(int id)
130{
131 int retVal;
132 af_err err = afcu_get_native_id(&retVal, id);
133 if (err!=AF_SUCCESS)
134 throw af::exception("Failed to get CUDA device native id from ArrayFire");
135 return retVal;
136}
137#endif
138
139#if AF_API_VERSION >= 32

Callers

nothing calls this directly

Calls 1

afcu_get_native_idFunction · 0.50

Tested by

no test coverage detected