Permalink
Browse files
Forgot to remove the memcpy of cDot.
- Loading branch information
Showing
with
0 additions
and
2 deletions.
-
+0
−2
parallel/para_gibbs.cu
|
@@ -219,8 +219,6 @@ __global__ void mergePosterior(int trials, float *dev_a_out,float *dev_b_out,int |
|
for (int i=0; i < trials; i++) {
|
|
for (int i=0; i < trials; i++) {
|
|
h[i] = powf(i,(-1/(4+2)));
|
|
h[i] = powf(i,(-1/(4+2)));
|
|
for (int m=0; m < M; m++) {
|
|
for (int m=0; m < M; m++) {
|
|
int *cDot = (int*) malloc(M*sizeof(int));
|
|
|
|
|
|
|
|
// Performance modiciation made
|
|
// Performance modiciation made
|
|
// We are not going to make a copy of tDot to make cDot, rather
|
|
// We are not going to make a copy of tDot to make cDot, rather
|
|
// rather just replace the one value that differes them when necessary
|
|
// rather just replace the one value that differes them when necessary
|
|
|