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 ?
C++Programming TheoryProgramming

Avatar of undefined
Last Comment
sarabande

8/22/2022 - Mon
Aaeshah

ASKER
I edit the question to be more direct !!!
gheist

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
sarabande

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck