Modify the srmhd_c2p library to be thread safe and use OMP over it