Jump to content

  • Log In with Google      Sign In   
  • Create Account


moving some data off and on GPU between dispatches


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 magicfoot   Members   -  Reputation: 101

Like
0Likes
Like

Posted 06 August 2012 - 10:06 AM

I have written a DirectCompte program that sends some data to the GPU, processes the data and then retrieves the resultant grid. i.e. this is a GPGPU application. Is anyone familiar with how to do the below without retrieving ALL the Grid data between iterations and sending ALL grid data back to the GPU for every dispatch. There seems to be no easy way to do this sort of thing with DIrectX. Any reasonable direction much appreciated.

Existing process:
i.e Normal process is:Grid data Resource allocation+view, Dispatch x 100 iterations, Retrieve Grid data from GPU

Now I want to run it as:

Resouce allocation + view

Dispatch 1st iteration

Retrieve only a small part of the GRID. i.e. the first 10 grid points
Update these first 10 grid points with new values from elsewhere
Send the updated 10 grid points back to GPU

Dispatch 2nd iteration

...... as before ....... 10 grid points only
etc
Dispatch last iteration

Retrieve all Grid data
end of process.

-------------------------

Sponsor:

#2 MJP   Moderators   -  Reputation: 10239

Like
0Likes
Like

Posted 06 August 2012 - 01:21 PM

You can use CopySubresourceRegion to only copy a portion of data to and from staging resoruces, which should let you do what you want.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS