Skip to content

Commit

Permalink
Update kernel.cu
Browse files Browse the repository at this point in the history
  • Loading branch information
gisers authored Jul 27, 2018
1 parent d582c54 commit 1707a84
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Codes/kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -805,12 +805,12 @@ void runtest(float **BufferIn11,float **BufferIn22,float **BufferIn33,float **Bu
}
for(int g=0;g<BandNum;g++)
{
delete sub_BufferIn11[g];
delete sub_BufferIn22[g];
delete sub_BufferIn33[g];
delete sub_BufferIn44[g];
delete sub_BufferIn55[g];
delete sub_out[g];
delete []sub_BufferIn11[g];
delete []sub_BufferIn22[g];
delete []sub_BufferIn33[g];
delete []sub_BufferIn44[g];
delete []sub_BufferIn55[g];
delete []sub_out[g];
/*cudaFree(dev_BufferIn11[g]);
cudaFree(dev_BufferIn22[g]);
cudaFree(dev_BufferIn33[g]);
Expand Down Expand Up @@ -903,7 +903,7 @@ void runtest_pairs(CuLayer *psensor,PARAMETER *par,int solve)
}
for(int b=0;b<2*(par->NUM_PAIRS+1)*BandNum;b++)
{
delete sub_area[b];
delete []sub_area[b];
/*cudaFree(dev_BufferIn11[g]);
cudaFree(dev_BufferIn22[g]);
cudaFree(dev_BufferIn33[g]);
Expand Down

0 comments on commit 1707a84

Please sign in to comment.