|
Ublas : |
Subject: Re: [ublas] Matrix multiplication performance
From: palik imre (imre_palik_at_[hidden])
Date: 2016-01-25 10:07:02
AFAIK there is a boost::simd project. If we really want SIMD classes, we might try to help them to get to mainline.
Right now I try to catch up with Michael using gcc SIMD vectors. (His code is still 10% faster ...) This should work on gcc, icc, and clang. I think that is general enough for most people's needs.
Anyway, we need a fallback path for non-builtin types, and that could be used for compilers not supporting gcc vectors.
Cheers,
Imre
On Sunday, 24 January 2016, 1:36, Joaquim Duran Comas <jdurancomas_at_[hidden]> wrote:
Hello,
It has been a great job.
The micro-kernel implementation of AVX has been implemented in assembler. Think that mscv, clang and g++ exposes SSE*, AVX, NEON and other SIMD to C language. So it should be possible to rewrite the asm code to C.http://stackoverflow.com/questions/11228855/header-files-for-simd-intrinsics
https://www.cs.uaf.edu/2009/fall/cs301/lecture/11_13_sse_intrinsics.html
Also, basic SIMD classes could be created SIMD<char>, SIMD<float>.... to call the proper functions to implement the operations.
Joaquim Duran