Need help for cuda begginer Incrementing array example on linux

I am just started learning cuda. I need simple examples to understand programs. Could you give give me simple programs like incrementing an array or square first n numbers or find the sum of first n numbers

So that i could understand how to write .cu .cpp files I saw the programs in sdk they were hard to understand.

also i need instructions how to execute it on linux

Please help i am desperate to learn cuda, your reply is very valuable to me. thanks for your time

The SDK is your best friend :) well the programming guide also :)

You can probably start with the reduction or MatrixMul samples

eyal

The SDK is your best friend :) well the programming guide also :)

You can probably start with the reduction or MatrixMul samples

eyal