This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import os | |
files = ['task1', 'task2', 'task3'] | |
print(os.listdir()) | |
strs = "" | |
for size in range(1, 7): | |
size = str(10**size) | |
strs += "Size: " + size + "\n" | |
for name in files: | |
print(["gcc", f'{name}.c', '-lm', '-lpthread', '-fopenmp', '-o', f'{name}', '&&', f'{name}', size]) |