Open rprasad2 opened 1 year ago
The attached error.log
file appears to be empty? You can try recompiling with --iree-llvmcpu-stack-allocation-limit=<int>
, but that error usually indicates some part of codegen is going off of the optimized / happy-path.
The llvmcpu flag I mentioned might not apply here though, since you're using --iree-hal-target-backends=vulkan
(why did you also specify --iree-llvmcpu-target-cpu-features=host
?)
That was the compile script that was running from the original mlir, I'll remove it to see what happens. Here is the information that should have been contained in the log file.
`
Ah, okay. Looks like the shared memory limit is included in the module being compiled: #spirv.resource_limits<max_compute_shared_memory_size = 65536
. That should be getting populated by --iree-vulkan-target-triple=rdna3-7900-windows
. If that target device (AMD GPU) has more shared memory available, the value set during the Vulkan/SPIR-V compilation path could be updated somehow (64KB is the default)
@rprasad2 Any further updates here?
What happened?
Got the error while attempting to compile a tuned upscaler model.
Steps to reproduce your issue
This is the script I ran and attached is the broken dispatch as well as the error log.
iree-compile.exe "C:\Users\rahul\Documents\SHARK\shark_tmp\vae_1_64_128_128_fp16_stable-diffusion-x4-upscaler_vulkan\vae_1_64_128_128_fp16_stable-diffusion-x4-upscaler_vulkan_torch_linalg.mlir" --iree-input-type=tm_tensor --iree-vm-bytecode-module-output-format=flatbuffer-binary --iree-hal-target-backends=vulkan --mlir-print-debuginfo --mlir-print-op-on-diagnostic=false --mlir-pass-pipeline-crash-reproducer=C:\Users\rahul\Documents\SHARK\stabilityai_stable-diffusion-2-1-base\core-reproducer.mlir --iree-llvmcpu-target-cpu-features=host --iree-stream-resource-index-bits=64 --iree-vm-target-index-bits=64 --iree-vm-bytecode-module-strip-source-map=true --iree-util-zero-fill-elided-attrs -iree-vulkan-target-triple=rdna3-7900-windows --iree-preprocessing-pass-pipeline='builtin.module(func.func(iree-flow-detach-elementwise-from-named-ops,iree-flow-convert-1x1-filter-conv2d-to-matmul,iree-preprocessing-convert-conv2d-to-img2col,iree-preprocessing-pad-linalg-ops{pad-size=32},iree-linalg-ext-convert-conv2d-to-winograd))' --mlir-disable-threading
error.log module_forward_dispatch_34.txt
What component(s) does this issue relate to?
Compiler
Version information
No response
Additional context
No response