|
QUDA v0.3.2
A library for QCD on GPUs
|
#include <stdio.h>#include <stdlib.h>Go to the source code of this file.
Defines | |
| #define | printfQuda(...) do { printf(__VA_ARGS__); fflush(stdout); } while (0) |
| #define | errorQuda(...) |
| #define | warningQuda(...) |
| #define | checkCudaError() |
Functions | |
| void | stopwatchStart () |
| double | stopwatchReadSeconds () |
| #define checkCudaError | ( | ) |
do { \ cudaThreadSynchronize(); \ cudaError_t error = cudaGetLastError(); \ if (error != cudaSuccess) \ errorQuda("(CUDA) %s", cudaGetErrorString(error)); \ } while (0)
Definition at line 42 of file util_quda.h.
| #define errorQuda | ( | ... | ) |
do { \ printf("QUDA error: " __VA_ARGS__); \ printf(" (" __FILE__ ":%d)\n", __LINE__); \ exit(1); \ } while (0)
Definition at line 29 of file util_quda.h.
| #define printfQuda | ( | ... | ) | do { printf(__VA_ARGS__); fflush(stdout); } while (0) |
Definition at line 27 of file util_quda.h.
| #define warningQuda | ( | ... | ) |
do { \ printfQuda("QUDA warning: " __VA_ARGS__); \ printfQuda("\n"); \ } while (0)
Definition at line 37 of file util_quda.h.
| double stopwatchReadSeconds | ( | ) |
Definition at line 12 of file util_quda.cpp.
| void stopwatchStart | ( | ) |
Definition at line 8 of file util_quda.cpp.
1.7.3