Skip to content

Using NAPI with SIMD and pthreads #204

Open
@gandharva26

Description

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?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions