Skip to content

Commit

Permalink
Lint test galore (#1507)
Browse files Browse the repository at this point in the history
  • Loading branch information
jainapurva authored Jan 7, 2025
1 parent 6399320 commit 416cdb6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ include = [
"test/sparsity/**/*.py",
"test/prototype/**/*.py",
"test/dora/**/*.py",
"test/galore/**/*.py",
]

lint.select = ["F", "I"]
Expand Down
2 changes: 1 addition & 1 deletion test/galore/profile_memory_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def run(args, file_prefix):
if args.torch_profiler:
print(f"Finished profiling, outputs saved to {args.output_dir}/{file_prefix}*")
else:
print(f"Finished profiling")
print("Finished profiling")


if __name__ == "__main__":
Expand Down
2 changes: 0 additions & 2 deletions test/galore/profiling_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ def get_cuda_memory_usage(units="MB", show=True):


def export_memory_snapshot(prefix) -> None:

# Prefix for file names.
timestamp = datetime.now().strftime(TIME_FORMAT_STR)
file_prefix = f"{prefix}_{timestamp}"
Expand Down Expand Up @@ -115,7 +114,6 @@ def trace_handler(
export_memory_timeline=True,
print_table=True,
):

timestamp = datetime.now().strftime(TIME_FORMAT_STR)
file_prefix = os.path.join(output_dir, f"{prefix}_{timestamp}")

Expand Down

0 comments on commit 416cdb6

Please sign in to comment.