Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ZzEeKkAa opened this issue Nov 3, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ZzEeKkAa
Copy link
Contributor

ZzEeKkAa commented Nov 3, 2023

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 ZzEeKkAa self-assigned this Nov 3, 2023
@ZzEeKkAa ZzEeKkAa changed the title [testing ] Implement cli tool to generate llvm ir for kernels without running them [testing] Implement cli tool to generate llvm ir for kernels without running them Nov 3, 2023
@ZzEeKkAa ZzEeKkAa changed the title [testing] Implement cli tool to generate llvm ir for kernels without running them [testing] Implement cli tool to generate llvm IR for kernels without running them Nov 3, 2023
@diptorupd
Copy link
Contributor

@ZzEeKkAa take a look at

def test_compilation_as_literal_constant():
.

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 diptorupd added the enhancement New feature or request label Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants