[rocprofiler-compute] Remove hip dependency during analysis (#2276)
* Remove hip dependency during analysis * dont dynamic import when roofline skipped
This commit is contained in:
@@ -36,7 +36,6 @@ import yaml
|
||||
|
||||
import config
|
||||
from roofline import Roofline
|
||||
from utils import benchmark
|
||||
from utils.amdsmi_interface import amdsmi_ctx, get_gpu_model, get_mem_max_clock
|
||||
from utils.logger import (
|
||||
console_debug,
|
||||
@@ -651,7 +650,6 @@ class OmniSoC_Base:
|
||||
def post_profiling(self) -> None:
|
||||
"""Perform any SoC-specific post profiling activities."""
|
||||
console_debug("profiling", f"perform SoC post processing for {self.__arch}")
|
||||
|
||||
# Roofline can be skipped via --no-roof
|
||||
# Roofline not supported on MI 100
|
||||
# If --filter-blocks is provided, roofline block (block 4) should be mentioned
|
||||
@@ -666,6 +664,9 @@ class OmniSoC_Base:
|
||||
):
|
||||
console_log("roofline", "Skipping roofline")
|
||||
else:
|
||||
# Dynamic import to isolate hip dependency during profile time only
|
||||
from utils import benchmark
|
||||
|
||||
pmc_path = Path(self.get_args().path) / "pmc_perf.csv"
|
||||
if not pmc_path.is_file():
|
||||
console_warning(
|
||||
|
||||
Reference in New Issue
Block a user