Main Page | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Globals

basic_network.h

Go to the documentation of this file.
00001 
00005 class network
00006 {
00007 public:
00013         static void init(int &_argc, char** &_argv)
00014         {
00015         }
00019         static void finalize()
00020         {
00021         }
00026         static void time(double &_t)
00027         {
00028                 _t = 1.0/double(CLOCKS_PER_SEC)*clock();
00029         }
00034         static void rank(int &_rank)
00035         {
00036                 _rank = 0;
00037         }
00042         static void size(int &_size)
00043         {
00044                 _size = 1;
00045         }
00049         static void barrier()
00050         {
00051         }
00059         static void alltoall(void* _s, int _slen, void* _r, int _rlen)
00060         {
00061                 memcpy(_r, _s, _slen);
00062         }
00072         static void alltoallv(void* _s, int* _slen, int* _soff, void* _r, int* _rlen, int* _roff)
00073         {
00074                 memcpy(_r, _s, _slen[0]);
00075         }
00083         static void allgather(void* _s, int _slen, void* _r, int _rlen)
00084         {
00085                 memcpy(_r, _s, _slen);
00086         }
00095         static void allgatherv(void* _s, int _slen, void* _r, int* _rlen, int* _roff)
00096         {
00097                 memcpy(_r, _s, _slen);
00098         }
00099 };

Generated on Wed Apr 26 17:41:45 2006 for Parallel Toolbox by  doxygen 1.4.2