error code 1 cuda runtime an illegal memory access was encountered