Example: barber
CUDA C/C++ Basics - Nvidia

CUDA C/C++ Basics - Nvidia

Back to document page

A simple kernel to add two integers __global__ void add(int *a, int *b, int *c) { *c = *a + *b; } As before __global__ is a CUDA C/C++ keyword meaning add() will execute on the device add() will be called from the host

  Nvidia, Integre

Download CUDA C/C++ Basics - Nvidia


Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Related search queries