Skip to content

Support ptr plus scalar PTODSL JIT entries#4

Closed
jimmychou0 wants to merge 25 commits into
Zhendong404:pto-dsl-implfrom
jimmychou0:codex/issue417-ptr-entry
Closed

Support ptr plus scalar PTODSL JIT entries#4
jimmychou0 wants to merge 25 commits into
Zhendong404:pto-dsl-implfrom
jimmychou0:codex/issue417-ptr-entry

Conversation

@jimmychou0
Copy link
Copy Markdown

Summary

  • allow public @pto.jit entries to use GM pto.ptr(...) device pointers alongside runtime scalar parameters
  • cast runtime integer shape/stride operands to index in make_tensor_view
  • make launch codegen/ctypes scalar type resolution work without an active MLIR context
  • document the issue 417 analysis and implementation plan

Validation

  • dev-481211: ptodsl_jit_compile.py, ptodsl_jit_diagnostics.py
  • A5 /root/zjm/issue417_ptr_entry_a5: frontend tests plus ptoas 0.39 --pto-arch=a5
  • A3 ~/zjm/issue417_ptr_entry_a3: frontend tests plus ptoas 0.39 --pto-arch=a3

Draft while the ptr-entry API shape and compatibility policy are reviewed.

@Zhendong404 Zhendong404 force-pushed the pto-dsl-impl branch 5 times, most recently from 8ee234c to 83a9f18 Compare May 28, 2026 07:25
@jimmychou0 jimmychou0 closed this May 28, 2026
@jimmychou0 jimmychou0 deleted the codex/issue417-ptr-entry branch May 28, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants