From 54faf812851acfe311c6d86766549ef2749c71b0 Mon Sep 17 00:00:00 2001 From: xuchen-amd Date: Tue, 6 Aug 2024 16:55:14 -0400 Subject: [PATCH] Disabling kernel filtering in omniperf for rocprofv2 --- src/omniperf_profile/profiler_base.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/omniperf_profile/profiler_base.py b/src/omniperf_profile/profiler_base.py index 9da4a7c48..ff9028ca2 100644 --- a/src/omniperf_profile/profiler_base.py +++ b/src/omniperf_profile/profiler_base.py @@ -249,6 +249,15 @@ def pre_processing(self): self._soc.get_compatible_profilers(), ) ) + + # verify profiler version compatibility + if self.__profiler == 'rocprofv2': + # verify kernel filtering is not called on rocprofv2 + if not self.__args.kernel == None: + console_error( + "-k/--kernel is not supported in rocprofv2. Remove kernel filtering and try again." + ) + # verify not accessing parent directories if ".." in str(self.__args.path): console_error(