OrtSessionOptionsAppendExecutionProvider_CUDA method
OrtStatusPtr
OrtSessionOptionsAppendExecutionProvider_CUDA(
- Pointer<
OrtSessionOptions> options, - int device_id
This is the old way to add the CUDA provider to the session, please use SessionOptionsAppendExecutionProvider_CUDA above to access the latest functionality This function always exists, but will only succeed if Onnxruntime was built with CUDA support and the CUDA provider shared library exists
\param device_id CUDA device id, starts from zero.
Implementation
OrtStatusPtr OrtSessionOptionsAppendExecutionProvider_CUDA(
ffi.Pointer<OrtSessionOptions> options,
int device_id,
) {
return _OrtSessionOptionsAppendExecutionProvider_CUDA(options, device_id);
}