I’m setting up software to work with multiplication of large numbers, and I’d like to compare the speed between several techniques, one of which is OpenCL. How can I pass in and multiply two 256-bit unsigned integers? What are the performance implications of this? What’s the practical limit of how large numbers can get before the performance becomes terrible?
I’m setting up software to work with multiplication of large numbers, and I’d like
Share
OpenCL only has intrinsic support for 8, 16, 32 and 64 bit integers. There might be vendor extensions for big integers on some platforms, but at least on the ones I am familiar with, there is not. If you want larger integer types, you will have to implement them yourself.