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

Implement linking #283

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

Implement linking #283

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:
Compiler exposes APIs that support cuLinkCreate, cuLinkAddData, cuLinkComplete. Enough support for linking PTX. No JIT options support is necessary.

Comments:

  • Explicit use of the host-side cuLink* is niche, the same functionality is more commonly used to compile certain fatbins.
  • While it's tempting to use LLVM built in linking support, it has subtly different semantics from PTX linking, so the linking has to be handled entirely by ZLUDA
  • Implementation should most likely be a pass either right after ptx has been normalized from text operands to integer identifiers, as the first pass or during the normalization. Old ZLUDA did this during the normalization pass, but it has proven cumbersome
@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