How to include cpp custom kernel to torch.compile?

Hello,
I have a specific hand-written cpp function used in my model.

Torch.compile fail to run due to this extension. how I can force torch compile to include the cpp hand-written kernel within my code ?