SUNphi  1.0
SUNphi.cpp File Reference

Implements the parts of code which require dedicated compilation units. More...

#include <cstdarg>
#include <cstdio>
#include <gitInfo.hpp>
#include <Threads.hpp>
#include <debug/Crash.hpp>
#include <ios/Logger.hpp>
#include <ios/MinimalLogger.hpp>
#include <ios/TextFormat.hpp>
#include <random/TrueRandomGenerator.hpp>
#include <system/Memory.hpp>
#include <system/Mpi.hpp>
#include <system/Timer.hpp>
#include <utility/Aliver.hpp>
#include <utility/SingleInstance.hpp>

Go to the source code of this file.

Classes

class  SUNphi::Aliver
 Class used to provocate initialization of Mpi. More...
 

Macros

#define CONFIG_TIME   ""
 Null time.
 
#define CONFIG_FLAGS   ""
 Null flags.
 

Functions

void SUNphi::minimalLogger (Logger &logger, const char *format,...)
 
void SUNphi::minimalCrash (const char *path, const int line, const char *funcName, const char *format,...)
 
int SUNphi::aliverHelper ()
 Helper to make sure that the initializing functions are referenced.
 
Timer SUNphi::timings ("Total time", Timer::NO_FATHER, Timer::UNSTOPPABLE)
 Global timings.
 
Logger SUNphi::runLog ("/dev/stdout")
 Global logger.
 

Detailed Description

Implements the parts of code which require dedicated compilation units.

Definition in file SUNphi.cpp.

Function Documentation

void SUNphi::minimalCrash ( const char *  path,
const int  line,
const char *  funcName,
const char *  format,
  ... 
)

Wraps the actual crasher through the old-style C variadic function

We cannot use variadic template version here, as the crash cannot be called directly here, since "Logger.hpp" is expected

Starts the variadic arguments

Starts the variadic arguments

Parameters
pathFile where the crash happened
lineLine number where the crash happened
funcNameFunction where the crash happened
formatFormatting string

Definition at line 53 of file SUNphi.cpp.

void SUNphi::minimalLogger ( Logger logger,
const char *  format,
  ... 
)

Wraps the actual logger through the old-style C variadic function

We cannot use variadic template version here, as the logger cannot be called directly here, since "Logger.hpp" is expected

Starts the variadic arguments

Starts the variadic arguments

Parameters
loggerLogger to be used
formatFormatting string

Definition at line 40 of file SUNphi.cpp.