Commit ac8bc67
correctly set log level for benchmark runs (meta-pytorch#3494)
Summary:
Pull Request resolved: meta-pytorch#3494
# context
* loglevel is not correctly set in train pipeline benchmark due to the multiprocess setup
* the log level is only set in the main process but not correctly set in the forked/spawn processes
* this diff add the `loglevel` argument into the RunConfig so that in every runner funcion can call `set_logger_level`
* also directly pass the error message on yaml or json parser failure, which previously just warn silently and the warning message is buried in lengthy logs.
* with loglevel=info we can now see the planner info: P2014482201
Reviewed By: spmex
Differential Revision: D85829837
fbshipit-source-id: 9719baf4307972a1794bf8870cd5c2df8add44361 parent 75dfb7f commit ac8bc67
File tree
2 files changed
+23
-14
lines changed- torchrec/distributed/benchmark
2 files changed
+23
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
439 | 433 | | |
440 | 434 | | |
441 | 435 | | |
| |||
479 | 473 | | |
480 | 474 | | |
481 | 475 | | |
482 | | - | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
483 | 482 | | |
484 | 483 | | |
485 | 484 | | |
| |||
548 | 547 | | |
549 | 548 | | |
550 | 549 | | |
551 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
552 | 556 | | |
553 | 557 | | |
554 | 558 | | |
| |||
857 | 861 | | |
858 | 862 | | |
859 | 863 | | |
| 864 | + | |
860 | 865 | | |
861 | 866 | | |
862 | 867 | | |
| |||
873 | 878 | | |
874 | 879 | | |
875 | 880 | | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
876 | 885 | | |
877 | 886 | | |
878 | 887 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
0 commit comments