support spp mex

tested on windows with cuda 6.5