Skip to content

Add wasm-micro-runtime submodule and get building with CMake. - #5077

Merged
ScottTodd merged 2 commits into
iree-org:mainfrom
ScottTodd:wamr-setup
Mar 12, 2021
Merged

ScottTodd merged 2 commits into
iree-org:mainfrom
ScottTodd:wamr-setup

Conversation

@ScottTodd

Copy link
Copy Markdown
Member

This adds wasm-micro-runtime ("WAMR"), a standalone WebAssembly (WASM) runtime with a small footprint, as a dependency for IREE's runtime to use to execute WASM modules.

A build target is defined just for WAMR's "iwasm VM core" to start with. Their WASM C API implementation doesn't quite support the features we need yet, and I haven't yet looked into their "wamrc AoT compiler" (which would help with #4023).

Fixes #4018.

I have a stack of commits starting to use this, which I'll be sending out next.

@ScottTodd ScottTodd added runtime Relating to the IREE runtime library infrastructure/cmake labels Mar 12, 2021
@ScottTodd
ScottTodd requested a review from benvanik March 12, 2021 00:39
@google-cla google-cla Bot added the cla: yes label Mar 12, 2021
@ScottTodd
ScottTodd merged commit e2fe13e into iree-org:main Mar 12, 2021
@ScottTodd
ScottTodd deleted the wamr-setup branch March 12, 2021 22:28
copybara-service Bot pushed a commit that referenced this pull request Mar 12, 2021
* 161f932 Enable CUDA tests on Turing platforms (#5091)
* e16759c [CodeGen] Avoid eliminating output store unconditionally (#5073)
* e2fe13e Add wasm-micro-runtime submodule and get building with CMake. (#5077)
* 33c4e39 Bump Tracy submodule to v0.7.6. (#5094)
* 3f6335f Use correct tied operand index when creating DispatchWorkgroupsOp (#5090)
* e5cfa53 Allow all matmul variants to be a root op (#5065)
* a5a0f1d Merge google -> main (#5086)
* 1ef76ba Merge pull request #5083 from google/benvanik-flow-passes
* 0668b55 Configure compiler to generate 'wasm' executables using wasm-llvm-aot. (#5079)
* 6d41b9d Create InitTensorOp based on input operand shapes. (#5070)
* bb819df Shuffling the SIP reflection attrs pass around a bit. This is in preparation f..
* 6b63dac Fixing deprecation warning.
* 5c5d2aa Removing old identify dispatch regions. Not yet the new old identify dispatch ..
* 80cdcce Splitting out input passes from flow passes. Eventually the TOSA/HLO stuff wil..
* a2a464d Add missing CMake dep (#5081)
* ca29d25 [CodeGen] NFC: Rename LinalgTileAndFusePass (#5075)
* f3d7654 Add MobileNetV2 to benchmarking targets. (#5064)
* 8aace66 Rename CMake target DYLIB-LLVM-AOT to just LLVM-AOT.
* 98f2135 Add WASM executable format and produce it with LLVMAOTTarget.
* 2795092 Add CMake configuration for WAMR's runtime "iwasm VM core".
* 2b5c7b9 Add third_party/wasm-micro-runtime submodule.

COPYBARA_INTEGRATE_REVIEW=#5097 from ThomasRaoux:main-to-google 161f932
PiperOrigin-RevId: 362617674
iree-github-actions-bot pushed a commit that referenced this pull request Mar 12, 2021
* 161f932 Enable CUDA tests on Turing platforms (#5091)
* e16759c [CodeGen] Avoid eliminating output store unconditionally (#5073)
* e2fe13e Add wasm-micro-runtime submodule and get building with CMake. (#5077)
* 33c4e39 Bump Tracy submodule to v0.7.6. (#5094)
* 3f6335f Use correct tied operand index when creating DispatchWorkgroupsOp (#5090)
* e5cfa53 Allow all matmul variants to be a root op (#5065)
* a5a0f1d Merge google -> main (#5086)
* 1ef76ba Merge pull request #5083 from google/benvanik-flow-passes
* 0668b55 Configure compiler to generate 'wasm' executables using wasm-llvm-aot. (#5079)
* 6d41b9d Create InitTensorOp based on input operand shapes. (#5070)
* bb819df Shuffling the SIP reflection attrs pass around a bit. This is in preparation f..
* 6b63dac Fixing deprecation warning.
* 5c5d2aa Removing old identify dispatch regions. Not yet the new old identify dispatch ..
* 80cdcce Splitting out input passes from flow passes. Eventually the TOSA/HLO stuff wil..
* a2a464d Add missing CMake dep (#5081)
* ca29d25 [CodeGen] NFC: Rename LinalgTileAndFusePass (#5075)
* f3d7654 Add MobileNetV2 to benchmarking targets. (#5064)
* 8aace66 Rename CMake target DYLIB-LLVM-AOT to just LLVM-AOT.
* 98f2135 Add WASM executable format and produce it with LLVMAOTTarget.
* 2795092 Add CMake configuration for WAMR's runtime "iwasm VM core".
* 2b5c7b9 Add third_party/wasm-micro-runtime submodule.

PiperOrigin-RevId: 362617674
ThomasRaoux added a commit that referenced this pull request Mar 13, 2021
* 161f932 Enable CUDA tests on Turing platforms (#5091)
* e16759c [CodeGen] Avoid eliminating output store unconditionally (#5073)
* e2fe13e Add wasm-micro-runtime submodule and get building with CMake. (#5077)
* 33c4e39 Bump Tracy submodule to v0.7.6. (#5094)
* 3f6335f Use correct tied operand index when creating DispatchWorkgroupsOp (#5090)
* e5cfa53 Allow all matmul variants to be a root op (#5065)
* a5a0f1d Merge google -> main (#5086)
* 1ef76ba Merge pull request #5083 from google/benvanik-flow-passes
* 0668b55 Configure compiler to generate 'wasm' executables using wasm-llvm-aot. (#5079)
* 6d41b9d Create InitTensorOp based on input operand shapes. (#5070)
* bb819df Shuffling the SIP reflection attrs pass around a bit. This is in preparation f..
* 6b63dac Fixing deprecation warning.
* 5c5d2aa Removing old identify dispatch regions. Not yet the new old identify dispatch ..
* 80cdcce Splitting out input passes from flow passes. Eventually the TOSA/HLO stuff wil..
* a2a464d Add missing CMake dep (#5081)
* ca29d25 [CodeGen] NFC: Rename LinalgTileAndFusePass (#5075)
* f3d7654 Add MobileNetV2 to benchmarking targets. (#5064)
* 8aace66 Rename CMake target DYLIB-LLVM-AOT to just LLVM-AOT.
* 98f2135 Add WASM executable format and produce it with LLVMAOTTarget.
* 2795092 Add CMake configuration for WAMR's runtime "iwasm VM core".
* 2b5c7b9 Add third_party/wasm-micro-runtime submodule.

PiperOrigin-RevId: 362617674
ScottTodd added a commit that referenced this pull request Apr 5, 2021
#5312)

Reverts #5077

We won't be using this submodule while #5137 is blocking #5096.
@GMNGeoffrey GMNGeoffrey added the infrastructure Relating to build systems, CI, or testing label May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Relating to build systems, CI, or testing runtime Relating to the IREE runtime library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add wasm-micro-runtime submodule and get building with cmake

3 participants