You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tmbartol edited this page Feb 11, 2016
·
1 revision
Global State Update
For counters etc...
Keep a per-thread hash map of memory to update & value to apply
A serial thread then applies the updates
Output files etc... is performed in serial thread
Proceed to next iteration in parallel...
One RNG per memory subdivision
"TRIGGER" output is spooled & output using global file lock or from serial thread with no lock
Que of Runnable Work Units
"runnable" is defined as:
work left to do
& not adjacent to work unit in process
& 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
Issue 1: Some walls span multiple memory subdivisions -- should these be hard-locked?
Perhaps we could subdivide the triangles using barycentric subdivision, automagically
This issue only results in a performance problem due to cache-line contention.
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.
Make sure complexes are less than one subdivision wide (tile-wise & r_int_wise). Be conservative!