oneTBB icon indicating copy to clipboard operation
oneTBB copied to clipboard

How to compile oneTBB with Emscritpen?

Open dpar39 opened this issue 3 years ago • 3 comments

Is it possible to compile oneTBB with Emscripten? There are third party libraries using oneTBB and it would be nice to get them to compile without changing the source code.

dpar39 avatar Jun 26 '21 02:06 dpar39

I do not know if someone using oneTBB with Emscripten. Have you tried to build as is?

alexey-katranov avatar Jun 29 '21 05:06 alexey-katranov

Issues related to assembling oneTBB with Emscripten can be divided into 2 category:

  1. Build issue, related to undefined reference to `__TBB_machine_fetchadd4', has been fixed with #550.
  2. Compiler warnings. Emscripten compliler doesn't familiar with some flags used by oneTBB for x86/AMD64 processors. Those flags are ignored and marked as 'unused'. As a work-around, compile oneTBB with cmake flag 'TBB_STRICT' to 'OFF' emcmake cmake -DTBB_STRICT=OFF ..

vlserov avatar Oct 13 '21 08:10 vlserov

@dpar39 Please, check if https://github.com/oneapi-src/oneTBB/pull/1006 resolves your question.

omalyshe avatar Sep 19 '23 13:09 omalyshe

@dpar39 is this issue still relevant?

nofuturre avatar Jul 08 '24 13:07 nofuturre

If anyone encounter this issue in the future please open new issue with a link to this one

nofuturre avatar Jul 23 '24 07:07 nofuturre