I’got such problem: when i call cudaMemCpy i got such thing on big arrays:
First-chance exception .... in test.exe: Microsoft C++ exception: cudaError_enum at memory location ....
As far as I understand this may happen if I write to the same memory location form different threads, but in my algorithm different threads could just read from the same memory location and couldn’t write to the same.
And this error occurs when I use big arrays more then 250000 elements. If I use smaller arrays I usually get right result. Could anyone give me some advice please?