Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LLVMGPU][DT] Add MaterializeDeviceEncodingPass to LLVMGPU passes behind flag #19849

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Max191
Copy link
Contributor

@Max191 Max191 commented Jan 29, 2025

This PR adds the MaterializeDeviceEncodingPass to LLVMGPU/Passes.cpp behind a new flag iree-llvmgpu-experimental-data-tiling. The flag's default value is false, because the codegen for data tiling ops on GPU is not yet working and performant for all cases. Some of the work is in flight, but it will likely take some time before data tiling codegen is ready to be flipped on by default. For now, the flag allows developers to enable the late materialization codegen path on LLVMGPU.

To effectively use the late materialization path, some additional non-default flags need to be set:

  • --iree-opt-data-tiling=false (to turn off the early materialization data tiling path)
  • --iree-dispatch-creation-experimental-data-tiling=true (to turn on the late materialization data tiling path)
  • --iree-dispatch-creation-pad-factor=128 (the current default is based on CPU materialization)

@Max191 Max191 force-pushed the llvmgpu-materialize-device-encodings branch from 86792d5 to 965eeb6 Compare January 29, 2025 22:08
@Max191 Max191 requested a review from kuhar January 29, 2025 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants