That's why CUDA is completely pointless: you're gonna wrap it anyway. Instead of wrapping a past-age vendor-locked pre-OpenCL technology, you could wrap modern portable technology.<div><br></div><div>The richness of the language is completely irrelevant, as it's gonna be wrapped anyway.</div>
<div>Yes, CUDA is completely pointless.<br><br><div class="gmail_quote">On Mon, May 14, 2012 at 11:51 PM,  <span dir="ltr"><<a href="mailto:"Anders Sjögren\" <anders@sjogren.info>"@puremagic.com" target="_blank">"Anders Sjögren\" <anders@sjogren.info>"@puremagic.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Gor!<br>
<br>
Then I guess you think C++ is a completely pointless waste of time because of C also? CUDA carries a subset of C++, while OpenCL does not, allowing for OO-programming, metaprogramming, etc. Adding to that, there is also strong IDE support (editing and debugging) for CUDA, while for OpenCL I have yet to find that (which would of course also be an issue for "DUDA"). Not _completely_ pointless yet, right?<br>

<br>
Anyways, the original question was about GPU-oriented languages and D.<br>
<br>
As a variant to CUDA in D (DUDA): If there was a way to use a subset of D (à la C++AMP) and have that turn into GPU and/or CPU (using the code-gen/backend of the LLVM CUDA compiler, or compile to OpenCL as a target for that matter), it'd be great. I too don't like vendor lock-in (CUDA=nVidia) and C++ has it's drawbacks as a language. The alternative of OpenCL is too much plain C for it to feel modern/productive. An alternative based on D could really have a potential of being great!?<br>

<br>
To state it as an open question: What would be the D way of facilitating GPU(+CPU) programming?<br>
<br>
Cheers<br>
<br>
Anders<br>
<br>
---<div class="im"><br>
<br>
On Monday, 14 May 2012 at 18:24:26 UTC, Gor Gyolchanyan wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
I think CUDA is a completely pointless waste of time because of OpenCL.<br>
<br>
On Mon, May 14, 2012 at 9:35 PM, <"Anders Sjögren\"<br>
<<a href="mailto:anders@sjogren.info" target="_blank">anders@sjogren.info</a>>"@<a href="http://puremagic.com" target="_blank">puremag<u></u>ic.com</a>> wrote:<br>
<br>
</div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi!<br>
<br>
I was wondering, is anyone aware if there been any efforts on using D as<br>
the foundation for a GPGPU language?<br>
<br>
For example: Given that there is are LLVM based D and CUDA compilers,<br>
might there be a way to modify D to nVidia GPU-enabled DUDA similar to how<br>
C++ is modified to CUDA, without having to implement the entire compiler?<br>
<br>
Keep up the interesting and good work!<br>
<br>
Anders<br>
</blockquote></div></div></blockquote>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br>
</div>