The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Farabi on February 25, 2012, 06:46:43 AM

Title: GPU Programming
Post by: Farabi on February 25, 2012, 06:46:43 AM
I had a SiS Mirage 3 Graphic card and I want to directly programming it like what I did to my processor. Anyone know how to do that? Like, direct acessing the memory, multiplying using GPU etc.
Title: Re: GPU Programming
Post by: braincell on February 25, 2012, 04:27:04 PM
I used HLSL for a while and it was pretty direct, although slightly higher level than pure assembly (buy not too much), it seemed very fast.

Cg is slightly lower level, and also good.

Other than that, you can use lowest level such as ARB but i haven't seen straight forward compilers for it and i'm not sure how that would work.

It all depends on what you want to do.
Also the GPUs keep getting updated a little bit faster than the CPUs, at least that was my impression, so i'm not sure how easy (or cheap) it would be to get a low level compiler which supports all of the newest instructions.
Title: Re: GPU Programming
Post by: vanjast on February 25, 2012, 05:05:43 PM
You'll probably have to register as a developer with the manufacturer/supplier and then you can download their developer kits and SDKs.
These kits should give you direct access to the GPUs and VRam.
:8)
Title: Re: GPU Programming
Post by: dancho on February 25, 2012, 06:26:25 PM
read this wiki pages,you may find something useful:

GPGPU (http://en.wikipedia.org/wiki/GPGPU)
OpenCL (http://en.wikipedia.org/wiki/OpenCL)
CUDA (http://en.wikipedia.org/wiki/CUDA)
Title: Re: GPU Programming
Post by: qWord on February 25, 2012, 06:32:47 PM
Farabi,
reading some of your question, I've got the impression, that you should first learn the mathematics used for 3D programming and then come back to implementation. Visiting the mathematic basic course of an technical university (or similar) as an auditor should give you an good intro.

qWord
Title: Re: GPU Programming
Post by: oex on February 25, 2012, 07:42:34 PM
Very little is possible with your current graphics card my guess is (based on my experience with my former Nvidia 5200 anything you learn will be like coding 16 bit ASM apps for Windows 7 applications
Title: Re: GPU Programming
Post by: Farabi on February 26, 2012, 02:29:32 PM
Quote from: qWord on February 25, 2012, 06:32:47 PM
Farabi,
reading some of your question, I've got the impression, that you should first learn the mathematics used for 3D programming and then come back to implementation. Visiting the mathematic basic course of an technical university (or similar) as an auditor should give you an good intro.

qWord

I cant found any good 3D math books, lots of the articles only disscuss it partially and I had no clue what keyword I should use on google.
Title: Re: GPU Programming
Post by: dancho on February 26, 2012, 06:19:28 PM
ok then,
here is a link for you,

flipcode (http://www.flipcode.com/archives/articles.shtml)

scroll down to the Featured Article Series & Columns,
and there you have 3D Geometry Primer chapter 1. and 2.
start with those...