Git Product home page Git Product logo

omp4simd's Introduction

Evaluation of OpenMP 4 SIMD Directives on Xeon Phi Coprocessors

Introduction

This repository contains the source code for all the benchmarks used in the study as well as the scripts utilized for the results gathering.

Download

Two different versions of the codes can be found under releases:

Compilation

After downloading the appropiate version of the codes, a configuration needs to be used. Replace the config.make configuration with one of the configuration templates from the configs folder, and adapt it to your needs. Lastly, run make to generate the binary files.

$ cd omp4simd
$ cp configs/config.autovec config.make
$ vi config.make
$ make

Usage

You can either copy the generated binaries onto the Intel Xeon Phi and manually execute them or use the scripts included in the src/scripts folder to automatice execution and result gathering.

Scripts requirements:

  • screen needs to be installed on your system.
  • Public key authentication is also necessary when connecting to the Intel MIC through ssh.
  • Definitions adaptation inside runmic.sh.

Given the correct arguments, runmic.sh executes all the programs contained on the specified folder in the device with the given address, using the amount of threads requested. Each program execution is repeated several times, and its runtime is averaged for a better overview of the results. They are obtained in a csv file under the results folder. The usage is as follows: ./runmic.sh <address> <path to program folder> <path to results folder> <thread number> <repetitions per program> [label]. You can check wether the execution is still in progress by running screen -ls.

$ cd omp4simd
$ src/scripts/runmic.sh 0.0.0.0 bin/ results/ 180 10 "default execution"
$ screen -ls
Definitions

runmic.sh

# MIC libraries path
LIB_PATH=path_to_the_intel_mic_libraries
# Task script
TASK=path_to_task.sh_script

task.sh

# Scratch directory
SCRATCH_DIR=path_to_scratch_directory

Help

For questions, suggestions or problems please use the Issues tab here.

Licensing

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

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.