UpdateCUDAProviderOptions property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtCUDAProviderOptionsV2> cuda_options, Pointer<Pointer<Char>> provider_options_keys, Pointer<Pointer<Char>> provider_options_values, Size num_keys)>> UpdateCUDAProviderOptions
getter/setter pair

\brief Set options in a CUDA Execution Provider.

Please refer to https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#configuration-options to know the available keys and values. Key should be in null terminated string format of the member of ::OrtCUDAProviderOptionsV2 and value should be its related range. Recreates the options and only sets the supplied values.

For example, key="device_id" and value="0"

\paramin cuda_options \paramin provider_options_keys Array of UTF-8 null-terminated string for provider options keys \paramin provider_options_values Array of UTF-8 null-terminated string for provider options values \paramin num_keys Number of elements in the provider_option_keys and provider_options_values arrays

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.11.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtCUDAProviderOptionsV2> cuda_options,
      ffi.Pointer<ffi.Pointer<ffi.Char>> provider_options_keys,
      ffi.Pointer<ffi.Pointer<ffi.Char>> provider_options_values,
      ffi.Size num_keys,
    )
  >
>
UpdateCUDAProviderOptions;