Tag: Cuda C

Hello World! in Cuda C

Hello World! example using Cuda C. #include <stdio.h> __device__ const char *STR = “HELLO WORLD!”; const char STR_LENGTH = 12; __global__ void hello() { printf(“%cn”, STR[threadIdx.x % STR_LENGTH]);…