Giter Club home page Giter Club logo

cellbe-compression's Introduction

CellBE-Compression

Lossy image compresion designed for the Cell Broadband Engine architecture.

PPU code:
The code running on the central PPU contains the compress_parallel and decompress_parallel functions, with similar implementation. The SPU structures that will be sent through DMA are alligned at 16 bytes and then the addresses are sent to the corresponding processing units through the mailbox. The image data is split into block-lines, sized BLOCK_SIZE * img_width. Each SPU receives a number of these block-lines for processing, and the first SPU receives less data in case the number of block-lines is not an even multiple of the number of SPUs.

SPU code:
The control structure address is obtained through mailbox and the actual values through DMA. Data processing is done on one block-line at a time, given the limited available memory of each SPU. There are 4 different functions that perform scalar compression/decompression and vectorial compression/decompression. Vectorial functions use native Cell vectors, effectively performing 4 simultaneous operations.

Performance analysis:
All tests have been performed on a CellBE emulator. A few observations after performing measurements:

  • the graph shape is identical, the image size is directly proportional to the computing time
  • for a large lumber of SPUs used, I/O impact becomes considerable
  • computing performance is doubled with adding two times as many SPUs The performance improvement is dramatic, with computing time reduced to 0.76s compared to the serial time of 10.25s. Taking into account I/O, total time has been reduced to 3.90s from 13.50s.

cellbe-compression's People

Contributors

razvancojocaru avatar

Watchers

 avatar  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.