gemma.cpp icon indicating copy to clipboard operation
gemma.cpp copied to clipboard

How to compile this into the WASM?

Open yukiarimo opened this issue 1 year ago • 2 comments

yukiarimo avatar Feb 22 '24 21:02 yukiarimo

Hi @yukiarimo , I believe no special action is required for this code, if you are able to build code for WASM, you are also able to build this for WASM.

If you use bazel for builds, it suffices to add --config=wasm --features=wasm_simd to the command line.

I am not as familiar with WASM using CMake, are the Emscripten docs helpful?

jan-wassenberg avatar Feb 23 '24 06:02 jan-wassenberg

Yeah, I would try. Emscripten docs are quite complex to read for me.

yukiarimo avatar Feb 23 '24 06:02 yukiarimo

Closing, please feel free to reopen if you'd like to discuss specifics :)

jan-wassenberg avatar May 07 '24 09:05 jan-wassenberg