#include <cstdint>
Go to the source code of this file.
◆ CHECK_MPI
#define CHECK_MPI |
( |
|
operationWithReturnCode | ) |
|
Value:do {\
int check_result = (operationWithReturnCode);\
if (STARPU_UNLIKELY(check_result != 0)) {\
fprintf(stderr, "Unexpected value: <%d> returned for %s\n", check_result, #operationWithReturnCode);\
fprintf(stderr, "[abort][%s:%d]\n", __FILE__, __LINE__);\
STARPU_DUMP_BACKTRACE(); _starpu_abort();\
}}while(0)
Wrap calls to error-returning MPI functions with this to error on non-zero values.
Definition at line 73 of file reconstruct_fourier_util.h.
◆ CHECK_STARPU
#define CHECK_STARPU |
( |
|
operationWithReturnCode | ) |
|
Value:do {\
int check_result = (operationWithReturnCode);\
STARPU_CHECK_RETURN_VALUE(check_result, #operationWithReturnCode);\
} while (0)
Wrap calls to error-returning StarPU functions with this to error on non-zero values.
Definition at line 67 of file reconstruct_fourier_util.h.
◆ align()
template<typename T >
T align |
( |
T |
number, |
|
|
uint32_t |
alignment |
|
) |
| |
|
inline |
◆ alignmentOf() [1/2]
uint32_t alignmentOf |
( |
size_t |
ptr | ) |
|
|
inline |
Definition at line 38 of file reconstruct_fourier_util.h.
39 uintptr_t p = (uintptr_t) ptr;
40 uint32_t alignment = 1;
42 uint32_t nextAlignment = alignment << 1;
43 if (nextAlignment == 0)
45 if ((p & nextAlignment) != 0)
47 alignment = nextAlignment;
◆ alignmentOf() [2/2]
uint32_t alignmentOf |
( |
void * |
ptr | ) |
|
|
inline |
◆ ALIGNMENT
const uint32_t ALIGNMENT = 32 |