invalid argument error in cudaMemcpy from device to host
问题 I am new to CUDA/GPU and I am having problems copying data from my device back to the host. I am developing for Jetson TK1 with CUDA Toolkit 6.5. It builds successfully, but gives an error during runtime. My code is below: //main.cu void allocate(double* const d_inputCurrent, double* signal, double* const d_outputCurrent, const size_t size); int main () { int data_length = 1024000; const int length=512; const size_t size= length; double signalA[length], signalB[length], signalC[length]; for