Skip to content

Commit abccf6e

Browse files
add nsys filename param (#205)
* add nsys filename param Signed-off-by: Malay Nagda <[email protected]> * ruff fmt Signed-off-by: Malay Nagda <[email protected]> --------- Signed-off-by: Malay Nagda <[email protected]> Signed-off-by: Hemil Desai <[email protected]> Co-authored-by: Hemil Desai <[email protected]>
1 parent f1480f5 commit abccf6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nemo_run/core/execution/launcher.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
class Launcher(ConfigurableMixin):
1414
nsys_profile: bool = False
1515
nsys_folder: str = "nsys_profile"
16+
nsys_filename: str = "profile_%p"
1617
nsys_trace: list[str] = field(default_factory=lambda: ["nvtx", "cuda"])
1718
nsys_extra_args: list[str] = field(
1819
default_factory=lambda: [
@@ -35,7 +36,7 @@ def get_nsys_prefix(self, profile_dir: str) -> Optional[list[str]]:
3536
"-t",
3637
",".join(self.nsys_trace),
3738
"-o",
38-
f"{profile_out_path}/profile_%p",
39+
f"{profile_out_path}/{self.nsys_filename}",
3940
] + self.nsys_extra_args
4041
return args
4142

0 commit comments

Comments
 (0)