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

Cleaned up CUDAEnv/Flow.jl and fixed allowscalar in tests. Fixed BCs too. #41

Merged
merged 3 commits into from
Apr 7, 2023

Conversation

b-fg
Copy link
Member

@b-fg b-fg commented Apr 4, 2023

CUDAEnv/Flow.jl now uses the |>f notation to create CPU or GPU fields. f should be identity for CPU or cu for GPU.
It also uses the new apply! when creating the structs.

I also fixed the allowscalar notation in tests, and this should be the recommended way to do so according to the docs.

…U or GPU arrays.

It also uses the new apply! with @loop.
Fixed allowscalar in tests. According to the docs, this is the correct way to do lines/block allowscalar stuff.
@b-fg b-fg changed the title Cleaned up CUDAEnv/Flow.jl and fixed allowscalar in tests Cleaned up CUDAEnv/Flow.jl and fixed allowscalar in tests. Fixed BCs too. Apr 6, 2023
b-fg added 2 commits April 6, 2023 20:35
Cleaned up CUDAEnv/Flow.jl and removed CUDAEnv/bcs.jl, since the latter is already in utils.jl and tested.
Added OutMacro.jl package as extra since it is useful for debugging.
These still fail in GPU since L2 function in utils.jl is indexing.
Tests for utils.jl are all passing.
@weymouth weymouth merged commit 01ae2fb into WaterLily-jl:CUDA Apr 7, 2023
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.

2 participants