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:
zatwierdzone przez
GitHub
rodzic
ee5df82698
commit
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():
|
||||
|
||||
Reference in New Issue
Block a user