onnxruntime/onnxruntime/core/util/thread_utils.h
Pranav Sharma a9ce941579
Refine threading control options and move inter op thread pool to session state. (#1841)
Description: Refine threading control options and move inter op thread pool to session state.
Added thread_utils.h/cc to centralize the decision around the thread pool size under various conditions.

Motivation and Context
Currently the thread pool size of the parallel executor is hardcoded to 32 for some reason. This PR makes the options to configure the thread pool sizes clearer.
2019-09-18 22:36:23 -07:00

10 lines
No EOL
272 B
C++

#include "core/platform/threadpool.h"
#include <memory>
#include <string>
namespace onnxruntime {
namespace concurrency {
std::unique_ptr<ThreadPool> CreateThreadPool(const std::string& name, int thread_pool_size);
} // namespace concurrency
} // namespace onnxruntime