Skip to content
Discussion options

You must be logged in to vote

ONNX Runtime doesn't work well with "taskset" if you didn't explicitly set the number of threads which onnxruntime should create. So, did you set the option?

  /** \brief Sets the number of threads used to parallelize the execution within nodes
  *
  * When running a single node operation, ex. add, this sets the maximum number of threads to use.
  *
  * \note If built with OpenMP, this has no effect on the number of threads used. In this case
  *       use the OpenMP env variables to configure the number of intra op num threads.
  *
  * \param[in] options
  * \param[in] intra_op_num_threads Number of threads to use<br>
  *   A value of 0 will use the default number of threads<br>
  *
  * …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@anandvishes
Comment options

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