Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* General Purpose Programming GPU/(G)MCH
@ 2010-12-12  7:27 £ukasz
  2010-12-12 20:39 ` Chris Wilson
  0 siblings, 1 reply; 7+ messages in thread
From: £ukasz @ 2010-12-12  7:27 UTC (permalink / raw)
  To: intel-gfx

Hi I have few basic questions about programming intel 945GM/965 chipsets. Offcourse 945GM doesnt have GPU but as i noticed by reading its linux drier source can be programed aswell.
My first question is where in CPU memory area is window for displayed graphics ( there are few registers MMADR=e8400000h(19-31), GMADR=d0000000(28-31) chich can control it, but my experimenting with them and memory pointed by them didnt bring any resoults) like for example for VGA A0000-BFFFF where i can control number of window by suitable registers. Maybe is there some book ro program graphics on intel ?

Secund question is about GPU "direct" programming. Supouse that i have assembler program writen in opcodes somewhere in host(CPU) memory ( shape of this program is topic on another question )how to to start this program on some EU in GPU ( copy to graphics memory, and set some register, lets call it EIP/RIP on GPU, to start this program ). If there is some simple example of such working programm ?

Third one, is there possibility to make some general purpouse commputing on 945GM, there is not much about it in intel manuals ( on linux intel graphics not much either), and if its true how to do it ( again how to force chip to make claculations etc. )

I will be welcome to any advices, books etc.

Luke

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

* Re: General Purpose Programming GPU/(G)MCH
  2010-12-12  7:27 General Purpose Programming GPU/(G)MCH £ukasz
@ 2010-12-12 20:39 ` Chris Wilson
  2010-12-12 22:01   ` £ukasz
  0 siblings, 1 reply; 7+ messages in thread
From: Chris Wilson @ 2010-12-12 20:39 UTC (permalink / raw)
  To: intel-gfx

[-- Attachment #1: Type: text/plain, Size: 462 bytes --]

On Sat, 11 Dec 2010 23:27:46 -0800 (PST), £ukasz <blurrpp@yahoo.com> wrote:
> Hi I have few basic questions about programming intel 945GM/965 chipsets. Offcourse 945GM doesnt have GPU

Everybody stopped reading after this sentence. 945GM is the GPU and there
are a few hundred thousand lines of code and documentation (not so much
for gen3...) that does precisely what you want to do... Go read it.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: General Purpose Programming GPU/(G)MCH
  2010-12-12 20:39 ` Chris Wilson
@ 2010-12-12 22:01   ` £ukasz
  2010-12-14  9:42     ` Clemens Eisserer
  2010-12-14  9:45     ` Clemens Eisserer
  0 siblings, 2 replies; 7+ messages in thread
From: £ukasz @ 2010-12-12 22:01 UTC (permalink / raw)
  To: intel-gfx



--- On Sun, 12/12/10, Chris Wilson <chris@chris-wilson.co.uk> wrote:

> From: Chris Wilson <chris@chris-wilson.co.uk>
> Subject: Re: [Intel-gfx] General Purpose Programming GPU/(G)MCH
> To: "£ukasz" <blurrpp@yahoo.com>, intel-gfx@lists.freedesktop.org
> Date: Sunday, December 12, 2010, 9:39 PM
> On Sat, 11 Dec 2010 23:27:46 -0800
> (PST), £ukasz <blurrpp@yahoo.com>
> wrote:
> > Hi I have few basic questions about programming intel
> 945GM/965 chipsets. Offcourse 945GM doesnt have GPU
> 
> Everybody stopped reading after this sentence. 945GM is the
> GPU and there
> are a few hundred thousand lines of code and documentation
> (not so much
> for gen3...) that does precisely what you want to do... Go
> read it.
> -Chris
> 
So can You give me some links please ? because im sure you are not talking about manuals about 945GM form intel ( any way as i noticed in their literature they dont call it GPU .. they start call gpu inside GMCH since 965 ). I wold be great full for some more links to decumentation and codes.





      

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

* Re: General Purpose Programming GPU/(G)MCH
  2010-12-12 22:01   ` £ukasz
