From 9c21c49aa120f3ae187100ab04d64671e330c32c Mon Sep 17 00:00:00 2001 From: "Indic, Vladimir" Date: Thu, 19 Dec 2024 20:52:42 +0100 Subject: [PATCH] Remove numpy dependency from rocprofv3.py (#75) Remove numpy dependency from rocprofv3.py --- source/bin/rocprofv3.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/bin/rocprofv3.py b/source/bin/rocprofv3.py index cd7f4f5cb5..3b385cd869 100755 --- a/source/bin/rocprofv3.py +++ b/source/bin/rocprofv3.py @@ -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)