Does there exist a way to pass scalar parameter to kernel in JOCL without creating a new array? In C++ one can simply cast the scalar parameter (for example, int) to void*
Yes, there are methods like putArg(float), putArg(int), which are passing scalar args to the kernel.
Take a look at their examples.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more