Skip to content

enable_opencl_throttling should be a boolean #24344

Answered by thoron
Mat2001mat asked this question in EP Q&A
Discussion options

You must be logged in to vote

I did some digging and found that the AppendExecutionProvider docs does not reflect actual usage and OpenVINO can be specified: https://onnxruntime.ai/docs/api/csharp/api/Microsoft.ML.OnnxRuntime.SessionOptions.html#Microsoft_ML_OnnxRuntime_SessionOptions_AppendExecutionProvider_System_String_System_Collections_Generic_Dictionary_System_String_System_String__

            var device = "GPU";
            var sessionOptions = new SessionOptions();
            sessionOptions.AppendExecutionProvider("OpenVINO",
                new Dictionary<string, string>
                {
                    { "enable_opencl_throttling", "false" },
                    { "device_type",  device }

Replies: 1 comment 3 replies

Comment options

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

@thoron
Comment options

Answer selected by Mat2001mat
@Mat2001mat
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
EP Q&A
Labels
None yet
2 participants