emudebug and release mode

Hi guys,I am sweating in debugging a function these days…I find that in Emudebug mode I obtain the correct results,while in release mode (as in debug or emurelease mode) I get crap…can somebody please explain what’s going on here???thanx in advance!

It’s possible to have incorrect cudamemcpy’s and incorrect synchronization and obtain the right result in emulation mode, whereas in release where things are actaully being physically copied and running in parallel it matters.