Solved

If Variable a Is Host Variable and Dev_a Is a Device

Question 23

Multiple Choice

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 ) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents