Skip to content

Diffusion in a 3D grid #778

Answered by mondus
isolin asked this question in Q&A
Jan 31, 2022 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @isolin . Thanks for using FLAME GPU and happy to answer your questions. It sounds like an interesting model.

  1. You are right in that divergence is not great for GPUs. Divergence is much worse when it requires a data movement. FLAME GPU 2 tries to hides the impact of certain divergent behaviours such as boundary conditions through the message implementations. E.g. MessageArray3D is not wrapped so message reads from edge positions will return fewer messages (see next point about use of message gathers). This avoids the need for you to implement conditions. The implementation behind the scenes will of course have some compromises regarding divergence. The implementation inside the simulat…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by isolin
Comment options

You must be logged in to vote
1 reply
@Robadob
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants