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

Add offline compiler #284

Open
vosen opened this issue Oct 13, 2024 · 0 comments
Open

Add offline compiler #284

vosen opened this issue Oct 13, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@vosen
Copy link
Owner

vosen commented Oct 13, 2024

Expected outcome:
A new subproject in ZLUDA: a command line tool zoc.exe (ZLUDA offline compiler) that compiles PTX to the final binary and saves it to disk along with intermediate formats

Comments:

  • It's a developer's tool, we don't expect it to be used by the end-users
  • For consistency with related projects (https://github.com/vosen/ptx_tests) it should use bpaf for command line (https://crates.io/crates/bpaf)
  • It should take PTX and emit
    • Pre-linked LLVM bitcode texts (.ll)
    • Post-linking LLVM bitcode text (.ll) (optional if difficult)
    • Final ELF binary (.elf)
    • Disassembly of the final ELF binary (.asm) (optional if difficult)
  • For implementation, look at how ZLUDA uses comgr and refactor it to save intermediates
@vosen vosen added the help wanted Extra attention is needed label Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant