I have been trying to use the inclusive prefix scan, but I keep getting an “Unhandled Exception” error. The code is as follows:
#include<thrust/scan.h>
n = 4
key = [2,1,0,1];
thrust::inclusive_scan(key, key + n, key);
I tried to follow the example given here:
http://code.google.com/p/thrust/wiki/QuickStartGuide#Prefix-Sums
I usually associate “Unhandled Exception” with trying to access a point outside an array, but I have also tried key+n-1 as well as key+1 in the middle term, both of which gave me the same “Unhandled Exception”.
Thanks for any help you guys can provide.