Skip to content

Is there anyway to compute how much memory will be used in GPU? #5072

Closed Answered by ax3l
zhazhajust asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @zhazhajust,

While this depends on the exact simulation parameters, you can estimate the basic parameters by using 9+ (x,y,z,w,px,py,pz,cpuid, ...) doubles (8 byte each) per particle, and 9+ doubles (E,B,j, ...) per cell for the basic EM PIC algorithm.

Then, any additional attributes (e.g., ionization, QED) or algorithms (e.g., PSATD) add to those.

We then need some temporary memory, e.g., to sort particles or communicate them (select, copy, put back in data structures on a different node), etc. Depending on details, that is 1.5-2.5x overhead.

@n01r is trying to give a basic estimate with his calculator in
#3296
as well, which we try to merge to allow simpler estimates.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ax3l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested component: core Core WarpX functionality
2 participants