@ 2010-12-14  9:42     ` Clemens Eisserer
  2010-12-14 20:51       ` Alan W. Irwin
  2010-12-14  9:45     ` Clemens Eisserer
  1 sibling, 1 reply; 7+ messages in thread
From: Clemens Eisserer @ 2010-12-14  9:42 UTC (permalink / raw)
  To: intel-gfx

>  .. they start call gpu inside GMCH since 965 ). I wold be great full for some more links to decumentation and
> codes.

I guess just because the term "GPU" was uncommon before. Fact is, gen3
contains programmable pixel shaders.
However if it isn't just for fun I discourage from going that route,
the shaders are extremly slow compared to todays CPUs (keep in mind
gen3 is now ~5 years old).

Good luck, Clemens

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

* Re: General Purpose Programming GPU/(G)MCH
  2010-12-12 22:01   ` £ukasz
  2010-12-14  9:42     ` Clemens Eisserer
@ 2010-12-14  9:45     ` Clemens Eisserer
  2010-12-14 15:26       ` £ukasz
  1 sibling, 1 reply; 7+ messages in thread
From: Clemens Eisserer @ 2010-12-14  9:45 UTC (permalink / raw)
  To: intel-gfx

>  I wold be great full for some more links to decumentation and codes.

My advice would be to use OpenGL and the ARB extensions for pixel programs.
I've played a bit with pixel shaders before, using NVidia's CG toolkit
which makes it possible to compile Cg/GLSL to ARB extension's
assembler-style code.

- Clemens

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

* Re: General Purpose Programming GPU/(G)MCH
  2010-12-14  9:45     ` Clemens Eisserer
@ 2010-12-14 15:26       ` £ukasz
  0 siblings, 0 replies; 7+ messages in thread
From: £ukasz @ 2010-12-14 15:26 UTC (permalink / raw)
  To: intel-gfx

Im doing it for fun and education purpose. I programed with OpenGL and more with CUDA and its PTX ( in my work ), tryied Close To Metal etc. but now i wanted to do it on weary low level usings ports programming directly EUs/GPU to understand better mechanizms to improve speed and algorithm and for fun :)

--- On Tue, 12/14/10, Clemens Eisserer <linuxhippy@gmail.com> wrote:

> From: Clemens Eisserer <linuxhippy@gmail.com>
> Subject: Re: [Intel-gfx] General Purpose Programming GPU/(G)MCH
> To: "intel-gfx" <intel-gfx@lists.freedesktop.org>
> Date: Tuesday, December 14, 2010, 10:45 AM
> >  I wold be great full for
> some more links to decumentation and codes.
> 
> My advice would be to use OpenGL and the ARB extensions for
> pixel programs.
> I've played a bit with pixel shaders before, using NVidia's
> CG toolkit
> which makes it possible to compile Cg/GLSL to ARB
> extension's
> assembler-style code.
> 
> - Clemens
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
> 


      

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

* Re: General Purpose Programming GPU/(G)MCH
  2010-12-14  9:42     ` Clemens Eisserer
@ 2010-12-14 20:51       ` Alan W. Irwin
  0 siblings, 0 replies; 7+ messages in thread
From: Alan W. Irwin @ 2010-12-14 20:51 UTC (permalink / raw)
  To: Clemens Eisserer; +Cc: intel-gfx

On 2010-12-14 10:42+0100 Clemens Eisserer wrote:

>>  .. they start call gpu inside GMCH since 965 ). I wold be great full for some more links to decumentation and
>> codes.
>
> I guess just because the term "GPU" was uncommon before. Fact is, gen3
> contains programmable pixel shaders.
> However if it isn't just for fun I discourage from going that route,
> the shaders are extremly slow compared to todays CPUs (keep in mind
> gen3 is now ~5 years old).
>

I personally wouldn't be quite that discouraging on the speed front.
Today's cpu's are of similar clock speed to those of yesteryear.  I bought
an entry level 2.4GHz box back in 2003, and entry level boxes are
still of that order in raw speed.  The real advances for modern cpu's
are computing power efficiency (gigaflops/watt), and number of cpu's.
Thus, modern cpu's give you a real speed advance only if your
application can take advantage of multiple cpu's, but that is often
not the case. I agree some speed advances have been made in the Intel
GPU case (see http://en.wikipedia.org/wiki/Intel_GMA for some of the
speed details), but as in the CPU case it again appears to me that
most of the advances in the GPU case are in the number of execution
units.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

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

end of thread, other threads:[~2010-12-14 20:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-12  7:27 General Purpose Programming GPU/(G)MCH £ukasz
2010-12-12 20:39 ` Chris Wilson
2010-12-12 22:01   ` £ukasz
2010-12-14  9:42     ` Clemens Eisserer
2010-12-14 20:51       ` Alan W. Irwin
2010-12-14  9:45     ` Clemens Eisserer
2010-12-14 15:26       ` £ukasz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox