Adding shared mem usage
Adding shared mem usage

(cherry picked from commit fd9abb0)

(cherry picked from commit e92c90a)

(cherry picked from commit c041edc)

mjost5v/belief-propagation,mjost5v/belief-propagation,mjost5v/belief-propagation,mjost5v/belief-propagation