Coder Social home page Coder Social logo

synergy-models's Introduction

SYnergy Models

OS Requirements

These models have been tested on Ubuntu 20.04, 22.04, and RHEL 8.1.

Hardware Requirements

  • Single-node experiments: at least one NVIDIA GPU is required.
  • Multi-node experiments: a cluster with NVIDIA GPUs is required, equipped with the provided NVGPUFREQ SLURM plugin.

Software Requirements

  • DPC++ (Intel/LLVM) 2022-09
  • Clang and LLVM 15
  • CUDA Toolkit (tested with CUDA 11.8)
  • Python 3
    • Install with sudo apt install python3
    • Required packages: scikit-learn>=0.24, pandas, numpy, matplotlib, paretoset
      • Install with pip install "scikit-learn>=0.24" pandas numpy matplotlib paretoset
  • cmake 3.17 or later
    • Install with sudo apt install cmake
    • Alternatively, download the latest stable release
    • Check that cmake version is >= 3.17 using cmake --version

Required for launching the benchmarks on a cluster:

How to use this repository

This repository is divided in four directories:

  • passes, it contains the source code of the compiler passes used to extract the code features
  • training-dataset, it contains all the scripts required to generate the data on which the models are trained
  • modeling, it contains the modeling training script that can also be used to predict frequency values for new samples

First, the training dataset must be built. Instructions are in the training-dataset/ folder.

There are two scripts that must be used in the workflow, and reside in the root directory of the repository. The extract_features.sh script utilizes the LLVM pass in the passes folder to extract features from a target application.

  • The directory of the source code can be specified through the --dir command-line argument
  • Header files needed for the pass can be included through the --include command-line argument

Finally, the models can be used to predict the frequencies for each target. The predict.sh script contained in the modeling/ folder must be launched to do so. the predicted frequencies will be in the modeling/predictions/ folder.

synergy-models's People

Contributors

emdant avatar

Stargazers

Saleh avatar

Watchers

Biagio Cosenza 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.