openmp support more and fix sum bugs