GetCurrentGpuDeviceId property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<Int> device_id)>> GetCurrentGpuDeviceId
getter/setter pair

\brief Get current GPU device ID

Get the current device id of the GPU execution provider (CUDA/tensorrt/rocm).

\see OrtApi::SetCurrentGpuDeviceId

\paramout device_id

\snippet{doc} snippets.dox OrtStatus Return Value

Implementation

external ffi.Pointer<
  ffi.NativeFunction<OrtStatusPtr Function(ffi.Pointer<ffi.Int> device_id)>
>
GetCurrentGpuDeviceId;