What is the equivalent of general C program with CUDA C:
Int main(void)
{
Printf("Hello, World!\n") ;
Return 0;
}
A) int main ( void )
{
Kernel <<<1,1>>>() ;
Printf("hello, world!\\n") ;
Return 0;
}
B) __global__ void kernel( void ) { }
Int main ( void ) { kernel <<<1,1>>>() ;
Printf("hello, world!\\n") ;
Return 0;
}
C) __global__ void kernel( void ) {
Kernel <<<1,1>>>() ;
Printf("hello, world!\\n") ;
Return 0;
}
D) __global__ int main ( void ) {
Kernel <<<1,1>>>() ;
Printf("hello, world!\\n") ;
Return 0;
}
Correct Answer:
Verified
Q14: The host processor spawns multithread tasks (or
Q15: The NVIDIA G80 is a ---- CUDA
Q16: NVIDIA 8-series GPUs offer -------- .
A)50-200 gflops
B)200-400
Q17: IADD, IMUL24, IMAD24, IMIN, IMAX are -----------
Q18: CUDA Hardware programming model supports:
A. fully generally
Q19: In CUDA memory model there are following
Q21: A simple kernel for adding two integers:
_global_
Q22: If variable a is host variable and
Q23: If variable a is host variable and
Q24: Triple angle brackets mark in a statement
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents