πŸ“Š High Performance Computing
Q. 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; }
πŸ’¬ Discuss
βœ… Correct Answer: (B) __global__ void kernel( void ) { } int main ( void ) { kernel <<<1,1>>>(); printf("hello, world!\\n"); return 0; }

You must be Logged in to update hint/solution

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
796
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
95%
Success Rate