cudaMalloc((void**)&d_arrayA,size*sizeof(double));
cudaMalloc((void**)&d_arrayB,size*sizeof(double));
cudaMalloc((void**)&d_arrayC,size*sizeof(double));
cudaMalloc((void**)&d_arrayA,size*sizeof(double));
cudaMalloc((void**)&d_arrayB,size*sizeof(double));
cudaMalloc((void**)&d_arrayC,size*sizeof(double));