2020-11-18 07:22:37 +00:00
|
|
|
/**
|
|
|
|
|
* @file debug.h
|
|
|
|
|
* @brief Define flags to control the debugging
|
|
|
|
|
*
|
|
|
|
|
* CUAMPCOR_DEBUG is used to output debugging information and intermediate results,
|
|
|
|
|
* disabled when NDEBUG macro is defined.
|
|
|
|
|
* CUDA_ERROR_CHECK is always enabled, to check CUDA routine errors
|
|
|
|
|
*
|
|
|
|
|
*/
|
2019-01-16 19:40:08 +00:00
|
|
|
|
2020-11-18 07:22:37 +00:00
|
|
|
// code guard
|
|
|
|
|
#ifndef __CUAMPCOR_DEBUG_H
|
|
|
|
|
#define __CUAMPCOR_DEBUG_H
|
2019-01-16 19:40:08 +00:00
|
|
|
|
2020-11-12 23:02:44 +00:00
|
|
|
#ifndef NDEBUG
|
|
|
|
|
#define CUAMPCOR_DEBUG
|
|
|
|
|
#endif //NDEBUG
|
2019-01-16 19:40:08 +00:00
|
|
|
|
|
|
|
|
#define CUDA_ERROR_CHECK
|
|
|
|
|
|
2020-11-18 07:22:37 +00:00
|
|
|
#endif //__CUAMPCOR_DEBUG_H
|
|
|
|
|
//end of file
|