News for hackers. Stuff that matters.
Re:Harlan, new Lispy language for GPU programming by phren0logy on Monday July 01, 2013 @12:21PM (#5971634)
I'm not sure if you are joking (given that it is a lisp, which is notoriously not mainstream), but my limited experience with GPU programming with the existing tools has been pretty painful. I, for one, welcome this development.
Re:Harlan, new Lispy language for GPU programming by burke on Monday July 01, 2013 @01:01PM (#5971947)
The lisp part isn't necessary (or necessarily helpful), but it's certainly an improvement on embedding C-as-a-string in more C.

...though I am concerned that abstracting this stuff too much makes it less obvious how to optimize for the GPU. This may be a language for people that already have a solid grasp on GPU programming.

Re:Harlan, new Lispy language for GPU programming by octo_t on Monday July 01, 2013 @01:08PM (#5972001)
>> embedding C-as-a-string in more C

Um. OpenCL/Cuda look absolutely nothing like that.

Re:Harlan, new Lispy language for GPU programming by _pmf_ on Tuesday July 02, 2013 @01:38AM (#5976038)
>> embedding C-as-a-string in more C >Um. OpenCL/Cuda look absolutely nothing like that.

Absolutely right. You can also include an external C file from C++ [1]; that makes it so much prettier.

[1] http://developer.amd.com/tools-and-sdks/heterogeneous-comput...

Re:Harlan, new Lispy language for GPU programming by bajsejohannes on Monday July 01, 2013 @12:32PM (#5971706)
Yes, anything to make it easier to get started. I've tried before, but got lost in figuring out which SDK to download. Too bad this toolkit doesn't help in that process.

Happily, writing this answer I discovered that OS X 10.7+ ships with OpenCL already! Can't believe I missed that last time.

For anyone else wanting to try it, the first example is pretty straight forward:

https://developer.apple.com/library/mac/#documentation/Perfo...

(You'll also want the code examples at https://developer.apple.com/library/mac/#documentation/Perfo... )

Re:Harlan, new Lispy language for GPU programming by reeses on Monday July 01, 2013 @06:45PM (#5974176)
The OpenCL implementation provided by Apple is less than ideal. It lacks a number of optimizations that are provided by, for example, AMD's OpenCL driver packages for Linux and Windows.

That, coupled with the wretched GPU options available on the Mac Pro, make the current stack not really cost effective. (I think a 5770 is still $250.)

However, it is better than CPU-only.

I've found slaving a cheap Linux box with expensive GPUs to be a much more gratifying experience.

Re:Harlan, new Lispy language for GPU programming by eholk on Monday July 01, 2013 @07:36PM (#5974498)
I've done most of my development on a Mac, but I keep finding many bugs in Apple's OpenCL implementation. Intel's seems to follow the standard most closely, which is useful for keeping me honest.
Re:Harlan, new Lispy language for GPU programming by octo_t on Monday July 01, 2013 @01:08PM (#5972006)
OpenCL is used to JIT OpenGL calls based on the hardware. Its magic.
Re:Harlan, new Lispy language for GPU programming by pi18n on Monday July 01, 2013 @12:42PM (#5971800)
Are GLSL and OpenCL equally capable?
Re:Harlan, new Lispy language for GPU programming by bajsejohannes on Monday July 01, 2013 @01:19PM (#5972081)
Not exactly sure what you're asking, but GLSL and OpenCL are for two different domains: GLSL for graphics and OpenCL for calculations that are not intended to show up as graphics.

They both run on the same hardware, but I don't have enough (or really any) experience with OpenCL to say if it feels more or less powerful than GLSL.

Edit: It turns out that I have no OpenCL hardware support (mid 2011 MBA), so I guess the hardware isn't necessarily completely similar (i.e. it can support GLSL and not OpenCL)

Re:Harlan, new Lispy language for GPU programming by Impossible on Monday July 01, 2013 @01:55PM (#5972391)
This isn't entirely true. As of OpenGL 4.3 (latest spec), OpenGL adds compute shaders as well. Their primary usage is to make interopt with the graphics pipeline less painful than it would be with OpenCL, but in theory you could use OpenGL (or DX11 on Windows) compute shaders for non-graphics tasks, and they'd have roughly the same capabilities as CUDA or OpenCL.
Re:Harlan, new Lispy language for GPU programming by Ihmahr on Tuesday July 02, 2013 @06:56AM (#5976928)
Not joking.