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

New Accelerators: NATIVE, Metal, and placeholders for CUDA, LLVM, WebGPU #380

Merged
merged 28 commits into from
Dec 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ready
  • Loading branch information
hikettei committed Dec 30, 2024
commit 0ffc62b28a6579981b814ec67ca35d3419c6f07c
4 changes: 2 additions & 2 deletions source/byoc/lisp.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
(macrolet ((def (id op &optional (offset 0))
`(defmethod %render-node ((renderer LispStyle-Renderer) (id (eql ,id)) node)
(let ((lhs (render-node renderer (nth ,(+ 0 offset) (node-reads node))))
(rhs (render-node renderer (nth ,(+ 1 offset) (node-rgeads node)))))
(rhs (render-node renderer (nth ,(+ 1 offset) (node-reads node)))))
(list ',op lhs rhs)))))
(def :ADD +)
(def :MUL *)
Expand Down Expand Up @@ -144,7 +144,7 @@
(assert endfor () "recursive-render-bp: :FOR without :ENDFOR is not allowed. Malformed blueprint?")
(when (eql (getattr bp :scope) :global)
(warn "LispStyle-Renderer: global loop is not supported yet."))
;; [TODO] Simplify the loop code and use lparallel
;; [TODO] Simplify the loop code and to use lparallel
`(progn
(loop with ,(intern (getattr bp :idx)) fixnum = ,(render-expr 'LispStyle-Renderer (getattr bp :upfrom))
while ,(render-expr 'LispStyle-Renderer (getattr bp :below))
Expand Down