Is the inclusion of `stdio.h` necessary for the CUDA code template? My guess is that it isn't. Removing this include should speed up compilation time. In fact, check if you need `stdlib.h`. (`malloc`,`free`, and `sizeof` live in `stdlib.h`.)