TensorRT icon indicating copy to clipboard operation
TensorRT copied to clipboard

Where to see the CUDA source code of these CUDA kernels?

Open haitong opened this issue 2 years ago • 2 comments

Hi team,

I am interested to see the CUDA source code of these transformer kernels, like: https://github.com/NVIDIA/TensorRT/blob/e5f9ead4a4826cc774325720a26dbf4ec47203ea/plugin/bertQKVToContextPlugin/fused_multihead_attention/src/fused_multihead_attention_fp16_128_64_kernel.sm75.cpp

Anyone know where to see the source code?

haitong avatar Sep 17 '22 18:09 haitong

@ttyio ^^ Are they open-source?

zerollzeng avatar Sep 18 '22 14:09 zerollzeng

@haitong , The fused kernels are not open sourced since it has internal tool chain dependency, we just encode the raw cubin in the github. Only the unfused implementation are available in github. Thanks!

ttyio avatar Sep 19 '22 00:09 ttyio

Closing since no activity for more than 3 weeks, please reopen if you still have question, thanks!

ttyio avatar Nov 01 '22 02:11 ttyio