Make TVAL GPU executeable
This commit is contained in:
@@ -23,6 +23,9 @@ inline double fourDecimalRound(double src){
|
||||
#define EXPECT_DOUBLE_AE(valueA,valueB)\
|
||||
EXPECT_DOUBLE_EQ(fourDecimalRound(valueA),fourDecimalRound(valueB))
|
||||
|
||||
#define ASSERT_DOUBLE_AE(valueA,valueB)\
|
||||
ASSERT_DOUBLE_EQ(fourDecimalRound(valueA),fourDecimalRound(valueB))
|
||||
|
||||
class Reconstruction_Test : public ::testing::Test {
|
||||
protected:
|
||||
static void SetUpReconstructionTester() {
|
||||
@@ -48,11 +51,13 @@ TEST_F(Reconstruction_Test, reconstructArt) {
|
||||
auto res = m.read("res");
|
||||
auto senderList = m.read("senderList");
|
||||
auto SOS_IN_WATER = m.read("SOS_IN_WATER");
|
||||
auto f1 = m.read("f1");
|
||||
|
||||
MatlabReader m2("/home/krad/TestData/gpuresult.mat");
|
||||
auto f1 = m2.read("out");
|
||||
auto result = Recon::reconstructArt(data, dataAtt, dims, senderList, receiverList, res, SOS_IN_WATER[0]);
|
||||
for(size_t i=0; i<f1.getDataSize(); ++i)
|
||||
{
|
||||
EXPECT_DOUBLE_AE(f1[i], result.outSOS[i]);
|
||||
ASSERT_DOUBLE_AE(f1[i], result.outSOS[i])<<"index:"<<i;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user