Hands-On GPU Programming with Python and CUDA by Dr. Brian Tuomanen

Hands-On GPU Programming with Python and CUDA by Dr. Brian Tuomanen

Author:Dr. Brian Tuomanen [Dr. Brian Tuomanen]
Language: eng
Format: epub
Tags: COM051360 - COMPUTERS / Programming Languages / Python, COM051220 - COMPUTERS / Programming / Parallel, COM048000 - COMPUTERS / Systems Architecture / Distributed Systems and Computing
Publisher: Packt
Published: 2018-11-27T09:52:17+00:00


Now, we can check the values for a different thread by again going to the CUDA tab, choosing the appropriate thread, and switching back. Let's stay in the same block, but choose thread (1, 0, 0) this time, and check the value of row again:

We see that the value of row is now 1, as we expect.

We now have the basics of how to debug a CUDA program from Nsight/Eclipse in Linux, and we can use all of the regular conventions as you would for debugging a regular Linux program as with any other IDE (setting breakpoints, starting the debugger, continue/resume, step over, step in, and step out). Namely, the main difference here is we have to know how to switch between CUDA threads and blocks to check variables, otherwise, it's pretty much the same.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.