Open mmorlonDeezer opened 2 years ago
"to.thread_pool_size == 0" . It could be non-zero.
because session_options_.execution_mode == ExecutionMode::ORT_PARALLEL
session_options_.execution_mode == ExecutionMode::ORT_SEQUENTIAL
is always false
so to.thread_pool_size == 0 && session_options_.execution_mode == ExecutionMode::ORT_SEQUENTIAL
is always falseto.auto_set_affinity
always is set to false whatever the to.thread_pool_size
value is
i'm trying to understang cpu affinity settings by reading the code :
i'm a noob in C++ and the ort code base but it seems strange : if my guess is right => line 309 is always false because of line 302
https://github.com/microsoft/onnxruntime/blob/9707181257391323dfe7170d506650ded04dc59c/onnxruntime/core/session/inference_session.cc#L302-L309