SIMD or not SIMD - cross platform

后端 未结 6 1612
别跟我提以往
别跟我提以往 2021-02-04 08:59

I need some idea how to write a C++ cross platform implementation of a few parallelizable problems in a way so I can take advantage of SIMD (SSE, SPU, etc) if available. As well

6条回答
  •  迷失自我
    2021-02-04 09:06

    Have you thought about using existing solutions like liboil? It implements lots of common SIMD operations and can decide at runtime whether to use SIMD/non-SIMD code (using function pointers assigned by an initialization function).

提交回复
热议问题