Shared Code
main.cu
123456789101112131415
#include <stdio.h> // hello from GPU kernel __global__ void helloFromGPU(void) { printf("Hello World from GPU! \n"); } int main(void) { // hello from gpu helloFromGPU <<<1, 10>>>(); cudaDeviceReset(); return 0; }
Comments (0)
to post comments and vote
No comments yet. Be the first to share your thoughts!