in AMD_runner.py [0:0]
def get_system_specs():
file = open("Outputs/system_specs.txt", "w")
results = subprocess.run("rocminfo | grep 'ROCk module version'", shell=True, stdout=subprocess.PIPE,stderr=subprocess.PIPE)
rocm_version = results.stdout.decode('utf-8').strip().split(" ")[3]
file.write("ROCm version : "+rocm_version+"\n")
results = subprocess.run("lsb_release -a | grep Release", shell=True, stdout=subprocess.PIPE,stderr=subprocess.PIPE)
ubuntu = results.stdout.decode('utf-8').strip().split("\t")[1]
file.write("ubuntu version : "+ubuntu+"\n")
results = subprocess.run("grep 'stepping\|model\|microcode' /proc/cpuinfo | grep microcode", shell=True, stdout=subprocess.PIPE,stderr=subprocess.PIPE)
microcode = results.stdout.decode('utf-8').split("\n")[0]
file.write(microcode+"\n")
results = subprocess.run("grep 'stepping\|model\|microcode' /proc/cpuinfo | grep name", shell=True, stdout=subprocess.PIPE,stderr=subprocess.PIPE)
file.write(results.stdout.decode('utf-8').split("\n")[0]+"\n")
results = subprocess.run("grep 'cores\|model\|microcode' /proc/cpuinfo | grep cores", shell=True, stdout=subprocess.PIPE,stderr=subprocess.PIPE)
file.write(results.stdout.decode('utf-8').split("\n")[0])
file.close()
return "ND_MI300X_v5"