MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / setMaxThreads

Method setMaxThreads

include/NvInfer.h:10226–10229  ·  view source on GitHub ↗

\brief Set the maximum number of threads. \param maxThreads The maximum number of threads that can be used by the builder. \return True if successful, false otherwise. The default value is 1 and includes the current thread. A value greater than 1 permits TensorRT to use multi-threaded algorithms. A value less than 1 triggers a kINVALID_ARGUMENT error.

Source from the content-addressed store, hash-verified

10224 //! A value less than 1 triggers a kINVALID_ARGUMENT error.
10225 //!
10226 bool setMaxThreads(int32_t maxThreads) noexcept
10227 {
10228 return mImpl->setMaxThreads(maxThreads);
10229 }
10230
10231 //!
10232 //! \brief get the maximum number of threads that can be used by the builder.

Callers 1

timeRefitFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected