I met a problem when I copy CUDA memory to physical memory using ‘cudaMemcpy()’.
There is float* result;
And the size of it is about 20000.
So if float size is 4bytes, then copied memory size will be 80,000 bytes, right? I don’t think it is big.
However, after I copied memory, the copied values are 0 or some big strange value. But no error message.
If the size of the pointer is about 1000, then there is no problem occurs.
So, I would like to set if the size of copying memory is out of possible memory on the system, errors are shown.
Besides, I would like to know current free memory space at both CUDA and physical memory.