Skip to content

Commit

Permalink
building successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
vimarsh6739 committed Nov 15, 2024
1 parent 9b5c0ac commit c48a88f
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions experiments/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,28 +710,25 @@ def build_all(prefix, ablateType, tmp_dir="tmp", logs_dir="logs"):
compile_example_fpopt_exe(ablateType,tmp_dir,prefix,fpoptflags,output=f"example-fpopt.exe")

elif (ablateType == 5):
log_prefix = f"all-{prefix}"
# build 1, 12,123,1234
atype = 0
for i in range(1,5):
# 1, 12,...
fpoptflags = []
log_prefix = f"{i}-" + log_prefix
atype = atype*10 + i

#regenerate everything
compile_example_exe(tmp_dir,prefix,atype)
compile_example_logged_exe(tmp_dir,prefix,atype)
generate_example_txt(tmp_dir,prefix,atype)

fpoptflags = []
for flag in FPOPTFLAGS_BASE:
if flag.startswith("--fpopt-log-path="):
fpoptflags.append(f"--fpopt-log-path=tmp/{log_prefix}example.txt")
fpoptflags.append(f"--fpopt-log-path=tmp/{atype}-{prefix}example.txt")
else:
fpoptflags.append(flag)
compile_example_fpopt_exe(atype,tmp_dir,prefix,fpoptflags,output=f"example-fpopt.exe")
else:
print("wtf")

# fpoptflags = []
#
# for flag in FPOPTFLAGS_BASE:
# if flag.startswith("--fpopt-log-path="):
# fpoptflags.append(f"--fpopt-log-path=tmp/{prefix}example.txt")
# else:
# fpoptflags.append(flag)
# compile_example_fpopt_exe(tmp_dir, prefix, fpoptflags, output="example-fpopt.exe")
print("=== Initial build process completed successfully ===")

Expand Down

0 comments on commit c48a88f

Please sign in to comment.