re-write fucntion that detects whether v1 is in use to avoid false negative result when ROCPROF is not set (#647)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9bacad0876
Коммит
7b38766caa
@@ -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():
|
||||
|
||||
Ссылка в новой задаче
Block a user