On Fri, 29 May 2009 07:33:55 -0400, Denis Koroskin <[email protected]> wrote:

On Fri, 29 May 2009 15:28:00 +0400, Trass3r <[email protected]> wrote:

bearophile schrieb:
"Thrust is a CUDA library of parallel algorithms with an interface
resembling the C++ Standard Template Library (STL). Thrust provides a
flexible high-level interface for GPU programming":
http://code.google.com/p/thrust/
 Something like this (but OpenCL) for D sounds quite interesting.


Hopefully OpenCL's runtime will be compatible to D's:

Chris R Miller wrote (in Feb):
 > I looked into writing CUDA with D a while back.  The problem is that
the
 > CUDA C runtime and the D runtime are 100% incompatible.


I don't have any new information about the topic though. Maybe it works
with druntime.

Yeah, OpenCL looks interesting. For example, they annotate variables with either __global, __local or __private attributes, that are very close to D2 shared/TLS/unique.

Well, that's not quite right,
global : shared, accessible by the host
local  : restricted to a 'work-group', not accessible by the host
private: value-types on the function's stack

Reply via email to