Merge branch 'dtof' of http://192.168.1.9:3000/Bug/Aurora into dtof
This commit is contained in:
@@ -36,6 +36,15 @@ TEST_F(Function1D_Cuda_Test, complex)
|
||||
{
|
||||
EXPECT_EQ(result1[i], result2[i]);
|
||||
}
|
||||
|
||||
Aurora::Matrix hostMatrix2 = Aurora::Matrix::fromRawData(new float[8]{1,2,3,4,5,6,7,8}, 2,2,2);
|
||||
Aurora::CudaMatrix deviceMatrix2 = hostMatrix.toDeviceMatrix();
|
||||
result2 = Aurora::complex(deviceMatrix, deviceMatrix2).toHostMatrix();
|
||||
for(size_t i=0; i<result2.getDataSize(); ++i)
|
||||
{
|
||||
EXPECT_EQ(hostMatrix[i], result2[2 * i]);
|
||||
EXPECT_EQ(hostMatrix2[i], result2[2 * i + 1]);
|
||||
}
|
||||
}
|
||||
|
||||
TEST_F(Function1D_Cuda_Test, real)
|
||||
|
||||
Reference in New Issue
Block a user