D Question 20 3 pts We are preparing our first CUDA "Hello World!" application inside "helloworld.cu". Here, our kernel
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
D Question 20 3 pts We are preparing our first CUDA "Hello World!" application inside "helloworld.cu". Here, our kernel
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!