only compile function in the SMP case