Skip to content

fix benchmark logging after script reorganization #3819

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion fbgemm_gpu/bench/bench_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

import torch

logging.basicConfig(level=logging.DEBUG)
logger: logging.Logger = logging.getLogger()
logger.setLevel(logging.DEBUG)


def benchmark_torch_function( # noqa: C901
Expand Down
3 changes: 2 additions & 1 deletion fbgemm_gpu/bench/tbe/batch_benchmark_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

import click

logging.basicConfig(level=logging.DEBUG)
logger: logging.Logger = logging.getLogger()
logger.setLevel(logging.DEBUG)


@click.command()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
from torch import Tensor
from torch.profiler import profile

logging.basicConfig(level=logging.DEBUG)
logger: logging.Logger = logging.getLogger()
logger.setLevel(logging.DEBUG)


@click.group()
Expand Down
3 changes: 2 additions & 1 deletion fbgemm_gpu/bench/tbe/tbe_inference_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
from fbgemm_gpu.tbe.utils import generate_requests, round_up, TBERequest
from torch.profiler import profile

logging.basicConfig(level=logging.DEBUG)
logger: logging.Logger = logging.getLogger()
logger.setLevel(logging.DEBUG)


def kineto_trace_profiler(p: profile, trace_info: tuple[str, str, str, str]) -> float:
Expand Down