Skip to content
Snippets Groups Projects
Commit f8dfa053 authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad
Browse files

fix typos

parent b3810142
No related branches found
No related tags found
1 merge request!40Rename a few variables and function names for clarity
Pipeline #370459 failed
...@@ -660,13 +660,13 @@ def get_native_microarchitecture(): ...@@ -660,13 +660,13 @@ def get_native_microarchitecture():
# attempt to get MICRO_ARCH from environment variable (should work on # attempt to get MICRO_ARCH from environment variable (should work on
# MPSD_HPC and MPSD linux laptops). If not defined, return # MPSD_HPC and MPSD linux laptops). If not defined, return
# "UNKNOWN_MICROARCH" # "UNKNOWN_MICROARCH"
microarch = os.environ.get("microarch", "UNKNOWN_MICROARCH") microarch = os.environ.get("MPSD_MICROARCH", "UNKNOWN_MICROARCH")
# if we have not found the microarchitecture environment variable, # if we have not found the microarchitecture environment variable,
# try calling archspec # try calling archspec
if microarch == "UNKNOWN_MICROARCH": if microarch == "UNKNOWN_MICROARCH":
logging.debug( logging.debug(
"Couldn't find microarch environment variable. Will try archspec." "Couldn't find MPSD_MICROARCH environment variable. Will try archspec."
) )
try: try:
process = run(["archspec", "cpu"], stdout=subprocess.PIPE, text=True) process = run(["archspec", "cpu"], stdout=subprocess.PIPE, text=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment