Gromacs
2016.6
|
Test fixture for higher-level floating-point utility functions.
Inherit from main SimdTest, add code to generate aligned memory and data.
Protected Attributes | |
std::vector< int, AlignedAllocator< int > > | integerMemory_ |
Aligned integer memory. | |
std::vector< real, AlignedAllocator< real > > | realMemory_ |
Aligned real memory. | |
int * | offset_ |
Pointer to offset indices, aligned memory. | |
real * | val0_ |
Pointer to GMX_SIMD_REAL_WIDTH values, aligned. | |
real * | val1_ |
Pointer to GMX_SIMD_REAL_WIDTH values, aligned. | |
real * | val2_ |
Pointer to GMX_SIMD_REAL_WIDTH values, aligned. | |
real * | val3_ |
Pointer to GMX_SIMD_REAL_WIDTH values, aligned. | |
real * | mem0_ |
Pointer to aligned memory, s_workMemSize real values. | |
real * | mem1_ |
Pointer to aligned memory, s_workMemSize real values. | |
Protected Attributes inherited from gmx::test::SimdBaseTest | |
std::int64_t | ulpTol_ |
Current tolerance in units-in-last-position. | |
real | absTol_ |
Current absolute tolerance. | |
std::pair< real, real > | range_ |
Range for math function tests. | |
Static Protected Attributes | |
static const std::size_t | s_workMemSize_ = 16*3* 4 +4 |
Size of memory work buffers. | |
Additional Inherited Members | |
Public Member Functions inherited from gmx::test::SimdTest | |
::testing::AssertionResult | compareSimdRealUlp (const char *refExpr, const char *tstExpr, const SimdReal ref, const SimdReal tst) |
Compare two real SIMD variables for approximate equality. More... | |
::testing::AssertionResult | compareSimdRealEq (const char *refExpr, const char *tstExpr, const SimdReal ref, const SimdReal tst) |
Compare two real SIMD variables for exact equality. More... | |
::testing::AssertionResult | compareSimdInt32 (const char *refExpr, const char *tstExpr, const SimdInt32 ref, const SimdInt32 tst) |
Compare two 32-bit integer SIMD variables. More... | |
Public Member Functions inherited from gmx::test::SimdBaseTest | |
SimdBaseTest () | |
Initialize new SIMD test fixture with default tolerances. More... | |
void | setUlpTol (std::int64_t newTol) |
Adjust ulp tolerance from the default 10 (float) or 255 (double). | |
void | setAbsTol (real newTol) |
Adjust the absolute tolerance from the default 0. More... | |
void | setRange (real low, real high) |
Change math function testing range from the default [1,10]. | |
::testing::AssertionResult | compareVectorRealUlp (const char *refExpr, const char *tstExpr, const std::vector< real > &ref, const std::vector< real > &tst) |
Compare two std::vector<real> for approximate equality. More... | |
template<typename T > | |
::testing::AssertionResult | compareVectorEq (const char *refExpr, const char *tstExpr, const std::vector< T > &ref, const std::vector< T > &tst) |
Compare std::vectors for exact equality. More... | |
Static Public Attributes inherited from gmx::test::SimdBaseTest | |
static int | s_nPoints = 10000 |
Number of test points to use, settable on command line. | |