General Purpose Programming GPU/(G)MCH
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
Quoted 1 line · £ukasz
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
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 10 lines · Chris Wilson
From: Chris Wilson <[email protected]>
Subject: Re: [Intel-gfx] General Purpose Programming GPU/(G)MCH
To: "£ukasz" <[email protected]>, [email protected]
Date: Sunday, December 12, 2010, 9:39 PMQuoted 1 line · £ukasz
Hi I have few basic questions about programming intel
945GM/965 chipsets. Offcourse 945GM doesnt have GPU
Quoted 8 lines
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.
Quoted 2 lines
.. 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
Quoted 1 line
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
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 :)
Quoted 21 lines · Clemens Eisserer
From: Clemens Eisserer <[email protected]>
Subject: Re: [Intel-gfx] General Purpose Programming GPU/(G)MCH
To: "intel-gfx" <[email protected]>
Date: Tuesday, December 14, 2010, 10:45 AMQuoted 1 line
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
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 9 lines · On 2010-12-14 10:42+0100 Clemens Eisserer wrote:
Quoted 2 lines
.. 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
__________________________