Skip to content
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

Redefine FBGEMM targets with gpu_cpp_library [27/N] #3221

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
4 changes: 2 additions & 2 deletions fbgemm_gpu/bench/batched_unary_embeddings_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def forward(
@click.option("--num-tasks", default=3)
@click.option("--repeats", default=100)
# pyre-fixme[2]: Parameter must be annotated.
def main(batch_size, num_tables, num_tasks, repeats) -> None:
def cli(batch_size, num_tables, num_tasks, repeats) -> None:
device = torch.device("cuda", 0)
torch.cuda.set_device(device)
hash_sizes = list(np.random.choice(range(50, 250), size=(num_tables)))
Expand Down Expand Up @@ -169,4 +169,4 @@ def main(batch_size, num_tables, num_tasks, repeats) -> None:


if __name__ == "__main__":
main()
cli()
4 changes: 2 additions & 2 deletions fbgemm_gpu/bench/histogram_binning_calibration_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def benchmark_hbc_function(
@click.command()
@click.option("--iters", default=100)
@click.option("--warmup-runs", default=2)
def main(
def cli(
iters: int,
warmup_runs: int,
) -> None:
Expand Down Expand Up @@ -276,4 +276,4 @@ def fbgemm_generic_hbc_by_feature_gpu(


if __name__ == "__main__":
main()
cli()
4 changes: 2 additions & 2 deletions fbgemm_gpu/bench/merge_embeddings_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ def pool_func_with_quantization(
@click.option("--num_of_embeddings", default=100000, type=int)
@click.option("--pooling_factor", default=25, type=int)
@click.option("--sweep", is_flag=True, default=False)
def main(
def cli(
all_to_one_only: bool,
sum_reduce_to_one_only: bool,
num_ads: int,
Expand Down Expand Up @@ -573,4 +573,4 @@ def handler(signum, frame):


if __name__ == "__main__":
main()
cli()
Loading