Tag: Programming

Programming Wisdom #1

Programming Wisdom #1

Measuring programming progress by lines of code is like measuring aircraft building progress by weight. – Bill Gates

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]);…