Hi,
Maybe this is a strange question, but I’m using libtorch as a scientific computing library to directly interface with hardware. The ease-of-use c++ frontend really saved my life in many cases, especially when I need to use cuda to accelerate the program. However, it becomes very hard when I want to manually write some cuda processing codes to improve the performance.
Tensor Basics — PyTorch master documentation 2 is a good implication about what I’d like to do, but I don’t even know how to call those cuda kernels inside my c++ code or even compile them together. I’m a newbie in CUDA programming so and advice will be of great help!
The most related question is from Libtorch with pure cuda codes cannot compiled 1 but it no solution is provided. My platform is ubuntu2004.