Remove numpy dependency from rocprofv3.py (#75)

Remove numpy dependency from rocprofv3.py

[ROCm/rocprofiler-sdk commit: 9c21c49aa1]
This commit is contained in:
Indic, Vladimir
2024-12-19 20:52:42 +01:00
committed by GitHub
parent f8442415f8
commit 86417237a6
@@ -4,7 +4,6 @@ import os
import sys
import argparse
import subprocess
import numpy
class dotdict(dict):
@@ -196,7 +195,7 @@ For MPI applications (or other job launchers such as SLURM), place rocprofv3 ins
"--pc-sampling-interval",
help="",
default=None,
type=numpy.uint64,
type=int,
)
basic_tracing_options = parser.add_argument_group("Basic tracing options")
@@ -1010,6 +1009,9 @@ def run(app_args, args, **kwargs):
):
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)