Coder Social home page Coder Social logo

stencil3d's Introduction

stencil3d

Various (more or less) optimized and parallel C implementations of the same stencil kernel.

Compilation and execution

Source code can be compiled using GNU Make. A Makefile with several targets already exists, and you are free to add new targets and build your own recipes. Here is a list of all currently available compilation commands (assuming you are in the project's top directory) :

make all
make gcc_debug
make gcc_autovec
make clang_debug
make clang_autovec

Each target correspond to a specific compiler with specific options. Please make sure that these compilers are installed on your system and that all the options are supported by your compiler version. The make all command will build all the targets of the Makefile. At the end of the compilation process, the bin directory contains the output binaries, the asm directory contains the generated assembly codes, and the log directory contains log files (with a .comp suffix) containing all compilation logs. To clear the bin, asm and log directories, use the make clean command. To run one of the executable, just type :

./bin/executable_name kernel_name

where kernel_name is the name of the kernel. The available kernels are : base, inv_loop, inv_loop_onediv, inv_loop_onediv_tiled and inv_loop_onediv_omp. For more information about what each kernel does, please read the Doxygen documentation or the source code.

Automatic performance tests

To run the performance tests for all kernels of a given executable, use the launch_tests.sh script located at the project's root directory :

./launch_tests.sh /path/to/executable

This script uses the perf command-line tool to collect performance data. For more information on how to install and use the tool, please see the perf wiki. You may have to change the perf command-line options inside the bash script in order to gather the relevant data for your needs. The script will produce a target.run (where target corresponds to the make target) under the log directory containing the run logs.

Credits

All credits go to Robin Colombier and Gabriel Suau.

License

This project is distributed under the GNU-GPLv3 license. A copy of the whole license is included in the repository.

stencil3d's People

Contributors

gabriel-suau 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.