Skip to content

Notes on SMP Parallel MCell

tmbartol edited this page Feb 11, 2016 · 1 revision
  1. Global State Update

For counters etc...

  1. Keep a per-thread hash map of memory to update & value to apply

  2. A serial thread then applies the updates

  3. Output files etc... is performed in serial thread

  4. Proceed to next iteration in parallel...

  5. One RNG per memory subdivision

  6. "TRIGGER" output is spooled & output using global file lock or from serial thread with no lock

  7. Que of Runnable Work Units "runnable" is defined as:

  8. work left to do

  9. & not adjacent to work unit in process

  10. & not adjacent to one adjacent to a unit in process

Soft locks apply to adjacent units not in process

pthread condition variable to control sleep & run states of each thread

  1. Issue 1: Some walls span multiple memory subdivisions -- should these be hard-locked?

    1. Perhaps we could subdivide the triangles using barycentric subdivision, automagically
    2. This issue only results in a performance problem due to cache-line contention.
  2. Surface diffusion doesn't work due to diffusion spanning multiple walls. So we need a way to move incrementally & scheduled like we do for volume molecules.

  3. Make sure complexes are less than one subdivision wide (tile-wise & r_int_wise). Be conservative!

Clone this wiki locally