-
Notifications
You must be signed in to change notification settings - Fork 14
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
Smaller compiler refactoring #240
Conversation
src/simulation.jl
Outdated
throw(AmbiguousNameException(s, found_names_idxs)) | ||
end | ||
|
||
if is_all_literals | ||
push!(stmts.args, :($s = $(parse(stateeltype, String(s))))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this is still creating assignments for literals.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that's right. I just forgot to move the comment up with it.
I think GitHub actions is having some trouble but I'll rerun the actions later and then this should be ready for review. |
Test Summary: | Pass Total Time
CUDA | 9 9 4m01.0s
Testing Decapodes tests passed
shell> git log -1
commit 3ad6cd0e6a12b775d562d9b91d92f1e95b23cd3a (HEAD -> gr/prep-compiler, origin/gr/prep-compiler)
Author: GeorgeR227 <78235421+GeorgeR227@users.noreply.github.com>
Date: Tue Jun 11 16:41:39 2024 -0400
Final cleanup |
This backend will be inherited by user defined code targets, allowing for users to only replaces the hooks they want.
Also more exceptions
Issue comes from the fact that composing decapodes with the same literals copies them separately, so they're not unique in name.
This reverts commit 7a232c8.
Also add better typing to CUDAExt
This gets rid of default values in lower level compiling functions to reduce the possibility of errors caused by not passing in all arguments.
More tests!
3ad6cd0
to
92d2cff
Compare
This PR is meant to clean up the compiler to ready it for larger refactors to come.