File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
python/tvm/meta_schedule/runner Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1515# specific language governing permissions and limitations
1616# under the License.
1717"""Local Runner"""
18+ import logging
1819from contextlib import contextmanager
1920from typing import Callable , List , Optional , Union
2021import subprocess
@@ -273,12 +274,16 @@ def __init__(
273274 self .f_run_evaluator = f_run_evaluator
274275 self .f_cleanup = f_cleanup
275276
277+ err_path = subprocess .DEVNULL
278+ if logger .root .level <= logging .DEBUG :
279+ err_path = subprocess .STDOUT
280+
276281 logger .info ("LocalRunner: max_workers = 1" )
277282 self .pool = PopenPoolExecutor (
278283 max_workers = 1 , # one local worker
279284 timeout = timeout_sec ,
280285 initializer = initializer ,
281- stderr = subprocess . DEVNULL , # suppress the stderr output
286+ stderr = err_path , # suppress the stderr output
282287 )
283288 self ._sanity_check ()
284289
You can’t perform that action at this time.
0 commit comments