Skip to content

Commit

Permalink
recover cufft test
Browse files Browse the repository at this point in the history
  • Loading branch information
alfC committed Feb 24, 2025
1 parent caf08fa commit 37c5898
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions include/boost/multi/adaptors/cufft/test/cufft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,11 @@ auto main() -> int {
BOOST_TEST( fw_cpu[3][2].real() != 0.0 );
BOOST_TEST( fw_cpu[3][2].imag() != 0.0 );

multi::cufft::plan<2> p({true, true}, in_gpu.layout(), fw_gpu.layout());
multi::cufft::plan<2>({true, true}, in_gpu.layout(), fw_gpu.layout())
.execute(in_gpu.base(), fw_gpu.base(), multi::cufft::forward);

p.execute(in_gpu.base(), fw_gpu.base(), multi::cufft::forward);

// BOOST_TEST( std::abs(complex(fw_gpu[3][2]) - fw_cpu[3][2]).real()) < 1.0e-8 );
// BOOST_TEST( std::abs(complex(fw_gpu[3][2]) - fw_cpu[3][2]).imag()) < 1.0e-8 );
BOOST_TEST( std::abs((complex(fw_gpu[3][2]) - fw_cpu[3][2]).real()) < 1.0e-8 );
BOOST_TEST( std::abs((complex(fw_gpu[3][2]) - fw_cpu[3][2]).imag()) < 1.0e-8 );
}
}

Expand Down

0 comments on commit 37c5898

Please sign in to comment.