examples icon indicating copy to clipboard operation
examples copied to clipboard

feat: RUN-975: Add WebAssembly SIMD example

Open dfinity-berestovskyy opened this issue 1 year ago • 5 comments

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.21 or later is required with WebAssembly SIMD enabled replica.

dfinity-berestovskyy avatar May 07 '24 18:05 dfinity-berestovskyy

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

dfx-json avatar May 15 '24 17:05 dfx-json

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

dfx-json avatar May 15 '24 17:05 dfx-json

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.

dfinity-berestovskyy avatar May 16 '24 07:05 dfinity-berestovskyy

LGTM. Thank you @dfinity-berestovskyy.

dfx-json avatar May 16 '24 14:05 dfx-json

Pending merge until dfx supports simd and tests pass

dfx-json avatar May 17 '24 14:05 dfx-json