Showing posts with label Add two numbers in CUDA. Show all posts
Showing posts with label Add two numbers in CUDA. Show all posts

Friday, 17 July 2015

Vector Arithmetic Operations in CUDA

After learning how to perform addition of two numbers, the next step is to learn how to perform addition and subtraction of two Vectors. The only difference between these two programs is the memory required to store the two Vectors. Also the kernel functions to perform the task.

Sunday, 12 July 2015

Addition of two numbers in CUDA: A Simple Approach


Addition is the very Basic & one of the arithmetic operation. To perform it in C language is also a very easy and simple task. In this post, we will convert the C language code into a CUDA code. The steps to remember for writing a CUDA code for any program are as follows: