Skip to content

Commit

Permalink
Disabling kernel filtering in omniperf for rocprofv2
Browse files Browse the repository at this point in the history
  • Loading branch information
xuchen-amd committed Aug 6, 2024
1 parent de5eb0d commit 54faf81
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 54faf81

Please sign in to comment.