Equivalent of THCAtomics.cuh in c++ torch

Hi,
I am looking for the equivalent of THCAtomics.cuh in the ATen/src/TH folder and I cannot find it. I want to port a program written in CUDA to C/C++ to be used in CPU and I need the functionality of THCAtomics.cuh. Can someone help?