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

This commit is contained in:
ywang103-amd
2025-03-31 16:40:53 -04:00
committed by GitHub
parent 9bacad0876
commit 7b38766caa
+4 -1
View File
@@ -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():