node-addon-examples icon indicating copy to clipboard operation
node-addon-examples copied to clipboard

Using NAPI with SIMD and pthreads

Open gandharva26 opened this issue 2 years ago • 0 comments

I am trying to convert a C++ project that uses SIMD into a Node.js Library using NAPI I need to compile a C++ project using this command g++ -O3 -std=c++11 -mavx -mavx2 -msse -msse2 -msse4 -msse4.2 -mpclmul -o bin/example1 src/*.cpp example/example1.cpp -lpthread -mcmodel=medium -static-libstdc++

This has pthread and SIMD flags that need to be used, is there an example where SIMD and pthread flags have been used with a Node API project that I can look for? or can anyone help me how to go about it?

gandharva26 avatar Nov 06 '22 18:11 gandharva26