Giter VIP home page Giter VIP logo

Drew Afromsky's Projects

ask-fsdl icon ask-fsdl

Document Q&A over The Full Stack's Corpus

course icon course

The Hugging Face course on Transformers

cs249r_book icon cs249r_book

Collaborative book for CS249r: Tiny Machine Learning

made-with-ml icon made-with-ml

Learn how to design, develop, deploy and iterate on production-grade ML applications.

notebooks icon notebooks

Notebooks using the Hugging Face libraries 🤗

tiled-naive-2d-convolution-1-d-histogram-cuda-opencl icon tiled-naive-2d-convolution-1-d-histogram-cuda-opencl

2D convolution and 1D histogram calculation was performed in both CUDA and OpenCL. 2D convolution was implemented, taking advantage of both shared memory/tiles and global memory (naive methods). Tiled 2D convolution was performed in CUDA only. For naive 2D convolution, the input to the algorithm is an [M X N] matrix and a [K X K] kernel of odd dimension sizes. The output after convolution remained the same size as the input; zero padding was performed to take into account halo/ghost cells, when the kernel was ”acting” on ”non-existent” pixels/matrix elements. For the tiled 2D convolution, the kernel size was fixed: [5 x 5] to avoid dealing with dynamic memory allocation. For both methods, a serial implementation of 2D convolution was performed using scipy function (signal.convolve2D). Execution times for 2D convolution CUDA naive, 2D convolution CUDA tiled, and 2D convolution serial were recorded and plotted for comparison. Execution times for 2D convolution in OpenCL were compared to 2D convolution in serial and plotted as well. Matrices for both CUDA and OpenCL were initialized and iteratively increased in size in both dimensions by the same factor. Similarly, for 1D histogram calculation, execution times were recorded in both OpenCL and CUDA, and serial code, and then plotted and compared. One plot was created for CUDA versus serial. A second plot was created for OpenCL versus serial.

zenml icon zenml

ZenML 🙏: Build portable, production-ready MLOps pipelines. https://zenml.io.

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.