Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(dpp): Wasm SIMD unsupported #1625

Open
pshenmic opened this issue Dec 8, 2023 · 0 comments
Open

bug(dpp): Wasm SIMD unsupported #1625

pshenmic opened this issue Dec 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@pshenmic
Copy link
Collaborator

pshenmic commented Dec 8, 2023

Expected Behavior

Wasm DPP should be able to run on all systems

Current Behavior

On some specific CPUs, WASM DPP couldn't be run successfully due missing instructions:

CompileError: WebAssembly.Module(): Compiling function https://github.com/dashpay/platform/pull/331:"memchr::arch::wasm3 2::simd128::packedpair::Find..." failed: Wasm SIMD unsupported @+1955693

Possible Solution

Revise changes happened between 0.25.13 and 0.25.15

Steps to Reproduce (for bugs)

git clone https://github.com/pshenmic/wasm-dpp-nodejs-load-sample
cd wasm-dpp-nodejs-load-sample
npm install
node index

Context

#1583 have more some more details.

Basically, that happened on the 0.25.15 release, where RS-SDK was introduced in the project. I believe there were some breaking changes that broke WASM DPP on some specific combination of software and hardware. Check environment for more execution details

Your Environment

Thanks @qwizzie for report, taken from the previous issue

  • Version used: Dash Platform 0.25.15+
  • Environment name and version: Node.JS v20.10.0
  • Operating System: Ubuntu 20.04.6 LTS / GNU/Linux 5.4.0-166-generic x86_64
  • Arch: amd64

CPU:

$lscpu

Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 44 bits physical, 48 bits virtual
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 1
Core(s) per socket: 8
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 85
Model name: Intel(R) Xeon(R) Gold 6136 CPU @ 3.00GHz
Stepping: 4
CPU MHz: 2992.972
BogoMIPS: 5985.94
Hypervisor vendor: Microsoft
Virtualization type: full
L1d cache: 256 KiB
L1i cache: 256 KiB
L2 cache: 8 MiB
L3 cache: 198 MiB
NUMA node0 CPU(s): 0-7
@pshenmic pshenmic added the bug Something isn't working label Dec 8, 2023
@pshenmic pshenmic changed the title bug(dpp): Wasm SIMD unsupported on specific CPUs bug(dpp): Wasm SIMD unsupported Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant