QUDA v0.3.2
A library for QCD on GPUs
Defines | Functions

quda/include/util_quda.h File Reference

#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 Documentation

#define checkCudaError ( )
Value:
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 (   ...)
Value:
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 (   ...)
Value:
do {                \
  printfQuda("QUDA warning: " __VA_ARGS__);  \
  printfQuda("\n");                          \
} while (0)

Definition at line 37 of file util_quda.h.


Function Documentation

double stopwatchReadSeconds ( )

Definition at line 12 of file util_quda.cpp.

void stopwatchStart ( )

Definition at line 8 of file util_quda.cpp.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines