Is there any way to swap stream in specified index directly?

Discussion created by riza.guntur on Mar 4, 2009
Latest reply on Mar 5, 2009 by ryta1203

I want to swap things like this:

I want to swap data[idx] to data that has index smaller or higher than data[idx], is there anyway to do this?

One more. Where is array is stored? GPU or CPU?