Цей коміт міститься в:
justxi
2018-03-22 19:41:59 +01:00
зафіксовано Chris Freehill
джерело 26378662db
коміт cfbbb52395
+3 -3
Переглянути файл
@@ -78,7 +78,7 @@ def readFromROCMINFO():
try:
# run rocminfo
rocminfo_output = subprocess.Popen(rocminfo_executable, stdout=subprocess.PIPE).communicate()[0].split('\n')
rocminfo_output = subprocess.Popen(rocminfo_executable, stdout=subprocess.PIPE).communicate()[0].decode("utf-8").split('\n')
except:
rocminfo_output = []
@@ -138,10 +138,10 @@ def main():
# workaround to cope with existing rocm_agent_enumerator behavior where gfx000
# would always be returned
print "gfx000"
print("gfx000")
for gfx in target_list:
print gfx
print(gfx)
if __name__ == "__main__":
main()