Jump to content
  • Advertisement
Sign in to follow this  
Cpt. Red

DX11 [CS 5.0] A threadgroup seems to use old data

This topic is 2784 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi I'm creating an artificial neural network(ANN) on compute shader but of some reason one of the dispatched threadgroups seems to start and use old data.
I have made it so that there are 2 shaders, the first runs threough the ANN and checks how good it is the second changes the weights so that it will hopefully be better next time. With the example ANN I'm using right now I dispatch 2 threadgroups for the first one and 1 for the second and I run these 50 times but after the 26th time my second threadgroup for the first shader will start to use old weight data of some reason.

I have tried to use PIX to find put what's wrong but according to PIX all the weights are correct but my debug buffer I added(I copy the weight data for each thread into the debug buffer) shows that the second threadgroup have old weights data even though they are using the same buffer. I also sets all the data in the debug buffer to zero in my second shader just to make sure that the second threadgroup actually executes.

Im using DX11 with the 2010 June DX SDK. I have tried using a reference driver but the same thing happens there.

EDIT: I also get no errors or warnings.
EDIT: I tried to see if more threadgroups would change anything and so for the answer is no but I can say that all threadgroups except the first one is using the old data.

EDIT:
Fixed it. Forgot to Flush().

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!