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

Using NAPI with SIMD and pthreads #204

Open
gandharva26 opened this issue Nov 6, 2022 · 0 comments
Open

Using NAPI with SIMD and pthreads #204

gandharva26 opened this issue Nov 6, 2022 · 0 comments

Comments

@gandharva26
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant