numba-dpex icon indicating copy to clipboard operation
numba-dpex copied to clipboard

[testing] Implement cli tool to generate llvm IR for kernels without running them

Open ZzEeKkAa opened this issue 1 year ago • 1 comments

We want something like dpexcli compile -m <python module path> -n <kernel function name> -o <llvm output path> to generate llvm code of function without running it.

TODO:

  • think about passing arguments type

ZzEeKkAa avatar Nov 03 '23 16:11 ZzEeKkAa

@ZzEeKkAa take a look at https://github.com/IntelPython/numba-dpex/blob/8fc7fbddb2b73d80b98a0e629fddb6647aa456f8/numba_dpex/tests/experimental/codegen/test_intenum_literal_codegen.py#L15.

It is possible to only compile a kernel provided we generate the right signature. Perhaps a solution can be to have a CLI tool that takes a config file to spell out the signature and any extra compile flags.

diptorupd avatar Dec 13 '23 00:12 diptorupd