add openmp to support parallel tps wrapping