-
Some questions on the difference: The docs mention
Are these functions that live on the GPU, but are not parallel? When would someone decide to use a func over a kernel? Can a func be called outside of a kernel, or is it only callable from a kernel? A func must be defined in the same module means that they should be in the same file, or in the same total module that contains an |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The main difference is just that a In the latest versions you can call function objects from other Python modules directly. This is not possible with kernels which must be launched from host Python. Cheers, |
Beta Was this translation helpful? Give feedback.
The main difference is just that a
wp.func()
can't be launched from Python, it can only be called from kernels or other functions.In the latest versions you can call function objects from other Python modules directly. This is not possible with kernels which must be launched from host Python.
Cheers,
Miles