3 ms·
I guess you could write CUDA code to do this on a GPU, but then the question becomes why? :/
by ascotan 10y ago
I guess you could write CUDA code to do this on a GPU, but then the question becomes why? :/
- castratikron 10y agoI don't think this particular problem would be well suited for a GPU. GPUs are not vector processors, they're matrix processors, and the problem that OP is describing is a vector problem. Basically this problem would be limited by the memory bandwidth of a GPU, which isn't a good thing: https://crd.lbl.gov/departments/computer-science/PAR/research/roofline/ https://crd.lbl.gov/departments/computer-science/PAR/researc...
- antonmks 10y agoOk, here it is : https://gist.github.com/antonmks/17e0c711d41fb07d1b6f3ada3f5f29ee https://gist.github.com/antonmks/17e0c711d41fb07d1b6f3ada3f5... 0.25 cycles/byte using GTX 1080.
- mkagenius 10y agoThe Why has multiple answers - one is human curiosity for possibilities of better result (which is the sole cause of all the technology we see around us).