# Can anybody explain benefits of hardware acceleration? [closed]

I try to sort out what really graphical processors do and what acceleration ratio they provide. I am interested primarily in matrix algebra such as multiplying a vector by matrix (the result being another vector). Both are large (10000 and 10000x10000 respectively).

What does this have to do with OpenCV?

Anyway, it depends on the hardware you are using. With serious GPU you can have an important acceleration factor (you can even add several cards to your system for even more performance). Even simple configurations (let's say the dedicated graphics card of a laptop) can be 10x faster than CPU.

The matrix multiplication is typically an operation where you can have important acceleration when using GPUs.

@ya_ocv_user

My suggestion is to use directly a BLAS library that already do matrix vector multiplication efficiently (and basic linear algebra):

To Eduardo. This is a valuable comment. I use AMD processor which has internal GPU. My question was about what specifically it does. So far as I understand, it has no full scale parallel computing. Can load just 4x4 matrix or so. That is acceleration will be 16 times at best. Right?

In my opinion, you will have to benchmark yourself to know which speed-up you could get between BLAS on AMD integrated GPU vs BLAS on AMD CPU. It really depends on the GPU hardware but as it is an integrated GPU, probably the speed-up would be minimal but I can't tell.

There is also: