Thanks for the prompt reply! I've read through the links you provided. What 
I'm getting at is that there's no way to compile code that uses SIMD 
intrinsics? (i.e. emmintrin.h)  

On Wednesday, August 7, 2019 at 1:29:08 PM UTC-4, Thomas Lively wrote:
>
> Hi, using native SIMD intrinsics is not supported with WebAssembly because 
> emulating native SIMD via WebAssembly SIMD will lead to unexpected 
> slowdowns. See this recent thread for more details: 
> https://groups.google.com/forum/#!msg/emscripten-discuss/bp_iubXU3BE/vI4opCduCQAJ
>  and 
> see 
> https://emscripten.org/docs/porting/simd.html#porting-simd-code-targeting-webassembly
>  for 
> more information on using WebAssembly's SIMD.
>
> On Wed, Aug 7, 2019 at 9:25 AM Jonathan Esteban <[email protected] 
> <javascript:>> wrote:
>
>> Hi all,
>>
>> I'm trying to compile a file using this command:
>>
>> $em++ -g -I src/lib/ -I boost src/lib/pke/multiparty.cpp -v
>>
>>
>> However, I am getting this error:
>>
>> In file included from src/lib/pke/multiparty.cpp:7:                      
>>                                         
>> In file included from src/lib/pke/multiparty.h:10:                        
>>                                        
>> In file included from src/lib/Common/Defines.h:9:                        
>>                                         
>> In file included from 
>> /home/user/emsdk/fastcomp/fastcomp/lib/clang/6.0.1/include/emmintrin.h:27:  
>>     
>> In file included from 
>> /home/user/emsdk/fastcomp/fastcomp/lib/clang/6.0.1/include/xmmintrin.h:27:  
>>     
>> /home/user/emsdk/fastcomp/fastcomp/lib/clang/6.0.1/include/mmintrin.h:47:5: 
>> error: use of undeclared  
>>       identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?  
>>                                        
>>     __builtin_ia32_emms();
>>
>>
>> When I compile using g++ I get no error. I think g++ is using another 
>> source for its emmintrin.h. I need to use emmintrin.h as it is used in 
>> Defines.h through:
>>
>> #include <emmintrin.h>
>>
>> Any thoughts? I'm at a loss of ideas and I'm very new to Emscripten and 
>> building projects in general. Let me know if you need more debugging info.
>>
>> Thanks!
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "emscripten-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/emscripten-discuss/77bcb151-7497-4fe9-87a8-43137473538a%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/emscripten-discuss/77bcb151-7497-4fe9-87a8-43137473538a%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/b0ac2799-4c7b-4330-be39-161e162c4b48%40googlegroups.com.

Reply via email to