M

Mr. Dubey • 87.94K Points
Coach

Q. If variable a is host variable and dev_a is a device (GPU) variable, to copy input from variable a to variable dev_a select correct statement:

(A) memcpy( dev_a, &a, size);
(B) cudamemcpy( dev_a, &a, size, cudamemcpyhosttodevice );
(C) memcpy( (void*) dev_a, &a, size);
(D) cudamemcpy( (void*) &dev_a, &a, size, cudamemcpydevicetohost );
Share

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics