#include "lbann/comm.hpp"
#include <exception>
#include <iostream>
#include <sstream>
Go to the source code of this file.
◆ LBANN_ASSERT
| #define LBANN_ASSERT |
( |
|
cond | ) |
|
Value:if (!(cond)) \
LBANN_ERROR("The assertion " #cond " failed.")
Definition at line 97 of file exception.hpp.
◆ LBANN_ASSERT_DEBUG
| #define LBANN_ASSERT_DEBUG |
( |
|
cond | ) |
|
◆ LBANN_ASSERT_WARNING
| #define LBANN_ASSERT_WARNING |
( |
|
cond | ) |
|
Value:if (!(cond)) \
LBANN_WARNING("The assertion " #cond " failed.")
Definition at line 107 of file exception.hpp.
◆ LBANN_ERROR
| #define LBANN_ERROR |
( |
|
... | ) |
|
Value:do { \
"LBANN error", \
(rank_LBANN_ERROR >= 0 ?
" on rank " +
std::to_string(rank_LBANN_ERROR) \
: std::string()), \
" (", \
__FILE__, \
":", \
__LINE__, \
"): ", \
__VA_ARGS__)); \
} while (0)
std::string build_string(Args &&... args)
Build a string from the arguments.
std::string to_string(El::Device const &d)
Definition at line 37 of file exception.hpp.
◆ LBANN_MSG
Value:do { \
if (rank_LBANN_MSG == 0) { \
"LBANN message", \
(rank_LBANN_MSG >= 0 \
: std::string()), \
" (", \
__FILE__, \
":", \
__LINE__, \
"): ", \
__VA_ARGS__) \
<< std::endl; \
} \
} while (0)
std::string build_string(Args &&... args)
Build a string from the arguments.
std::string to_string(El::Device const &d)
Definition at line 78 of file exception.hpp.
◆ LBANN_WARNING
| #define LBANN_WARNING |
( |
|
... | ) |
|
Value:do { \
"LBANN warning", \
(rank_LBANN_WARNING >= 0 \
: std::string()), \
" (", \
__FILE__, \
":", \
__LINE__, \
"): ", \
__VA_ARGS__) \
<< std::endl; \
} while (0)
std::string build_string(Args &&... args)
Build a string from the arguments.
std::string to_string(El::Device const &d)
Definition at line 53 of file exception.hpp.
◆ LBANN_WARNING_WORLD_ROOT
| #define LBANN_WARNING_WORLD_ROOT |
( |
|
... | ) |
|
Value:do { \
LBANN_WARNING(__VA_ARGS__); \
} \
} while (0)
Definition at line 70 of file exception.hpp.