// // Grid.h // simd // // Created by Peter Boyle on 09/05/2014. // Copyright (c) 2014 University of Edinburgh. All rights reserved. // #ifndef GRID_H #define GRID_H #include #include #include #include #include #include #include #include #include #include #include #include #include //////////////////////////////////////////////////////////// // Tunable header includes //////////////////////////////////////////////////////////// #ifdef HAVE_OPENMP #define OMP #include #endif #ifdef HAVE_MALLOC_MALLOC_H #include #endif #ifdef HAVE_MALLOC_H #include #endif #include #include #include #include #include #include #include #include #include #include #include namespace Grid { void Grid_init(int *argc,char ***argv); void Grid_finalize(void); void Grid_sa_signal_handler(int sig,siginfo_t *si,void * ptr); void Grid_debug_handler_init(void); void Grid_quiesce_nodes(void); void Grid_unquiesce_nodes(void); // C++11 time facilities better? double usecond(void); // Common parsing chores std::string GridCmdOptionPayload(char ** begin, char ** end, const std::string & option); bool GridCmdOptionExists(char** begin, char** end, const std::string& option); void GridParseIntVector(std::string &str,std::vector & vec); void GridParseLayout(char **argv,int argc,std::vector &mpi,std::vector &simd,std::vector &latt); }; #endif