|
|
|
@ -3,12 +3,13 @@ import os
@@ -3,12 +3,13 @@ import os
|
|
|
|
|
from string import Template |
|
|
|
|
import sys |
|
|
|
|
|
|
|
|
|
def main(): |
|
|
|
|
|
|
|
|
|
def main(): |
|
|
|
|
print("Running sub_sizes") |
|
|
|
|
|
|
|
|
|
try: |
|
|
|
|
result = subprocess.check_output(["./sizes"]) |
|
|
|
|
except: |
|
|
|
|
except OSError: |
|
|
|
|
result = subprocess.check_output(["sizes.exe"]) |
|
|
|
|
|
|
|
|
|
split_result = result.split() |
|
|
|
@ -38,7 +39,6 @@ def main():
@@ -38,7 +39,6 @@ def main():
|
|
|
|
|
"FOMP_SCHED_AUTO": split_result[7].strip() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ompgen_temp_path = os.path.join("..", "ompgen.F90.template") |
|
|
|
|
ompgen_out_path = os.path.join("..", "ompgen.F90") |
|
|
|
|
|
|
|
|
@ -47,11 +47,11 @@ def main():
@@ -47,11 +47,11 @@ def main():
|
|
|
|
|
|
|
|
|
|
ompgen_string = ompgen_template.substitute(subs) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
with open(ompgen_out_path, "w") as ompgen_out: |
|
|
|
|
ompgen_out.write(ompgen_string) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print("End sub_sizes") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
|
|
main() |