Closed acfoltzer closed 12 years ago
sadly, "lost device memory reference" was a common problem with the old reference counting system, which has been completely replaced now with finalisers. This is available on my branch, but give me chance to track down any other bugs it may hit in the new code generator...
@tmcdonell Did you try the code in the Gist on your branch? Does it work?
it does, but for large vectors hits a bug in (I think) scan, which causes the program to segfault.
Weren't there some scan fixes recently? Is the problem reported here still happening in 0.12?
The radix sort example in accelerate-examples
fails for me with:
radixsort: Failed: Prelude.(!!): index too large
in the recent version of Accelerate.
radix sort in the examples package now works correctly. thanks for reporting!
A gist of the code I'm running, and the result is here.
I can duplicate this with GHCs 7.2.1 and 7.4.1. My device info is as follows: