run on gpu or on cpu

hi,

How can I know if a cuda program is running on gpu and not on cpu?? the program is small.