Library for tuning for Non Uniform Memory Access machines