Skip to content
Discussion options

You must be logged in to vote

This can be done using the function UpdateCUDAProviderOptions.

For example, you could do:

const std::vector<std::string> keys{"device_id"};
const std::vector<std::string> values{"1"};
api.UpdateCUDAProviderOptions(cuda_options, keys.data(), values.data(), 1U);

Refer to the API documentation here

Note that the code snippet I provided is not tested and may need adjustments.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@boxerab
Comment options

@baijumeswani
Comment options

@boxerab
Comment options

Answer selected by baijumeswani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants