// // Code developed by Dr Stuart Midgley sdm900@gmail.com // // MPITHRASH is an MPI code which produces an large unpredictable MPI // load on the network and MPI subsystem. It is designed to test the // scalability of the high performance interconnect for a general work // load. // // // Building // -------- // Compile the code for the host platform, eg. // cc -fast mpithrash.c -o mpithrash -lmpi // #include #include #include // // maxmsgsize is the maximum message size // sendnmsgs is the number of messages to send per process // recvnmsgs is the number of messages to receive simultaneously // #define maxmsgsize 65536 #define sendnmsgs 1000 #define recvnmsgs 20 #define iterations 10 #define min(a,b) (a