Upgrading my scripts from CUDA 5.0 to CUDA 8.0+

I have a mini project that was compatible with CUDA 5.0 is there anyway i could upgrade the same to work with CUDA 8.0+ as its really hard to run the old script now as most of the machines are upgraded.Please let me know if any alternatives for the same ?