From f8a6e8734fcc8eeea5627029cecc8934e315b854 Mon Sep 17 00:00:00 2001 From: xuchen-amd Date: Wed, 7 Aug 2024 12:22:31 -0400 Subject: [PATCH] Disable kernel filtering on omniperf profile for rocprofv2, as rocprofv2 does not currently support this feature. Signed-off-by: xuchen-amd --- 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..72031deb3 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(