Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
common.cxx File Reference
#include "common.h"
#include "../shared/util.h"
#include <random>
Include dependency graph for common.cxx:

Go to the source code of this file.

Namespaces

 CTF
 
 CTF_int
 

Functions

void CTF_int::init_rng (int rank)
 initialized random number generator More...
 
double CTF_int::get_rand48 ()
 returns new random number in [0,1) More...
 
template<typename type >
int CTF_int::conv_idx (int order, type const *cidx, int **iidx)
 
template<typename type >
int CTF_int::conv_idx (int order_A, type const *cidx_A, int **iidx_A, int order_B, type const *cidx_B, int **iidx_B)
 
template<typename type >
int CTF_int::conv_idx (int order_A, type const *cidx_A, int **iidx_A, int order_B, type const *cidx_B, int **iidx_B, int order_C, type const *cidx_C, int **iidx_C)
 
template int CTF_int::conv_idx< int > (int, int const *, int **)
 
template int CTF_int::conv_idx< char > (int, char const *, int **)
 
template int CTF_int::conv_idx< int > (int, int const *, int **, int, int const *, int **)
 
template int CTF_int::conv_idx< char > (int, char const *, int **, int, char const *, int **)
 
template int CTF_int::conv_idx< int > (int, int const *, int **, int, int const *, int **, int, int const *, int **)
 
template int CTF_int::conv_idx< char > (int, char const *, int **, int, char const *, int **, int, char const *, int **)
 
void CTF_int::flops_add (int64_t n)
 
int64_t CTF_int::get_flops ()
 
void CTF_int::handler ()
 
void CTF_int::cvrt_idx (int order, int const *lens, int64_t idx, int *idx_arr)
 
void CTF_int::cvrt_idx (int order, int const *lens, int64_t idx, int **idx_arr)
 
void CTF_int::cvrt_idx (int order, int const *lens, int const *idx_arr, int64_t *idx)
 
bool CTF_int::get_mpi_dt (int64_t count, int64_t datum_size, MPI_Datatype &dt)
 gives a datatype for arbitrary datum_size, errors if exceeding 32-bits More...
 

Variables

int CTF::DGTOG_SWITCH = 1
 
std::mersenne_twister_engine< std::uint_fast64_t, 64, 312, 156, 31, 0xb5026f5aa96619e9, 29, 0x5555555555555555, 17, 0x71d67fffeda60000, 37, 0xfff7eee000000000, 43, 6364136223846793005 > CTF_int::rng
 
LinModel< 3 > CTF_int::alltoall_mdl (alltoall_mdl_init,"alltoall_mdl")
 
LinModel< 3 > CTF_int::alltoallv_mdl (alltoallv_mdl_init,"alltoallv_mdl")
 
LinModel< 3 > CTF_int::red_mdl (red_mdl_init,"red_mdl")
 
LinModel< 3 > CTF_int::red_mdl_cst (red_mdl_cst_init,"red_mdl_cst")
 
LinModel< 3 > CTF_int::allred_mdl (allred_mdl_init,"allred_mdl")
 
LinModel< 3 > CTF_int::allred_mdl_cst (allred_mdl_cst_init,"allred_mdl_cst")
 
LinModel< 3 > CTF_int::bcast_mdl (bcast_mdl_init,"bcast_mdl")
 
int64_t CTF_int::total_flop_count = 0
 
MPI_Datatype CTF_int::MPI_CTF_DOUBLE_COMPLEX = MPI_CXX_DOUBLE_COMPLEX