// nvcc -arch=sm_13 -o cpu_norm_const cpu_norm_const.cu #include "../../cuda_by_example/common/book.h" const int B_size = 1000000; const int A_size = 15131; //const int B_size = 100; //const int A_size = 1000; int main( void ) { unsigned long int *a, *b; int c, i, j; cudaEvent_t start, stop; // allocate memory on the cpu side a = (unsigned long int*)malloc( A_size*2*sizeof(unsigned long int) ); b = (unsigned long int*)malloc( B_size*2*sizeof(unsigned long int) ); FILE *Ain, *Bin; Ain = fopen("A.txt", "r"); Bin = fopen("B.txt", "r"); unsigned long int tmp1, tmp2; // fill in the host memory with data for (i=0; i