re-write fucntion that detects whether v1 is in use to avoid false negative result when ROCPROF is not set (#647)

[ROCm/rocprofiler-compute commit: 7b38766caa]
This commit is contained in:
ywang103-amd
2025-03-31 16:40:53 -04:00
committad av GitHub
förälder ee5df82698
incheckning 6e1cab4e03
@@ -54,7 +54,10 @@ def is_tcc_channel_counter(counter):
def using_v1():
return "ROCPROF" in os.environ.keys() and os.environ["ROCPROF"].endswith("rocprof")
return "ROCPROF" not in os.environ.keys() or (
"ROCPROF" in os.environ.keys() and os.environ["ROCPROF"].endswith("rocprof")
)
def using_v3():