Skip to content

Commit

Permalink
Add comment for using cout instead of the logger
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavsharma committed Jun 1, 2020
1 parent 48fd4e5 commit 5348622
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions onnxruntime/core/session/abi_session_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ ORT_API_STATUS_IMPL(OrtApis::SetIntraOpNumThreads, _Inout_ OrtSessionOptions* op
#ifdef _OPENMP
ORT_UNUSED_PARAMETER(options);
ORT_UNUSED_PARAMETER(intra_op_num_threads);
// Can't use the default logger here since it's possible that the default logger has not been created
// at this point. The default logger gets created when the env is created and these APIs don't require
// the env to be created first.
std::cout << "WARNING: Since openmp is enabled in this build, this API cannot be used to configure"
" intra op num threads. Please use the openmp environment variables to control"
" the number of threads.\n";
Expand Down

0 comments on commit 5348622

Please sign in to comment.