example of how to use a cuda kernel