Skip to content

Commit

Permalink
Fix degrid parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
msg7086 committed Apr 22, 2020
1 parent abb9cdc commit 0e468b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/code_impl/code_impl_AVX.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ inline void loop_wrapper_AVX(Expo &&expo, fftwf_complex** in, fftwf_complex* &ou
float* wdehalo = sfp.wdehalo;
// Grid
fftwf_complex* gridsample = sfp.gridsample;
__m256 gridfraction = _mm256_set1_ps(sfp.degrid * in[2][0][0] / gridsample[0][0]);
__m256 gridfraction = _mm256_set1_ps(sfp.degrid * local_in[2][0][0] / gridsample[0][0]);

for (lfp.pos = 0; lfp.pos < itemsperblock; lfp.pos += step)
{
Expand Down
2 changes: 1 addition & 1 deletion src/code_impl/code_impl_AVX512.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ inline void loop_wrapper_AVX512(Expo &&expo, fftwf_complex** in, fftwf_complex*
float* wdehalo = sfp.wdehalo;
// Grid
fftwf_complex* gridsample = sfp.gridsample;
__m512 gridfraction = _mm512_set1_ps(sfp.degrid * in[2][0][0] / gridsample[0][0]);
__m512 gridfraction = _mm512_set1_ps(sfp.degrid * local_in[2][0][0] / gridsample[0][0]);

for (lfp.pos = 0; lfp.pos < itemsperblock; lfp.pos += step)
{
Expand Down

0 comments on commit 0e468b4

Please sign in to comment.