Giter Site home page Giter Site logo

memassist / slo-docker Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 29 KB

๐Ÿณ A Dockerized version of GCC-SLO (Suggestions for Locality Optimizations)

License: GNU General Public License v2.0

Dockerfile 70.17% Shell 29.83%
locality loop-optimization tiling loop-tiling loop-fusion cache-optimization cpu-cache code-analysis profiling

slo-docker's Introduction

Dockerized GCC-SLO ๐Ÿณ

(Suggestions for Locality Optimizations)

A Dockerized version of GCC-SLO for easy installation and usage.


build GitHub

GCC-SLO is a data locality profiler and SLO is a visualizer of the data analyzed by GCC-SLO. SLO suggests refactorings that can improve the data locality of an input program. The documentation of SLO can be found in slo.sourceforge.net.

Installation

Docker and Docker Compose should be installed in your system:

Then just pull the pre-built Docker image from GitHub Container Registry to install GCC-SLO:

docker pull ghcr.io/memassist/slo:latest

Getting started

The directory examples/example1/ contains an example input C program taken from the SLO Handbook to help you get started. example1 and its Makefile can be used as a template for your own projects. The structure of the Makefile is explained here: http://slo.sourceforge.net/dochtml/ch04s03.html. Follow the instructions below to start analyzing the example program using GCC-SLO.

  • Make sure you downloaded or cloned this repository and are inside the slo-docker directory.
git clone [email protected]:memassist/slo-docker.git
cd slo-docker
  • Start the slo Docker container:
docker-compose up -d
  • Start a bash shell in the container:
docker exec -it slo bash
  • From this shell, navigate to the example1 project directory:
cd ~/examples/example1
  • Use make to instrument the project, build it and perform dynamic analysis:
make clean
make

The file example1.slo.zip is generated after make finishes. Open this file with the SLO visualizer to view the results and the suggested refactorings.

References

For more information on SLO and how it works refer to:

Build the Docker image from source

Use the following steps to build the image from source instead of pulling the pre-built image.

  • Download or clone this repository, go into the slo-docker directory and build the image:
git clone [email protected]:memassist/slo-docker.git
cd slo-docker/slo
docker build -t ghcr.io/memassist/slo:latest --build-arg UID=1000 --build-arg GID=1000 .
cd ..

License

This project is licensed under the GPL-2.0 License - see the LICENSE file for details.

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.