1

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*

aaronqli
  • 790
  • 9
  • 26

1 Answers1

1

Yes, there are methods like putArg(float), putArg(int), which are passing scalar args to the kernel.

Take a look at their examples.

isti_spl
  • 706
  • 6
  • 10