Git Product home page Git Product logo

lecture2's Introduction

Supplementary Material for Lectures

The PMPP Book: Programming Massively Parallel Processors: A Hands-on Approach (Amazon link)

Lecture 1

  • Profiling and Integrating CUDA kernels in PyTorch
  • Date: 2024-01-13, Speaker: Mark Saroufim
  • Notebook and slides in lecture1 folder

Lecture 2

  • Recap Ch. 1-3 from the PMPP book
  • Date: 2024-01-20, Speaker: Andreas Koepf
  • Slides: The powerpoint file lecture2/cuda_mode_lecture2.pptx can be found in the root directory of this repository. Alternatively here as Google docs presentation.
  • Examples: Please make sure PyTorch (2.1.2) and cuda-toolkit (nvcc compiler) are installed.
    • lecture2/vector_addition: Classic CUDA C example, to compile use make in the vector_addition directory.
    • lecture2/rgb_to_grayscale: Example uses PyTorch's torch.utils.cpp_extension.load_inline feature to compile a custom RGB to grayscale kernel and uses it to convert input image to grayscale and which is saved in as output.png. Run in the lecture2/rgb_to_grayscale folder python rgb_to_grayscale.py.
    • lecture2/mean_filter: This example also uses the PyTorch's cpp_extension.load_inline feature to compile a mean filter kernel. The kernel read pixel values in the surrounding (square area) of a pixel and computes the average value for each RGB channel individualy. The result is saved to output.png. Run in the lecture2/mean_filter folder python mean_filter.py.

Lecture 3

  • Title: Getting Started With CUDA
  • Date: 2024-01-27, Speaker: Jeremy Howard
  • Notebook: See the lecture3 folder, or run the Colab version

Lecture 4

  • Title: Intro to Compute and Memory Architecture
  • Date: 2024-02-03, Speaker: Thomas Viehmann
  • Notebook and slides in the lecture4 folder.

lecture2's People

Contributors

jph00 avatar andreaskoepf avatar keremturgutlu avatar msaroufim avatar t-vi avatar erjanmx avatar nichitadiaconu avatar lancerts avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.