Skip to content

Commit

Permalink
BENCH: auto-rm pk_cpp folder..
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerjereddy committed Mar 19, 2023
1 parent 520f7ee commit ab986bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions benchmarks/dgemm_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""

import os
import shutil
import time

import pykokkos as pk
Expand Down Expand Up @@ -39,6 +40,10 @@
if num_threads is None:
raise ValueError("must set OMP_NUM_THREADS for benchmarks!")

cwd = os.getcwd()
shutil.rmtree(os.path.join(cwd, "pk_cpp"),
ignore_errors=True)

df = pd.DataFrame(np.full(shape=(num_global_repeats, 2), fill_value=np.nan),
columns=["scenario", "time (s)"])
df["scenario"] = df["scenario"].astype(str)
Expand Down

0 comments on commit ab986bf

Please sign in to comment.