dfinity / examples

Example applications, microservices, and code samples for the Internet Computer
https://dfinity.org
Apache License 2.0
534 stars 343 forks source link

feat: RUN-975: Add WebAssembly SIMD example #864

Closed dfinity-berestovskyy closed 4 months ago

dfinity-berestovskyy commented 5 months ago

Overview This example showcases different approaches to utilizing the new SIMD instructions: Rust auto-vectorization and SIMD intrinsics for matrix multiplication, a core operation in Machine Learning and Artificial Intelligence applications. The example compares various SIMD optimization techniques and their potential speedups.

Requirements To run the example, the latest dfx version 0.20.2-beta.0 or later is required with WebAssembly SIMD enabled replica.

dfx-json commented 4 months ago

looks good. thanks @dfinity-berestovskyy. one last question: who will own this example? team runtime? cc @ulan

dfx-json commented 4 months ago

@dfinity-berestovskyy this example should also have a corresponding workflow for automated tests. it can be as simple as just deploying the canister locally.

dfinity-berestovskyy commented 4 months ago

Thanks for the review, folks. I've addressed the comments, updated the CODEOWNERS and added the tests. The tests fail for now, as there is no dfx version with SIMD support released yet.

dfx-json commented 4 months ago

LGTM. Thank you @dfinity-berestovskyy.

dfx-json commented 4 months ago

Pending merge until dfx supports simd and tests pass