Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion python/tvm/meta_schedule/runner/local_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# specific language governing permissions and limitations
# under the License.
"""Local Runner"""
import logging
from contextlib import contextmanager
from typing import Callable, List, Optional, Union
import subprocess
Expand Down Expand Up @@ -273,12 +274,16 @@ def __init__(
self.f_run_evaluator = f_run_evaluator
self.f_cleanup = f_cleanup

err_path = subprocess.DEVNULL
if logger.root.level <= logging.DEBUG:
err_path = subprocess.STDOUT

logger.info("LocalRunner: max_workers = 1")
self.pool = PopenPoolExecutor(
max_workers=1, # one local worker
timeout=timeout_sec,
initializer=initializer,
stderr=subprocess.DEVNULL, # suppress the stderr output
stderr=err_path, # suppress the stderr output
)
self._sanity_check()

Expand Down