Skip to content
Permalink
Browse files

Added cudaDeviceSynchronize() after merge step.

  • Loading branch information
rjm11010 committed May 2, 2017
1 parent 3589d07 commit e46e722c4f18519cb4951981d322bb42c0ac381c
Showing with 3 additions and 0 deletions.
  1. +3 −0 parallel/para_gibbs.cu
@@ -170,10 +170,13 @@ int main(int argc, char **argv){
//int numThreads = trials / nBlocks; // TODO: This should be a whole number
mergePosterior<<<1,1>>>(trials,dev_a_out,dev_b_out,tDot,devStates, nBlocks, nThreads, h, results);

cudaDeviceSynchronize();

/*------ Free Memory -------------------------------------------*/




free(y);
free(n);

0 comments on commit e46e722

Please sign in to comment.
You can’t perform that action at this time.