title: cudaMemcpy double array to float array
body: <p>Is there any way to copy double array from Host to the float array on Device. I am not concerned with loss of precision?
  I have next case:</p>
  
  <pre><code>double* host = new[N];
  ... // Perform some calculations on host array
  
  float* device;
  
  cudaMalloc( (void**) &amp;device, N * sizeof(float) );
  cudaMemcpy( device, host, N * sizeof(float), cudaMemcpyHostToDevice);
  </code></pre>
  
  <p>When trying above written code I was getting error invalid argument.
  Is there any solution to this besides changing host array to float?</p>