Skip to content

Commit

Permalink
Remove numpy dependency from rocprofv3.py (#75)
Browse files Browse the repository at this point in the history
Remove numpy dependency from rocprofv3.py
  • Loading branch information
vlaindic authored Dec 19, 2024
1 parent 2c8e88a commit 9c21c49
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/bin/rocprofv3.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import sys
import argparse
import subprocess
import numpy


class dotdict(dict):
Expand Down Expand Up @@ -196,7 +195,7 @@ def add_parser_bool_argument(gparser, *args, **kwargs):
"--pc-sampling-interval",
help="",
default=None,
type=numpy.uint64,
type=int,
)
basic_tracing_options = parser.add_argument_group("Basic tracing options")

Expand Down Expand Up @@ -1010,6 +1009,9 @@ def log_config(_env):
):
fatal_error("All three PC sampling configurations need to be set")

if args.pc_sampling_interval <= 0:
fatal_error("PC sampling interval must be a positive number.")

update_env("ROCPROF_PC_SAMPLING_UNIT", args.pc_sampling_unit)
update_env("ROCPROF_PC_SAMPLING_METHOD", args.pc_sampling_method)
update_env("ROCPROF_PC_SAMPLING_INTERVAL", args.pc_sampling_interval)
Expand Down

0 comments on commit 9c21c49

Please sign in to comment.