Skip to content

Source files of header only libraries aren't added to nix sandbox when added with include #440

@martinloretzzz

Description

@martinloretzzz

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions