Skip to content

Commit

Permalink
try with benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
saienduri committed Apr 2, 2024
1 parent e06e7ce commit 347a7d3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_iree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ jobs:
run: |
source ${VENV_DIR}/bin/activate
pytest iree_tests -s -n auto -k real_weights -rpfE --timeout=1200 --retries 2 --retry-delay 5 --durations=0
pytest iree_tests/benchmarks -n auto -rpfE --timeout=6000 --durations=0
pytest iree_tests/benchmarks -s -rpfE --timeout=6000 --durations=0
9 changes: 7 additions & 2 deletions iree_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,14 @@ def __init__(self, spec, **kwargs):

# TODO(scotttodd): swap cwd for a temp path?
self.test_cwd = self.spec.test_directory
print("CWD: " + str(self.test_cwd))
vae_decode_path = os.path.dirname(os.path.dirname(self.test_cwd)) + "/pytorch/models/sdxl-vae-decode-tank"
scheduled_unet_path = os.path.dirname(os.path.dirname(self.test_cwd)) + "/pytorch/models/sdxl-scheduled-unet-tank"
prompt_encoder_path = os.path.dirname(os.path.dirname(self.test_cwd)) + "/pytorch/models/sdxl-prompt-encoder-tank"
vmfb_name = f"{self.spec.input_mlir_stem}_{self.spec.test_name}.vmfb"
print("VAE: " + str(vae_decode_path))
print("UNET: " + str(scheduled_unet_path))
print("CLIP: " + str(prompt_encoder_path))

self.compile_args = ["iree-compile", self.spec.input_mlir_name]
self.compile_args.extend(self.spec.iree_compile_flags)
Expand Down Expand Up @@ -323,8 +327,9 @@ def runtest(self):
reason="Expected run to fail",
)
)
self.test_run()
if self.spec.test_directory.name == "sdxl-pipeline-benchmark":
# self.test_run()
print("TEST DIR NAME: " + str(self.spec.test_directory.name))
if self.spec.test_directory.name == "sdxl-benchmark":
self.test_benchmark()
else:
self.test_run()
Expand Down

0 comments on commit 347a7d3

Please sign in to comment.