Deep Learning, Machine Learning, Gpu, Cuda, AI.
using <<<...>>> notation: #include <stdio.h> // Kernel definition __global__ void AddTwoVectors(float A[], float B[], float C[]) { int i = threadIdx.x; C[i] = A[i] + B[i]; } int main() { ... // Kernel invocation with N threads AddTwoVectors<<<1, N>>>(A, B, C); ... } Each thread executes the kernel