// includes, system #include #include #include void checkCUDAError(const char *msg); /////////////////////////////////////////////////////////////////////////////// // Program main /////////////////////////////////////////////////////////////////////////////// int main( int argc, char** argv) { int n, dimA; float *h_a; // pointer to gpu memory float *d_a, *d_b; //timing unsigned int t1= 0; cutCreateTimer(&t1); // alloc and init dimA = 10000000; h_a = (float *) malloc(dimA*sizeof(float)); for (n=0; n