All of lore.kernel.org
 help / color / mirror / Atom feed
* looking for i915 direct programming sample application
@ 2014-06-07 20:00 Gábor Bereczki
  2014-06-07 22:45 ` Gábor Bereczki
  0 siblings, 1 reply; 4+ messages in thread
From: Gábor Bereczki @ 2014-06-07 20:00 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 807 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1207 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: looking for i915 direct programming sample application
  2014-06-07 20:00 looking for i915 direct programming sample application Gábor Bereczki
@ 2014-06-07 22:45 ` Gábor Bereczki
  2014-06-08 19:26   ` Matt Turner
  0 siblings, 1 reply; 4+ messages in thread
From: Gábor Bereczki @ 2014-06-07 22:45 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1456 bytes --]

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
>
>

[-- Attachment #1.2: Type: text/html, Size: 2177 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: looking for i915 direct programming sample application
  2014-06-07 22:45 ` Gábor Bereczki
@ 2014-06-08 19:26   ` Matt Turner
  2014-06-10 12:19     ` Jani Nikula
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Turner @ 2014-06-08 19:26 UTC (permalink / raw)
  To: Gábor Bereczki; +Cc: Maling list - DRI developers

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.

[1] http://www.freedesktop.org/wiki/Software/Beignet/
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: looking for i915 direct programming sample application
  2014-06-08 19:26   ` Matt Turner
@ 2014-06-10 12:19     ` Jani Nikula
  0 siblings, 0 replies; 4+ messages in thread
From: Jani Nikula @ 2014-06-10 12:19 UTC (permalink / raw)
  To: Matt Turner, Gábor Bereczki; +Cc: Maling list - DRI developers

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/


-- 
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-10 12:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-07 20:00 looking for i915 direct programming sample application Gábor Bereczki
2014-06-07 22:45 ` Gábor Bereczki
2014-06-08 19:26   ` Matt Turner
2014-06-10 12:19     ` Jani Nikula

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.