#include
#include
#include
#include
Copyright By PowCoder代写 加微信 powcoder
#include
#include
#include
#define VECN (8*1024*1024)
double timeDiff(struct timespec &t0)
struct timespec t1;
clock_gettime(CLOCK_MONOTONIC, &t1);
double tm = t1.tv_sec – t0.tv_sec + (t1.tv_nsec – t0.tv_nsec) * 1e-9;
return tm;
float dotProduct(float *A, float *B, int N)
float sum = 0.0f;
for (int i=0;i
std::vector
srand(42);
for (int i=0;i