Skip to content

Adding hal.interface.workgroup.* ops. - #4149

Merged
benvanik merged 5 commits into
mainfrom
benvanik-workgroups
Dec 10, 2020
Merged

benvanik merged 5 commits into
mainfrom
benvanik-workgroups

Conversation

@benvanik

@benvanik benvanik commented Dec 9, 2020 •

Copy link
Copy Markdown
Collaborator

hal.interface.workgroup.size will always return 1,1,1 at runtime today (until that is available) but a pass is added to propagate it as constant data when present on entry points.

@benvanik benvanik added enhancement ➕ New feature or request compiler/dialects Relating to the IREE compiler dialects (flow, hal, vm) labels Dec 9, 2020
@benvanik benvanik added this to the 2020Q4 Core milestone Dec 9, 2020
@benvanik
benvanik requested a review from asaadaldien December 9, 2020 17:00
@google-cla google-cla Bot added the cla: yes label Dec 9, 2020
@benvanik
benvanik force-pushed the benvanik-workgroups branch from 5d71eff to 5ff4a86 Compare December 9, 2020 17:02
@benvanik
benvanik marked this pull request as ready for review December 9, 2020 17:05
@benvanik
benvanik force-pushed the benvanik-workgroups branch 3 times, most recently from 6077677 to 54adc99 Compare December 9, 2020 19:53
auto newFuncOp = cast<LLVM::LLVMFuncOp>(rewriter.getBlock()->getParentOp());
auto xyzTy =
LLVM::LLVMType::getInt32Ty(rewriter.getContext()).getPointerTo();
auto xyzArgument = newFuncOp.getArgument(ArgIndex);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! this might be the only valid way to do this kind of conversion func() -> llvm.func(%fixed_args....).

@asaadaldien

Copy link
Copy Markdown
Contributor

@benvanik
benvanik force-pushed the benvanik-workgroups branch from 54adc99 to f6895cb Compare December 9, 2020 22:43
// -----

// CHECK-LABEL: @interface_io_tensors
func @interface_io_tensors() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Wanna move these tests to a different commit in your stack ?

@benvanik benvanik Dec 10, 2020 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah this is just moving them while touching the file - git absorb issues probably :) I'll just squash

@benvanik
benvanik merged commit 1b71cac into main Dec 10, 2020
@benvanik
benvanik deleted the benvanik-workgroups branch December 10, 2020 02:09
This was referenced Dec 10, 2020
@hanhanW hanhanW mentioned this pull request Dec 10, 2020
copybara-service Bot pushed a commit that referenced this pull request Dec 10, 2020
* 1b71cac Adding hal.interface.workgroup.* ops. (#4149)
* 04b7c37 Add ctests for the tensorflow/e2e directory.
* c3fc9a1 Remove all !r from python f-strings (#4157)
* fdb88b9 improve tracy docs (#4117)
* 204f652 Write the doc page on profiling cpu events (#4126)
* 613efa8 Add build instructions to python getting started (#4153)
* d889ac1 Revert "Fix missing f-string (#4150)"
* aaa08b1 Enable dylib-llvm-aot tests and switch from testing JIT to AOT. (#3928)
* cb1e46e Refactor and normalization of mhlo convolutions (#4113)
* 0590b3c Fix missing f-string (#4150)
* 2f7cab5 Check in BuildKite pipeline for android tests (#4137)
* c195ae9 Fix types for std::min on MSVC. (#4148)
* 5fefe30 Integrate MLIR-EmitC at iml130/mlir-emitc@a438d3b (#4145)
* f03307d Fix ImGui function in iree-run-module-vulkan-gui-main. (#4147)

COPYBARA_INTEGRATE_REVIEW=#4168 from hanhanW:main-to-google 7c443d3
PiperOrigin-RevId: 346812805
hanhanW added a commit that referenced this pull request Dec 10, 2020
* 1b71cac Adding hal.interface.workgroup.* ops. (#4149)
* 04b7c37 Add ctests for the tensorflow/e2e directory.
* c3fc9a1 Remove all !r from python f-strings (#4157)
* fdb88b9 improve tracy docs (#4117)
* 204f652 Write the doc page on profiling cpu events (#4126)
* 613efa8 Add build instructions to python getting started (#4153)
* d889ac1 Revert "Fix missing f-string (#4150)"
* aaa08b1 Enable dylib-llvm-aot tests and switch from testing JIT to AOT. (#3928)
* cb1e46e Refactor and normalization of mhlo convolutions (#4113)
* 0590b3c Fix missing f-string (#4150)
* 2f7cab5 Check in BuildKite pipeline for android tests (#4137)
* c195ae9 Fix types for std::min on MSVC. (#4148)
* 5fefe30 Integrate MLIR-EmitC at iml130/mlir-emitc@a438d3b (#4145)
* f03307d Fix ImGui function in iree-run-module-vulkan-gui-main. (#4147)

COPYBARA_INTEGRATE_REVIEW=#4168 from hanhanW:main-to-google 7c443d3
PiperOrigin-RevId: 346812805
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compiler/dialects Relating to the IREE compiler dialects (flow, hal, vm) enhancement ➕ New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants