Code Monkey home page Code Monkey logo

parallelization's Introduction

parallelization

Examples of parallelization for GPU with OpenCL as well as for CPU using pthreads and OpenMP. Homework for Parallel Systems course at the University of Ljubljana, Faculty of Computer and Information Science in 2016. Written in C++.

OpenCL

Two examples parallelized for a GPU using OpenCL. OpenCL is a framework for writing programs that execute across heterogeneous platforms. It allows developers to write kernels that can be computed in parallel on a GPU.

  • MandelbrotSet: draws and calculates the surface area of the Mandelbrot set. A pgm.h file contains a library to write the grayscale image.
  • histogram: calculates a histogram from random data. There are two versions: one that uses only global memory and another that also uses the local memory (registers) of the GPU. The latter version proves to be faster as we compute parts of histograms locally and thus avoid most of the unaligned global memory access which slows the performance.

pthreads

Parallelization of a bubble sort algorithm for multiple threads on a CPU. Included library Pthreads-win32 is an Open Source Software implementation of the Threads POSIX execution model.

OpenMP

A parallelisation of Gaussian elimination. Tested on the XeonPhi manycore processor. The OpenMP API supports multi-platform shared-memory parallel programming.

parallelization's People

Contributors

ia6382 avatar

Watchers

 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.