LBANN  0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
MPITestHelpers.hpp File Reference
#include <lbann/comm.hpp>
#include <lbann/utils/exception.hpp>
#include <stdexcept>
#include <string>
Include dependency graph for MPITestHelpers.hpp:

Go to the source code of this file.

Classes

struct  unit_test::utilities::BadPointer
 

Namespaces

 unit_test
 
 unit_test::utilities
 
 unit_test::utilities::expert
 Expert-only methods.
 

Macros

#define LBANN_ASSERT_POINTER(ptr)
 

Functions

lbann::lbann_communit_test::utilities::current_world_comm ()
 Get the world communicator for this MPI session. More...
 
template<typename T >
size_t unit_test::utilities::as_size (T const &size) noexcept
 
void unit_test::utilities::expert::register_world_comm (lbann::lbann_comm &comm) noexcept
 Set the world communicator for this session. More...
 
void unit_test::utilities::expert::reset_world_comm () noexcept
 Clear the world communicator for this session. More...
 

Macro Definition Documentation

◆ LBANN_ASSERT_POINTER

#define LBANN_ASSERT_POINTER (   ptr)
Value:
do { \
if (!ptr) \
throw ::unit_test::utilities::BadPointer( \
__FILE__, __LINE__, #ptr); \
} while (false)

Definition at line 36 of file MPITestHelpers.hpp.