Commit 5db1f780 authored by incardon's avatar incardon

small changes for GPU test

parent a9991812
...@@ -6,9 +6,13 @@ ...@@ -6,9 +6,13 @@
#endif #endif
#include "util/print_stack.hpp" #include "util/print_stack.hpp"
#include "util/math_util_complex.hpp"
Vcluster * global_v_cluster_private = NULL; Vcluster * global_v_cluster_private = NULL;
//
std::vector<int> sieve_spf;
// number of vcluster instances // number of vcluster instances
size_t n_vcluster = 0; size_t n_vcluster = 0;
bool ofp_initialized = false; bool ofp_initialized = false;
......
...@@ -9,8 +9,10 @@ ...@@ -9,8 +9,10 @@
#define VCLUSTER_HPP #define VCLUSTER_HPP
#include <signal.h> #include <signal.h>
#include "VCluster_base.hpp" #include "VCluster_base.hpp"
#include "VCluster_meta_function.hpp" #include "VCluster_meta_function.hpp"
#include "util/math_util_complex.hpp"
void bt_sighandler(int sig, siginfo_t * info, void * ctx); void bt_sighandler(int sig, siginfo_t * info, void * ctx);
...@@ -872,6 +874,9 @@ static inline void openfpm_init(int *argc, char ***argv) ...@@ -872,6 +874,9 @@ static inline void openfpm_init(int *argc, char ***argv)
if (*argc != 0) if (*argc != 0)
program_name = std::string(*argv[0]); program_name = std::string(*argv[0]);
// Initialize math pre-computation tables
openfpm::math::init_getFactorization();
ofp_initialized = true; ofp_initialized = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment