Page 1 of 1

D Question 20 3 pts We are preparing our first CUDA "Hello World!" application inside "helloworld.cu". Here, our kernel

Posted: Sun May 15, 2022 1:10 pm
by answerhappygod
D Question 20 3 Pts We Are Preparing Our First Cuda Hello World Application Inside Helloworld Cu Here Our Kernel 1
D Question 20 3 Pts We Are Preparing Our First Cuda Hello World Application Inside Helloworld Cu Here Our Kernel 1 (40.53 KiB) Viewed 80 times
D Question 20 3 pts We are preparing our first CUDA "Hello World!" application inside "helloworld.cu". Here, our kernel prints a greetings message that includes the thread identifier. This way, we know that the GPU kernel is active and that our code works correctly: #include estdio.h> -_global_ void helloworld() int threadId = threadIdx, printf("Hello from the GPU My threadid it Id\n", threadId); ) int main(int argc, charang) int grid = 1; // 1 block in the grid int block - 32; // 32 threads per block helloworldcecgrid, block>>>> return; However, even though everything seems correct, we are struggling to see any output from the GPU. Is the example correct? True False