Hello i915 Community,
I am looking after a "Hello world!" like simple skeleton program, from which I could learn how to open the GPU device, how to set up memories, etc, how to pass and execute ringbuffer. How to check resulting frame buffer. I guess there could be such user space application, that is used e.g for testing the driver.
Why am I asking for such a weird thing? Why isnt OpenCL , Mesa or Cairo good for me?
Well, first of all I am a machine code enthusiast and would love to run my own handcrafted code on the EUs. :) Second, I am investigating if I could optimize traditional telecom algorithms to the Intel GPU. Stuff like FFT, DFT, Goertzel , Czebishev filters and so on. (and yes I am checking OpenCL, too) Your help, as always, is very much appreciated. With regards,
Gabor Bereczki
Hi,
did some more research. Is the following correct? -OpenCL is not yet supported for Intel GPU on Linux -i915 driver can be accessed by opening /sys/devices/pci/0000:00:02.0/device and ioctling it? Next I have to learn about output from GPU. In some docs I could read direct access to the graphics aperture from CPU is blocked by the hardware. I guess the output of GPU EUs must end up in the framebuffer. I need to learn how to create and read framebuffer devices. BR,
Gabor Bereczki
2014-06-07 22:00 GMT+02:00 Gábor Bereczki mr.gabor.bereczki@gmail.com:
Hello i915 Community,
I am looking after a "Hello world!" like simple skeleton program, from which I could learn how to open the GPU device, how to set up memories, etc, how to pass and execute ringbuffer. How to check resulting frame buffer. I guess there could be such user space application, that is used e.g for testing the driver.
Why am I asking for such a weird thing? Why isnt OpenCL , Mesa or Cairo good for me?
Well, first of all I am a machine code enthusiast and would love to run my own handcrafted code on the EUs. :) Second, I am investigating if I could optimize traditional telecom algorithms to the Intel GPU. Stuff like FFT, DFT, Goertzel , Czebishev filters and so on. (and yes I am checking OpenCL, too) Your help, as always, is very much appreciated. With regards,
Gabor Bereczki
On Sat, Jun 7, 2014 at 3:45 PM, Gábor Bereczki mr.gabor.bereczki@gmail.com wrote:
did some more research. Is the following correct? -OpenCL is not yet supported for Intel GPU on Linux
The Beignet project [1] supports OpenCL IvyBridge (and Haswell, I think).
I believe your time would be much better spent contributing to the Beignet project than attempting what you're suggesting.
On Sun, 08 Jun 2014, Matt Turner mattst88@gmail.com wrote:
On Sat, Jun 7, 2014 at 3:45 PM, Gábor Bereczki mr.gabor.bereczki@gmail.com wrote:
did some more research. Is the following correct? -OpenCL is not yet supported for Intel GPU on Linux
The Beignet project [1] supports OpenCL IvyBridge (and Haswell, I think).
I believe your time would be much better spent contributing to the Beignet project than attempting what you're suggesting.
Agreed.
However, you might find intel-gpu-tools [1] interesting. It's not your pretty textbook examples, and there are sharp edges, because it's mostly debug tools and tests, but I presume some of the code is the kind you're looking for.
BR, Jani.
[1] http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/
dri-devel@lists.freedesktop.org