increase memory when switch to openmp mode