src: Move callback_event to cuda_sample
src: Check if the CUDA sample has been compiled before calling it