Vector Class Discussion

New C++ vector class library
Author: Nick Date: 2012-06-13 00:15
AVK wrote:
Nice work, but, frankly, this library should have been released somewhen in 1998-99, when AMD and Intel have released their first CPUs with 3DNow! and SSE, respectively. Nowadays, OpenCL is much more relevant.
OpenCL might actually be short-lived once AVX2 processors become available. The thing is, AVX2 can be used with any programming language. All you need is loops with independent iterations, to auto-vectorize them in an SPMD fashion. So why would developers use OpenCL, when they can keep using their favorite programming language instead to achieve up to an eightfold increase in performance?

It won't die out overnight, but OpenCL can only evolve into a fully unrestricted generic programming language. The ironic part is we already have that; it's called C! So why not skip that awkward "evolution to the past", and just use vectorizing compilers? With AVX2 they'll be much more effective than ever before since the gather instruction enables the same kind of parallelization as what's done on the GPU. And it can support many more languages than just C.

So I'm afraid OpenCL is a new standard where none was needed. We just needed homogeneous high throughput computing instruction set extensions like AVX2.

 
thread New C++ vector class library new - Agner - 2012-05-30
replythread New C++ vector class library new - AVK - 2012-06-04
reply New C++ vector class library new - Agner - 2012-06-05
last replythread New C++ vector class library - Nick - 2012-06-13
last replythread New C++ vector class library new - Agner - 2012-06-13
last replythread New C++ vector class library new - Nick - 2012-06-13
last reply New C++ vector class library new - Matthias - 2012-06-24
last reply New C++ vector class library new - Stefan - 2012-06-08