HILA
Loading...
Searching...
No Matches
defs.h File Reference

This file defines all includes for HILA. More...

#include <cstdint>
#include <iostream>
#include <array>
#include <vector>
#include <sstream>
#include <type_traits>
#include <cmath>
#include <iomanip>
#include <mpi.h>
#include "params.h"
#include <assert.h>
#include "plumbing/memalloc.h"
#include "plumbing/timing.h"
#include "plumbing/logger.h"
#include "plumbing/backend_gpu/defs.h"
#include "plumbing/random.h"
#include "plumbing/type_tools.h"
#include "plumbing/has_unary_minus.h"
#include "plumbing/backend_gpu/gpu_templated_ops.h"
#include "plumbing/real_var_ops.h"
Include dependency graph for defs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  hila
 Implement hila::swap for gauge fields.
 

Macros

#define RESTRICT   __restrict__
 

Enumerations

enum class  fft_direction
 define a class for FFT direction
 

Functions

void hila::initialize (int argc, char **argv)
 Read in command line arguments. Initialise default stream and MPI communication.
 
void hila::finishrun ()
 Normal, controlled exit - all nodes must call this. Prints timing information and information about communications.
 
void hila::terminate (int status)
 
void hila::error (const char *msg)
 Print message and force quit.
 
int hila::myrank ()
 rank of this node
 
int hila::number_of_nodes ()
 how many nodes there are
 
void hila::synchronize ()
 synchronize mpi
 
template<typename T >
constexpr T sqr (const T &arg)
 Define convenience function sqr(), returning square of argument.
 

Variables

std::ostream hila::out
 this is our default output file stream
 
std::ostream hila::out0
 This writes output only from main process (node 0)
 
std::ofstream hila::output_file
 this is just a hook to store output file, if it is in use
 
logger_class hila::log
 Now declare the logger.
 

Detailed Description

This file defines all includes for HILA.

Definition in file defs.h.

Macro Definition Documentation

◆ RESTRICT

#define RESTRICT   __restrict__

Define restrict? It is non-standard but supported by most (all?) compilers. ADD HERE GUARD FOR THOSE WHICH DO not HAVE IT

Definition at line 51 of file defs.h.