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

Function setNativeId

include/af/cuda.h:147–152  ·  view source on GitHub ↗

Set the CUDA device with given native id as the active device for ArrayFire \param[in] nativeId native device id of the CUDA device \ingroup cuda_mat */

Source from the content-addressed store, hash-verified

145 \ingroup cuda_mat
146 */
147static inline void setNativeId(int nativeId)
148{
149 af_err err = afcu_set_native_id(nativeId);
150 if (err!=AF_SUCCESS)
151 throw af::exception("Failed to change active CUDA device to the device with given native id");
152}
153#endif
154
155}

Callers

nothing calls this directly

Calls 1

afcu_set_native_idFunction · 0.50

Tested by

no test coverage detected