官术网_书友最值得收藏!

Preface

Greetings and salutations! This text is an introductory guide to GPU programming with Python and CUDA. GPU may stand for Graphics Programming Unit, but we should be clear that this book is not about graphics programming—it is essentially an introduction to General-Purpose GPU Programming, or GPGPU Programming for short. Over the last decade, it has become clear that GPUs are well suited for computations besides rendering graphics, particularly for parallel computations that require a great deal of computational throughput. To this end, NVIDIA released the CUDA Toolkit, which has made the world of GPGPU programming all the more accessible to just about anyone with some C programming knowledge.

The aim of Hands-On GPU Programming with Python and CUDA is to get you started in the world of GPGPU programming as quickly as possible. We have strived to come up with fun and interesting examples and exercises for each chapter; in particular, we encourage you to type in these examples and run them from your favorite Python environment as you go along (Spyder, Jupyter, and PyCharm are all suitable choices). This way, you will eventually learn all of the requisite functions and commands, as well as gain an intuition of how a GPGPU program should be written.

Initially, GPGPU parallel programming seems very complex and daunting, especially if you've only done CPU programming in the past. There are so many new concepts and conventions you have to learn that it may seem like you're starting all over again at zero. During these times, you'll have to have some faith that your efforts to learn this field are not for naught. With a little bit of initiative and discipline, this subject will seem like second nature to you by the time you reach the end of the text.

Happy programming!

主站蜘蛛池模板: 营山县| 广西| 贡山| 兖州市| 竹溪县| 仁寿县| 星子县| 连南| 东台市| 大新县| 永吉县| 措勤县| 永修县| 合肥市| 封丘县| 郁南县| 同德县| 栾城县| 丰县| 山东省| 泌阳县| 黄冈市| 安化县| 通州市| 湖北省| 莱州市| 海原县| 灌云县| 琼海市| 霍州市| 长宁县| 西吉县| 长武县| 托克逊县| 广平县| 县级市| 类乌齐县| 阳泉市| 浦城县| 化州市| 临沭县|