meta-par-cuda-0.3: monad-par aware package for calling directly to CUDA

Safe HaskellSafe-Infered

Data.Vector.Algorithms.CUDA.Merge

Synopsis

Documentation

mergeSort :: Vector Word32 -> IO (Vector Word32)

Imposes a bit of allocation overhead, but maintains referential transparency.

unsafeMergeSort :: Vector Word32 -> IO (Vector Word32)

Unsafely sort a Vector of Word32s (corresponding to CUInts) in place. The original vector may no longer be used after this.