mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 18:48:51 +00:00
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:
1
candle-examples/examples/custom-ops/cuda_kernels.rs
Normal file
1
candle-examples/examples/custom-ops/cuda_kernels.rs
Normal file
@ -0,0 +1 @@
|
||||
pub const LAYERNORM_KERNELS: &str = include_str!(concat!(env!("OUT_DIR"), "/examples/custom-ops/kernels//layernorm_kernels.ptx"));
|
Reference in New Issue
Block a user