Integrated the memory affinity settings into charm++