Solved

If Variable a Is Host Variable and Dev_a Is a Device

Question 15

Multiple Choice

If variable a is host variable and dev_a is a device (GPU) variable, to allocate memory to dev_a select correct statement:


A) cudamalloc( &dev_a, sizeof( int ) )
B) malloc( &dev_a, sizeof( int ) )
C) cudamalloc( (void**) &dev_a, sizeof( int ) )
D) malloc( (void**) &dev_a, sizeof( int ) )

Correct Answer:

verifed

Verified

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

Related Questions