Brick Library 0.1
Performance-portable stencil datalayout & codegen
|
Compare content from bricks with arrays. More...
Go to the source code of this file.
Functions | |
template<unsigned dims, typename T > | |
bool | compareBrick (const std::vector< long > &dimlist, const std::vector< long > &padding, const std::vector< long > &ghost, bElem *arr, unsigned *grid_ptr, T &brick) |
Compare values between bricks and an array. | |
template<unsigned dims, typename T > | |
bool | compareBrick (const std::vector< long > &dimlist, bElem *arr, unsigned *grid_ptr, T &brick) |
Compare all values between bricks and an array without ghost or padding. | |
Variables | |
bool | compareBrick_b |
Thread-private comparison accumulator. | |
Compare content from bricks with arrays.
|
inline |
Compare all values between bricks and an array without ghost or padding.
dims | |
T |
dimlist | |
arr | |
grid_ptr | |
brick |
For parameters see compareBrick(const std::vector<long> &dimlist, const std::vector<long> &padding, const std::vector<long> &ghost, bElem *arr, unsigned *grid_ptr, T &brick)
|
inline |
Compare values between bricks and an array.
dims | number of dimensions |
T | type for brick |
dimlist | dimensions, contiguous first |
padding | padding applied to array format (skipped) |
ghost | padding applied to array and brick (skipped) |
arr | array input |
grid_ptr | the grid array contains indices of bricks |
brick | the brick data structure |
|
extern |
Thread-private comparison accumulator.