ArrayFire, a GPU library, is now open source

ponce via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Wed Dec 17 04:58:22 PST 2014


Hi, I'm kind of embarrassed by my bitter post, must have been a 
bad day :).

On Tuesday, 16 December 2014 at 19:49:37 UTC, Shehzan wrote:
> We also support CPU and OpenCL backends along with CUDA. This 
> way, you can use the same ArrayFire code to run across any of 
> those technologies without changes. All you need to do is link 
> the correct library.

Cool, this was reason enough to avoid using NPP until now.

I've certainly found desirable to be able to target OpenCL, CPU 
or CUDA indifferently from the same codebase. What I'd like more 
than a library of functions though is an abstracted compute API. 
This would be a compiler from your own compute language to OpenCL 
C or CUDA C++ also an API wrapper. That would probably mean to 
leave some features behind to have the intersection. Similar to 
bgfx but for compute APIs, which has a shader compiler to many 
targets.

> We used a BSD 3-Clause license to make it easy for everyone to 
> use in their own projects.
>
> Here is a blog I made about implementing Conway's Game of Life 
> using ArrayFire 
> http://arrayfire.com/conways-game-of-life-using-arrayfire/. It 
> demonstrates how easy it is to use ArrayFire.
>
> Our goal is to make it easy for people to get started with GPU 
> programming and break down the barrier for non-programmers to 
> use the hardware efficiently. I agree that complex algorithms 
> require more custom solutions, but once you get started, things 
> become much easier.

Your example is indeed very simple, so I guess it has its uses.




More information about the Digitalmars-d-announce mailing list