Thread: Using the GPU to do some processing

  1. #16
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    Unless you wil lbe doing a lto fo operation on the same data, you are usualyl better off using SSE or the FPU to do your FP math. The bandwidth used to transfer the data to teh GPU and the results back exceeds any gains you get from having the GPU do the calculations unless you are doing at least 20 operations on each item. You also need to have very large quanitites of data to process. The shaders on a GPU usually run much slower than the CPU, so you need to give them enough work to use mroe than one or two of them. Just because you have 192 shaders, and you give it 192 pieces of data, does not mean that each shader will get one piece of data, more liekly is that one shader will get it all and the others will sit idle. You need to give an 8800 GTX something like 192 million member arrays to get it to fully engage all its shaders. At least with rapidmind, you can submit multiple jobs without waiting for the previous ones to finish and get allteh sahders to engage this way.

    I think if the course requirement is to not use the graphics API, then the instructor probably wants you to do the graphics math in your pogram, so you learn whats invovled. A good book for this is 'Tricks of the game programming gurus' and 'More tricks of the game programmig guru's'. Both are out of print, but you can fidn plenty of copies on amazon. They were both written back in teh day's when a video card didnt do anything except display teh image you sent it.
    Last edited by abachler; 03-05-2008 at 09:48 AM.

  2. #17
    Registered User
    Join Date
    Oct 2006
    Location
    UK/Norway
    Posts
    485
    Ok, looks like the GPU is not for me then. Thanks for all the replies.

    Ill look into that book

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reentrant Message Processing (WndProc)
    By phantomotap in forum Windows Programming
    Replies: 7
    Last Post: 04-28-2009, 10:44 AM
  2. What types of files can C++ file processing handle?
    By darsunt in forum C++ Programming
    Replies: 9
    Last Post: 10-28-2008, 11:33 AM
  3. Sub Array Processing
    By GCNDoug in forum C++ Programming
    Replies: 8
    Last Post: 11-28-2007, 04:41 PM
  4. Using a lot of processing time!
    By nickname_changed in forum C++ Programming
    Replies: 0
    Last Post: 09-25-2003, 03:44 AM
  5. file writing crashes
    By test in forum C Programming
    Replies: 25
    Last Post: 08-13-2002, 08:44 AM