Can device memory be flushed and reset?

Further to my post about the PrefixRadix kernel hanging, it hangs when trying to sort jus 1000 items which implies to me there is something wrong with the memory, so can I flush the device memory and reset it all to 0?