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

Smaller compiler refactoring #240

Merged
merged 22 commits into from
Jun 13, 2024
Merged

Smaller compiler refactoring #240

merged 22 commits into from
Jun 13, 2024

Conversation

GeorgeR227
Copy link
Collaborator

This PR is meant to clean up the compiler to ready it for larger refactors to come.

throw(AmbiguousNameException(s, found_names_idxs))
end

if is_all_literals
push!(stmts.args, :($s = $(parse(stateeltype, String(s)))))
Copy link
Member

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.

Copy link
Collaborator Author

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.

@GeorgeR227
Copy link
Collaborator Author

I think GitHub actions is having some trouble but I'll rerun the actions later and then this should be ready for review.

@GeorgeR227
Copy link
Collaborator Author

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

@GeorgeR227 GeorgeR227 requested a review from jpfairbanks June 12, 2024 13:36
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.
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.
ext/DecapodesCUDAExt.jl Show resolved Hide resolved
src/operators.jl Show resolved Hide resolved
src/simulation.jl Outdated Show resolved Hide resolved
src/simulation.jl Show resolved Hide resolved
src/simulation.jl Show resolved Hide resolved
src/simulation.jl Outdated Show resolved Hide resolved
src/simulation.jl Outdated Show resolved Hide resolved
src/simulation.jl Outdated Show resolved Hide resolved
src/simulation.jl Outdated Show resolved Hide resolved
test/simulation_core.jl Show resolved Hide resolved
@GeorgeR227 GeorgeR227 merged commit 7738216 into main Jun 13, 2024
7 of 8 checks passed
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.

3 participants