Skip to content

Commit 1878bc3

Browse files
authored
Remove numpy dependency from rocprofv3.py (#75)
Remove numpy dependency from rocprofv3.py [ROCm/rocprofiler-sdk commit: 9c21c49]
1 parent 49c4992 commit 1878bc3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/bin/rocprofv3.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import sys
55
import argparse
66
import subprocess
7-
import numpy
87

98

109
class dotdict(dict):
@@ -196,7 +195,7 @@ def add_parser_bool_argument(gparser, *args, **kwargs):
196195
"--pc-sampling-interval",
197196
help="",
198197
default=None,
199-
type=numpy.uint64,
198+
type=int,
200199
)
201200
basic_tracing_options = parser.add_argument_group("Basic tracing options")
202201

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

1012+
if args.pc_sampling_interval <= 0:
1013+
fatal_error("PC sampling interval must be a positive number.")
1014+
10131015
update_env("ROCPROF_PC_SAMPLING_UNIT", args.pc_sampling_unit)
10141016
update_env("ROCPROF_PC_SAMPLING_METHOD", args.pc_sampling_method)
10151017
update_env("ROCPROF_PC_SAMPLING_INTERVAL", args.pc_sampling_interval)

0 commit comments

Comments
 (0)