cupla has no examples of how atomic functions or other device functions should be used. Please add more documentation.