Skip to content

Commit

Permalink
Disable kernel filtering on omniperf profile for rocprofv2, as rocpro…
Browse files Browse the repository at this point in the history
…fv2 does not currently support this feature.

Signed-off-by: xuchen-amd <xuchen@amd.com>
  • Loading branch information
xuchen-amd committed Aug 7, 2024
1 parent e6747da commit f8a6e87
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/omniperf_profile/profiler_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f8a6e87

Please sign in to comment.