HiCMA
Hierarchical Computations on Manycore Architectures
hicma_common.h
Go to the documentation of this file.
1 #ifndef __HICMA_COMMON__
2 #define __HICMA_COMMON__
3 
8 #include "starsh.h"
9 #define PROGRESS(str) \
10  if(print_progress){ \
11  int myrank = MORSE_My_Mpi_Rank();\
12  time(&timer); \
13  tm_info = localtime(&timer); \
14  strftime(datebuf, 26, "%Y-%m-%d %H:%M:%S",tm_info); \
15  fprintf(stderr, "%d:%s\t%d\t%s\t%s\n", myrank, datebuf, __LINE__, __func__, str);\
16  fflush(stderr);\
17  }
18 //#undef PROGRESS
19 //#define PROGRESS(str)
20 extern struct hicma_context hicma_context;
21 #endif