Kernel build example (#224)

* Build example kernels.

* Add some sample custom kernel.

* Get the example kernel to compile.

* Add some cuda code.

* More cuda custom op.

* More cuda custom ops.
This commit is contained in:
Laurent Mazare
2023-07-23 08:15:37 +02:00
committed by GitHub
parent 5f20acf080
commit b8a10425ad
7 changed files with 427 additions and 0 deletions

View File

@ -0,0 +1 @@
pub const LAYERNORM_KERNELS: &str = include_str!(concat!(env!("OUT_DIR"), "/examples/custom-ops/kernels//layernorm_kernels.ptx"));