Go to the documentation of this file. 5 #include <fmt/format.h> 10 #define GOOFIT_INFO(...) \ 12 std::cout << GooFit::reset << GooFit::blue; \ 13 fmt::print(__VA_ARGS__); \ 14 std::cout << GooFit::reset << std::endl; \ 16 #define GOOFIT_INFO_F(...) \ 18 std::cout << GooFit::reset << GooFit::blue; \ 19 fmt::printf(__VA_ARGS__); \ 20 std::cout << GooFit::reset << std::endl; \ 22 #define GOOFIT_INFO_C(color, ...) \ 24 std::cout << GooFit::reset << color; \ 25 fmt::print(__VA_ARGS__); \ 26 std::cout << GooFit::reset << std::endl; \ 28 #define GOOFIT_INFO_FC(color, ...) \ 30 std::cout << GooFit::reset << color; \ 31 fmt::printf(__VA_ARGS__); \ 32 std::cout << GooFit::reset << std::endl; \ 34 #define GOOFIT_STATUS(...) \ 36 std::cout << GooFit::reset << GooFit::magenta; \ 37 fmt::print(__VA_ARGS__); \ 38 std::cout << GooFit::reset << std::endl; \ 40 #define GOOFIT_STATUS_F(...) \ 42 std::cout << GooFit::reset << GooFit::magenta; \ 43 fmt::printf(__VA_ARGS__); \ 44 std::cout << GooFit::reset << std::endl; \ 46 #define GOOFIT_WARN(...) \ 48 std::cout << GooFit::reset << GooFit::yellow << GooFit::bold; \ 49 fmt::print(__VA_ARGS__); \ 50 std::cout << GooFit::reset << std::endl; \ 52 #define GOOFIT_WARN_F(...) \ 54 std::cout << GooFit::reset << GooFit::yellow << GooFit::bold; \ 55 fmt::printf(__VA_ARGS__); \ 56 std::cout << GooFit::reset << std::endl; \ 58 #define GOOFIT_ERROR(...) \ 60 std::cout << GooFit::reset << GooFit::red << GooFit::bold; \ 61 fmt::print(__VA_ARGS__); \ 62 std::cout << GooFit::reset << std::endl; \ 64 #define GOOFIT_ERROR_F(...) \ 66 std::cout << GooFit::reset << GooFit::red << GooFit::bold; \ 67 fmt::printf(__VA_ARGS__); \ 68 std::cout << GooFit::reset << std::endl; \ 71 #ifdef GOOFIT_DEBUG_FLAG 73 #define GOOFIT_DEBUG(...) \ 75 std::cout << GooFit::reset << GooFit::cyan << GooFit::bold << "DEBUG: "; \ 76 fmt::print(__VA_ARGS__); \ 77 std::cout << GooFit::reset << std::endl; \ 79 #define GOOFIT_DEBUG_F(...) \ 81 std::cout << GooFit::reset << GooFit::cyan << GooFit::bold << "DEBUG: "; \ 82 fmt::printf(__VA_ARGS__); \ 83 std::cout << GooFit::reset << std::endl; \ 86 #define GOOFIT_DEBUG(...) \ 88 #define GOOFIT_DEBUG_F(...) \ 90 if(blockId.x == 0 && blockId.y == 0 && threadId.x == 0 && threadId.y == 0) { \ 91 printf(__VA_ARGS__); \ 96 #define GOOFIT_DEBUG(...) \ 98 #define GOOFIT_DEBUG_F(...) \ 101 #ifdef GOOFIT_TRACE_FLAG 102 #ifndef __CUDA_ARCH__ 103 #define GOOFIT_TRACE(...) \ 105 std::cout << GooFit::reset << GooFit::cyan << "TRACE: "; \ 106 fmt::print(__VA_ARGS__); \ 107 std::cout << GooFit::reset << std::endl; \ 109 #define GOOFIT_TRACE_F(...) \ 111 std::cout << GooFit::reset << GooFit::cyan << "TRACE: "; \ 112 fmt::printf(__VA_ARGS__); \ 113 std::cout << GooFit::reset << std::endl; \ 116 #define GOOFIT_TRACE(...) \ 118 #define GOOFIT_TRACE_F(...) \ 120 if(blockId.x == 0 && blockId.y == 0 && threadId.x == 0 && threadId.y == 0) { \ 121 printf(__VA_ARGS__); \ 126 #define GOOFIT_TRACE(...) \ 128 #define GOOFIT_TRACE_F(...) \