Some code snippets from my CUDA Parallel programming