McqMate
Q. |
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 ) ) |
Answer» C. cudamalloc( (void**) &dev_a, sizeof( int ) ) |
View all MCQs in
High Performance Computing (HPC)No comments yet