Function¶
Function kinds¶
A function can be one of the following kinds:
public: a public function can be invoked in python directlycuda_kernel: a cuda kernel functioncuda_internal: a cuda device function that can only be invoked by cuda kernel/device functionscpu_kernel: a cpu kernel functioncpu_internal: a cpu function that will be used by other cpu functions
Only the public functions will be exposed to python. For the modules that defines a kernel function
(i.e., cuda_kernel or cpu_kernel), and there is not a public function named launch, then hidet
will automatically create a public function named launch that will launch the kernel function.