Skip to content

Support reading preprocessor definitions from a file #116

@eyalroz

Description

@eyalroz

It may be convenient if whatever code is used to prepare inputs for the gpu-kernel-runner would not have to rely on generation of command-line options which define values this way or the other. Instead, we should allow for files with syntax like:

FOO
BAR=baz
QUUX=123

and so on, where each line is a definition. Then, in the command-like, instead of:

-DFOO -DBAR=baz -DQUUX=123

we'll just write

--definitions-file defs.txt

with defs.txt containing the three lines above.

Of course, if we do that, we might also need to support --undefined to exclude definitions from that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions