Commit 9134838e authored by panning's avatar panning
Browse files

update rocm_version

parent 00670edc
...@@ -61,7 +61,7 @@ if sha != 'Unknown': ...@@ -61,7 +61,7 @@ if sha != 'Unknown':
dcu_version += "." + get_abi() dcu_version += "." + get_abi()
if os.getenv("ROCM_PATH"): if os.getenv("ROCM_PATH"):
rocm_path = os.getenv('ROCM_PATH', "") rocm_path = os.getenv('ROCM_PATH', "")
rocm_version_path = os.path.join(rocm_path, '.info', "version-dev") rocm_version_path = os.path.join(rocm_path, '.info', "rocm_version")
with open(rocm_version_path, 'r',encoding='utf-8') as file: with open(rocm_version_path, 'r',encoding='utf-8') as file:
lines = file.readlines() lines = file.readlines()
rocm_version=lines[0][:-2].replace(".", "") rocm_version=lines[0][:-2].replace(".", "")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment