Skip to content

Expression Support (PR #215 rebased onto main) - #275

Closed
sshin23 wants to merge 3 commits into
mainfrom
expression-support
Closed

Expression Support (PR #215 rebased onto main)#275
sshin23 wants to merge 3 commits into
mainfrom
expression-support

Conversation

@sshin23

@sshin23 sshin23 commented Apr 18, 2026

Copy link
Copy Markdown
Member

Summary

  • Rebases expression support from PR Expression Support #215 (hfytr) onto current main
  • Adds @add_expr / add_expr / subexpr for pre-computed subexpressions cached across AD evaluations
  • Fixes merge artifacts: syntax errors in subexpr_test.jl, missing pars = gen.iter in add_con!, and AdjointNodeSource/SecondAdjointNodeSource single-arg calls updated to two-arg form

Test plan

  • CPU tests pass
  • Metal/GPU tests pass (AdjointNodeSource and pars fixes)
  • Documentation builds

🤖 Generated with Claude Code

sshin23 and others added 3 commits April 18, 2026 13:10
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…string quotes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- ext/ExaModelsKernelAbstractions.jl: update all kernel calls from
  AdjointNodeSource(x)/SecondAdjointNodeSource(x) to the two-argument
  form AdjointNodeSource(x, nothing)/SecondAdjointNodeSource(x, nothing)
  now required after PR #215 added the offset_exps field
- src/nlp.jl: add missing `pars = gen.iter` in add_con! (3-arg form)
  before the call to _add_con!, fixing UndefVarError at line 1199

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Your PR requires formatting changes to meet the project's style guidelines.

Please run:

julia --project=@runic -e 'using Pkg; Pkg.add("Runic")'
julia --project=@runic -e "using Runic; exit(Runic.main(ARGS))" -- --fix <files>

(or git runic main if you have the git wrapper installed)

Note: the full diff is omitted because it can exceed GitHub Actions input limits.

@sshin23 sshin23 closed this Apr 18, 2026
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.

1 participant