Example of CUDA code I wrote for HOOMD-Blue (implementation of a harmonic dihedral potential)