For a CPU kernel I wanted to use Eigen, a header only library for linear algebra. Only including it with include in the build.toml doesn't work, I only got it working after adding all 431 header files to the src. Expected behavior would be that all files are included in paths I add as include.
Setup that works now:
[kernel.kernel_cpu]
backend = "cpu"
depends = ["torch"]
include = ["kernel_cpu/external/"]
src = ["kernel_cpu/kernel_cpu.cpp", 'kernel_cpu/external/Eigen/UmfPackSupport', 'kernel_cpu/external/Eigen/IterativeLinearSolvers', ... 421 more]
For a CPU kernel I wanted to use Eigen, a header only library for linear algebra. Only including it with
includein the build.toml doesn't work, I only got it working after adding all 431 header files to thesrc. Expected behavior would be that all files are included in paths I add asinclude.Setup that works now: