Skip to content

Commit

Permalink
TEST: testing degridding function in development
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcarcamov committed Nov 12, 2024
1 parent f125906 commit 9992b09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/functions.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1993,13 +1993,13 @@ __host__ void degridding(std::vector<Field>& fields,
blockSizeV);
}

hermitianSymmetry<<<
/*hermitianSymmetry<<<
fields[f].device_visibilities[i][s].numBlocksUV,
fields[f].device_visibilities[i][s].threadsPerBlockUV>>>(
fields[f].device_visibilities[i][s].uvw,
fields[f].device_visibilities[i][s].Vo, fields[f].nu[i],
fields[f].numVisibilitiesPerFreqPerStoke[i][s]);
checkCudaErrors(cudaDeviceSynchronize());
checkCudaErrors(cudaDeviceSynchronize());*/

// Interpolation / Degridding
vis_mod2<<<fields[f].device_visibilities[i][s].numBlocksUV,
Expand Down
13 changes: 6 additions & 7 deletions src/mfs.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1104,17 +1104,16 @@ void MFS::writeResiduals() {
"Measurement Set File\n");
// In the de-gridding procedure weights are also restored to the original
for (int d = 0; d < nMeasurementSets; d++) {
// degridding(datasets[d].fields, datasets[d].data, deltau, deltav,
// num_gpus,
// firstgpu, variables.blockSizeV, M, N, this->ckernel);
getOriginalVisibilitiesBack(datasets[d].fields, datasets[d].data,
num_gpus, firstgpu, variables.blockSizeV);
degridding(datasets[d].fields, datasets[d].data, deltau, deltav, num_gpus,
firstgpu, variables.blockSizeV, M, N, this->ckernel);
/*getOriginalVisibilitiesBack(datasets[d].fields, datasets[d].data,
num_gpus, firstgpu, variables.blockSizeV);*/
}
Fi* chi2 = optimizer->getObjectiveFunction()->getFiByName("Chi2");
/*Fi* chi2 = optimizer->getObjectiveFunction()->getFiByName("Chi2");
float res = chi2->calcFi(image->getImage());
printf(
"Non-gridded chi2 after de-gridding using bilinear interpolation %f\n",
res);
res);*/
}

for (int d = 0; d < nMeasurementSets; d++)
Expand Down

0 comments on commit 9992b09

Please sign in to comment.