Skip to content

Commit

Permalink
Make sizes dynamic for some in pipeline IR
Browse files Browse the repository at this point in the history
  • Loading branch information
eagarvey-amd committed May 29, 2024
1 parent d8199f7 commit 94cd822
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 42 deletions.
12 changes: 6 additions & 6 deletions models/turbine_models/custom_models/sd_inference/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
GFX11_flags = {
"all": [
"--iree-global-opt-propagate-transposes=true",
"--iree-opt-outer-dim-concat=true",
"--iree-vm-target-truncate-unsupported-floats",
"--iree-llvmgpu-enable-prefetch=true",
"--iree-opt-data-tiling=false",
"--iree-codegen-gpu-native-math-precision=true",
#"--iree-opt-outer-dim-concat=true",
#"--iree-vm-target-truncate-unsupported-floats",
#"--iree-llvmgpu-enable-prefetch=true",
#"--iree-opt-data-tiling=false",
#"--iree-codegen-gpu-native-math-precision=true",
"--iree-codegen-llvmgpu-use-vector-distribution=true",
"--iree-preprocessing-pass-pipeline=builtin.module(iree-preprocessing-transpose-convolution-pipeline, util.func(iree-preprocessing-pad-to-intrinsics))",
],
Expand Down Expand Up @@ -78,7 +78,7 @@ def compile_to_vmfb(
raise ValueError(
"target_triple must be set. Usually this can be fixed by setting --iree_target_triple in the CLI."
)
if device == "cpu":
if device in ["cpu", "llvm-cpu"]:
flags.extend(
[
"--iree-llvmcpu-target-triple=" + target_triple,
Expand Down
Loading

0 comments on commit 94cd822

Please sign in to comment.