Fix incorrect logging in mi_gpu_spec.py (#626)
* Move console logging to logger function to avoid circular dependency in utils module
Signed-off-by: coleramos425 <colramos@amd.com>
* Apply python formatting
Signed-off-by: coleramos425 <colramos@amd.com>
* Remove the default StreamHandler before adding the custom
If you are not explicitly removing this default handler, it could be causing duplicate outputs.
Signed-off-by: coleramos425 <colramos@amd.com>
* Fix lingering bugs from merge conflict resolution
Signed-off-by: coleramos425 <colramos@amd.com>
* Comply to python formatting and update pre-commit hook helper
Signed-off-by: coleramos425 <colramos@amd.com>
* Removing redundant console_log call as the get_mi300_num_xcds() call, otherwise ALL Mi200 profiling runs will print this message
Signed-off-by: coleramos425 <colramos@amd.com>
---------
Signed-off-by: coleramos425 <colramos@amd.com>
[ROCm/rocprofiler-compute commit: 04f92b72a9]
このコミットが含まれているのは:
@@ -35,13 +35,15 @@ import pandas as pd
|
||||
from tqdm import tqdm
|
||||
|
||||
import config
|
||||
from utils.utils import (
|
||||
capture_subprocess_output,
|
||||
from utils.logger import (
|
||||
console_debug,
|
||||
console_error,
|
||||
console_log,
|
||||
console_warning,
|
||||
demarcate,
|
||||
)
|
||||
from utils.utils import (
|
||||
capture_subprocess_output,
|
||||
gen_sysinfo,
|
||||
print_status,
|
||||
run_prof,
|
||||
|
||||
@@ -27,7 +27,8 @@ from pathlib import Path
|
||||
|
||||
import config
|
||||
from rocprof_compute_profile.profiler_base import RocProfCompute_Base
|
||||
from utils.utils import console_log, demarcate, replace_timestamps, store_app_cmd
|
||||
from utils.logger import console_log, demarcate
|
||||
from utils.utils import replace_timestamps, store_app_cmd
|
||||
|
||||
|
||||
class rocprof_v1_profiler(RocProfCompute_Base):
|
||||
|
||||
@@ -28,7 +28,8 @@ from pathlib import Path
|
||||
|
||||
import config
|
||||
from rocprof_compute_profile.profiler_base import RocProfCompute_Base
|
||||
from utils.utils import console_log, demarcate, replace_timestamps, store_app_cmd
|
||||
from utils.logger import console_log, demarcate
|
||||
from utils.utils import replace_timestamps, store_app_cmd
|
||||
|
||||
|
||||
class rocprof_v2_profiler(RocProfCompute_Base):
|
||||
|
||||
@@ -28,7 +28,7 @@ from pathlib import Path
|
||||
|
||||
import config
|
||||
from rocprof_compute_profile.profiler_base import RocProfCompute_Base
|
||||
from utils.utils import console_error, console_log, demarcate, replace_timestamps
|
||||
from utils.logger import console_error, console_log, demarcate
|
||||
|
||||
|
||||
class rocprof_v3_profiler(RocProfCompute_Base):
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
##############################################################################el
|
||||
|
||||
from rocprof_compute_profile.profiler_base import RocProfCompute_Base
|
||||
from utils.utils import console_log, demarcate
|
||||
from utils.logger import console_log, demarcate
|
||||
|
||||
|
||||
class rocscope_profiler(RocProfCompute_Base):
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする