OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
VCluster.cpp
1 #define PRINT_STACKTRACE
2 
3 #include "VCluster.hpp"
4 #ifndef __CYGWIN__
5 #include <execinfo.h>
6 #endif
7 
8 #include "util/print_stack.hpp"
9 
10 Vcluster * global_v_cluster_private = NULL;
11 
12 // number of vcluster instances
13 size_t n_vcluster = 0;
14 bool ofp_initialized = false;
15 
16 size_t tot_sent = 0;
17 size_t tot_recv = 0;
18 
19 std::string program_name;
20 
21 // Segmentation fault signal handler
22 void bt_sighandler(int sig, siginfo_t * info, void * ctx_p)
23 {
24  if (sig == SIGSEGV)
25  std::cout << "Got signal " << sig << " faulty address is %p, " << info->si_addr << " from " << info->si_pid << std::endl;
26  else
27  std:: cout << "Got signal " << sig << std::endl;
28 
29  print_stack();
30 
31  exit(0);
32 }
Implementation of VCluster class.
Definition: VCluster.hpp:36