Hands-On-GPU-Programming-with-Python-and-CUDA

所属分类:GPU/显卡
开发工具:Python
文件大小:136KB
下载次数:0
上传日期:2023-01-18 09:24:53
上 传 者sh-1993
说明:  使用Python和CUDA进行GPU编程,Packt出版
(Hands-On GPU Programming with Python and CUDA, published by Packt)

文件列表:
Chapter01 (0, 2023-01-18)
Chapter01\mandelbrot0.py (1520, 2023-01-18)
Chapter02 (0, 2023-01-18)
Chapter02\launch-python-cuda-environment.bat (494, 2023-01-18)
Chapter03 (0, 2023-01-18)
Chapter03\deviceQuery.py (1672, 2023-01-18)
Chapter03\gpu_mandelbrot0.py (2047, 2023-01-18)
Chapter03\simple_element_kernel_example0.py (928, 2023-01-18)
Chapter03\simple_scankernel0.py (284, 2023-01-18)
Chapter03\simple_scankernel1.py (325, 2023-01-18)
Chapter03\time_calc0.py (593, 2023-01-18)
Chapter04 (0, 2023-01-18)
Chapter04\conway_gpu.py (2933, 2023-01-18)
Chapter04\conway_gpu_syncthreads.py (2684, 2023-01-18)
Chapter04\conway_gpu_syncthreads_shared.py (3110, 2023-01-18)
Chapter04\naive_prefix.py (1321, 2023-01-18)
Chapter04\simple_scalar_multiply_kernel.py (702, 2023-01-18)
Chapter04\work-efficient_prefix.py (2953, 2023-01-18)
Chapter05 (0, 2023-01-18)
Chapter05\conway_gpu_streams.py (3490, 2023-01-18)
Chapter05\gpu_mandelbrot_context_sync.py (2225, 2023-01-18)
Chapter05\multi-kernel.py (1267, 2023-01-18)
Chapter05\multi-kernel_events.py (1887, 2023-01-18)
Chapter05\multi-kernel_multi-thread.py (1952, 2023-01-18)
Chapter05\multi-kernel_streams.py (1409, 2023-01-18)
Chapter05\simple_context_create.py (199, 2023-01-18)
Chapter05\simple_event_example.py (1125, 2023-01-18)
Chapter05\single_thread_example.py (544, 2023-01-18)
Chapter06 (0, 2023-01-18)
Chapter06\broken_matrix_ker.py (2313, 2023-01-18)
Chapter06\divergence_test.cu (383, 2023-01-18)
Chapter06\hello-world_gpu.py (632, 2023-01-18)
Chapter06\matrix_ker.cu (3371, 2023-01-18)
Chapter06\matrix_ker.py (1412, 2023-01-18)
Chapter07 (0, 2023-01-18)
Chapter07\akshada.jpg (84338, 2023-01-18)
Chapter07\conv_2d.py (2610, 2023-01-18)
Chapter07\cublas_gemm_flops.py (1218, 2023-01-18)
Chapter08 (0, 2023-01-18)
... ...

# Hands-On GPU Programming with Python and CUDA Hands-On GPU Programming with Python and CUDA This is the code repository for [Hands-On GPU Programming with Python and CUDA](https://www.packtpub.com/application-development/hands-gpu-programming-python-and-cuda?utm_source=github&utm_medium=repository&utm_campaign=9781788993913 ), published by Packt. **Explore high-performance parallel computing with CUDA** ## What is this book about? Hands-On GPU Programming with Python and CUDA hits the ground running: you’ll start by learning how to apply Amdahl’s Law, use a code profiler to identify bottlenecks in your Python code, and set up an appropriate GPU programming environment. You’ll then see how to “query” the GPU’s features and copy arrays of data to and from the GPU’s own memory. This book covers the following exciting features: * Launch GPU code directly from Python * Write effective and efficient GPU kernels and device functions * Use libraries such as cuFFT, cuBLAS, and cuSolver * Debug and profile your code with Nsight and Visual Profiler * Apply GPU programming to datascience problems * Build a GPU-based deep neuralnetwork from scratch * Explore advanced GPU hardware features, such as warp shuffling If you feel this book is for you, get your [copy](https://www.amazon.com/dp/1788993918) today! https://www.packtpub.com/ ## Instructions and Navigations All of the code is organized into folders. For example, Chapter02. The code will look like the following: ``` cublas.cublasDestroy(handle) print 'cuBLAS returned the correct value: %s' % np.allclose(np.dot(A,x), y_gpu.get()) ``` **Following is what you need for this book:** Hands-On GPU Programming with Python and CUDA is for developers and data scientists who want to learn the basics of effective GPU programming to improve performance using Python code. You should have an understanding of first-year college or university-level engineering mathematics and physics, and have some experience with Python as well as in any C-based programming language such as C, C++, Go, or Java. With the following software and hardware list you can run all code files present in the book (Chapter 1-12). ### Software and Hardware List | Chapter | Software required | OS required | | -------- | ------------------------------------ | ----------------------------------- | | 1-11 | Anaconda 5 (Python 2.7 version) | Windows, Linux | | 2-11 | CUDA 9.2, CUDA 10.x | Windows, Linux | | 2-11 | PyCUDA (latest) | Windows, Linux | | 7 | Scikit-CUDA (latest) | Windows, Linux | | 2-11 | Visual Studio Community 2015 | Windows | | 2-11 | GCC, GDB, Eclipse | Linux | | Chapter | Hardware required | OS required | | -------- | ------------------------------------ | ----------------------------------- | | 1-11 | ***-bit Intel/AMD PC | Windows, Linux | | 1-11 | 4 Gigabytes RAM | Windows, Linux | | 2-11 | NVIDIA GPU (GTX 1050 or better) | Windows, Linux | We also provide a PDF file that has color images of the screenshots/diagrams used in this book. [Click here to download it](https://www.packtpub.com/sites/default/files/downloads/9781788993913_ColorImages.pdf). ### Related products * Hands-On GPU-Accelerated Computer Vision with OpenCV and CUDA [[Packt]](https://www.packtpub.com/application-development/hands-gpu-accelerated-computer-vision-opencv-and-cuda?utm_source=github&utm_medium=repository&utm_campaign=9781789348293 ) [[Amazon]](https://www.amazon.com/dp/1789348293) * OpenCV 3 Computer Vision with Python Cookbook [[Packt]](https://www.packtpub.com/application-development/opencv-3-computer-vision-python-cookbook?utm_source=github&utm_medium=repository&utm_campaign=9781788474443 ) [[Amazon]](https://www.amazon.com/dp/1788474449) ## Get to Know the Author **Dr Brian Tuomanen** has been working with CUDA and general-purpose GPU programming since 2014. He received his bachelor of science in electrical engineering from the University of Washington in Seattle, and briefly worked as a software engineer before switching to mathematics for graduate school. He completed his PhD in mathematics at the University of Missouri in Columbia, where he first encountered GPU programming as a means for studying scientific problems. Dr. Tuomanen has spoken at the US Army Research Lab about general-purpose GPU programming and has recently led GPU integration and development at a Maryland-based start-up company. He currently works as a machine learning specialist (Azure CSI) for Microsoft in the Seattle area. ### Suggestions and Feedback [Click here](https://docs.google.com/forms/d/e/1FAIpQLSdy7dATC6QmEL81FIUuymZ0Wy9vH1jHkvpY57OiMeKGqib_Ow/viewform) if you have any feedback or suggestions. ### Download a free PDF If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781788993913


近期下载者

相关文件


收藏者