Link to home
Start Free TrialLog in
Avatar of Aaeshah
Aaeshah

asked on

CUDA : Array Mean

I am new in CUDA programming I would like to know how to write a kernel that  compute the average of array with 32 elements ?
Avatar of Aaeshah
Aaeshah

ASKER

I edit the question to be more direct !!!
Please look into CUDA SDK samples.
Adding 32 elements of a vector should present no challenge for 12MHz 8086. You will spend much more time on initializing CUDA than operation takes inlined on normal CPU.
You may try C++ offload, that should confirm indeed that CUDA is operational.
ASKER CERTIFIED SOLUTION
Avatar of sarabande
sarabande
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial