add mcmc_cpu code