...
Code Block |
---|
wget http://mvapich.cse.ohio-state.edu/download/mvapich/mv2/mvapich2-2.1.tar.gz tar -xvzf mvapich2-2.1.tar.gz |
put this into /usr/include/asm/timex.h
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
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 --enable-timer-type=gettimeofday make |
...