Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added cudaDeviceSynchronize() after merge step.
  • Loading branch information
rjm11010 committed May 2, 2017
1 parent 3589d07 commit e46e722
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions parallel/para_gibbs.cu
Expand Up @@ -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);

Expand Down

0 comments on commit e46e722

Please sign in to comment.