Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

put this into /usr/include/asm/timex.h - no need actually

Code Block
#ifndef _ARCH_ARMV7L_H
#define _ARCH_ARMV7L_H
#ifdef __cplusplus
extern "C" {
#endif
#define mb()    asm volatile("dmb":::"memory")
#include <stdlib.h>
#include <sys/time.h>
typedef unsigned long long cycles_t;
static inline cycles_t get_cycles (void)
{
        cycles_t thetime;
        struct timeval tv;
        if (gettimeofday(&tv, NULL) != 0)
                return 0;
        thetime = ((cycles_t)tv.tv_sec) * 1000000ULL + ((cycles_t)tv.tv_usec);
        return (cycles_t)thetime;
}
#ifdef __cplusplus 
}
#endif
#endif /* _ARCH_ARMV7L_H */

configure and deploy on the head node

Code Block
sudo apt-get install byacc
cd mvapich2-2.1
./configure --enable-fast=all,O3 --enable-shared --enable-threads=multiple --enable-cuda=basic --disable-fortran --disable-mcast --with-cuda=/usr/local/cuda --with-device=ch3:nemesis --enable-timer-type=clock_gettime #gettimeofday
make
make install

make install on all nodes

Code Block
cp /usr/include/asm/timex.h /home/ubuntu/MPI/mvapich2-2.1/.

for i in `seq 1 7`; do ssh ubuntu@jetson0$i "sudo mkdir -p /usr/include/asm; sudo cp /home/ubuntu/MPI/mvapich2-2.1/timex.h /usr/include/asm/timex.h; cd /home/ubuntu/MPI/mvapich2-2.1; sudo make install"; done 

 

...

MPI Test