Re:Intel SPMD: Compiler for High-Performance SIMD Programming
by fsaintjacques on Monday April 11, 2016 @11:17AM
(#11472056)
I would argue that learning the 'basics' of intrinsic is less of a burden than learning a new C extension and modifying your existing code base to include additional new build tools.
OTOH, I like the idea of automatic lane width detection.
Re:Intel SPMD: Compiler for High-Performance SIMD Programming
by CyberDildonics on Monday April 11, 2016 @01:00PM
(#11473083)
I've learned ISPC and didn't find it too difficult. It largely boils down to the varying and uniform keywords along with one more loop syntax. I've looked into intrinsics and I'm extremely skeptical that there is much benefit there other than to play with the actual CPU instructions. ISPC produces tiny .o | .obj files and a header file, the integration has not been a hurdle that I can remember.
Re:Intel SPMD: Compiler for High-Performance SIMD Programming
by scott_s on Monday April 11, 2016 @01:58PM
(#11473667)
Based on my understanding of both, learning the new C extensions would be easier than using the intrinsics. Whatever concepts you need to understand the new C extensions (which are limited to type modifiers and a few new control-flow modifiers) you will also need to understand to use the intrinsics.
However, I agree that having another dependency in your build may be more of a problem.
One example would be the n-body simulation of the computer language benchmarks game. The C++ version uses intrinsics but wouldn't benefit from anything that can do 4 doubles instead of only two at a time.