Skip to content

imxiaohui/PyOpenCL-Tutorial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyOpenCL Inline Comments Tutorial (In Progress)

This tutorial is an introduction to parallel programming with Python and OpenCL. The lessons in the tutorial are numbered PyOpenCL scripts with extensive inline comments.

About The Comments

This tutorial is an experiment in code education. The idea is that commenting each line will force the author to slow down and use plain english to explain every detail in a way that a diligent reader can understand.

I have tried to write the code and the comments in a way that they could be separated and each one would still tell the complete story of what is going on. With two sources of information, hopefully readers will seldom have to break focus and look something up.

About The Tutorial

PyOpenCL is a tool that is worth learning. Python allows exceptional clarity-of-expression while OpenCL provides access to all the power modern hardware can deliver. Together these two languages are like a double-bladed lightsaber in a world full of butter knives.

Index (Completed Lessons)

  • 010 Introspection - Find out about your computer's OpenCL situation
  • 020 Array Sum - Use OpenCL To Add Two Large Random Arrays - Hiding Details
  • 021 Array Sum - Use OpenCL To Add Two Large Random Arrays - Showing Details

About

A Narrative of PyOpenCL Examples (In Progress)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published