In section 4.5.2.3 the example:
cudaMemcpy2DToArray(&cuArray, 0, 0, devPtr, pitch, width, height,
cudaMemcpyDeviceToDevice);
should be:
cudaMemcpy2DToArray(cuArray, 0, 0, devPtr, pitch, width*sizeof(float), height,
cudaMemcpyDeviceToDevice);
notice the cuArray instead of &cuArray
and *sizeof(float)
correct?
greetings
sebastian