Skip to content

Instantly share code, notes, and snippets.

View Bamgm14's full-sized avatar
💭
Surpassing My Limits

Bamgm14 Bamgm14

💭
Surpassing My Limits
View GitHub Profile
@Bamgm14
Bamgm14 / tester.py
Created August 7, 2024 05:35
Helper Function For Lab 2 to compile code and run with multiple parameters
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])