Solved

What Is the Equivalent of General C Program with CUDA

Question 2

Multiple Choice

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:

verifed

Verified

Related Questions