OS independent CUDA code

Hi everyone, I would just like to ask if it is possible that I write a CUDA code and then compile it in such a way that it would run OS independent? Is there anyway to make it compatible to both Windows and Linux? Thanks!