Code Monkey home page Code Monkey logo

gtclang's Introduction

gtclang
Version Travis status License: MIT

gtclang is a source-to-source compiler with a high level DSL (Domain-Specifc Language) to execute stencil-like computations on a variety of different parallel architectures. The target applications for gtclang are regional weather models (regular grids) as well as global weather and climate simulations (irregular grids). gtclang is built on top of the LLVM/Clang compiler framework and Dawn and produces highly optimized C++ source code for the gridtools library.

gtclang

Building

gtclang depends on Dawn as well as Clang (3.8.0), the generated code further requires gridtools and optionally CUDA. The build process requires a C++11 compiler and CMake. To build all these dependencies with a single CMake invocation, it is highly recommended to use the meta repository gtclang-all.

If you wish to directly compile the library, make sure CMake can find Dawn (pass the install directory via DAWN_ROOT) and Clang (if CMake has trouble finding Clang or LLVM, set LLVM_ROOT to the correct directory). Note that Ubuntu 16.04 ships with Clang (3.8.0) and a simple

sudo apt-get install llvm-3.8-dev clang-3.8

will install it. An example invocation of CMake may look like

git clone https://github.com/MeteoSwiss-APN/gtclang.git
cd gtclang
mkdir build && cd build
cmake .. -DDAWN_ROOT=<dawn-install-dir>
make -j4
make install

This will install gtclang locally into <gtclang-dir>/install/. The gtclang compiler can be found in the bin/ directory.

Continuous Integration

Linux

Toolchain Config Status
GCC 5.4 Release GCC 5.4
GCC 5.4 RelWithDebInfo GCC 5.4
GCC 6.3 Release GCC 6.3
GCC 6.3 RelWithDebInfo GCC 6.3
Clang 3.8 Release Clang 3.8
Clang 3.8 RelWithDebInfo Clang 3.8
Clang 4.0 Release Clang 4.0
Clang 4.0 RelWithDebInfo Clang 4.0
Clang 5.0 Release Clang 5.0
Clang 5.0 RelWithDebInfo Clang 5.0

About

This project is funded by the PASCHA project and developed by ETH Zurich and MeteoSwiss. Significant contributions were made by Fabian Thuering (Master Thesis), Carlos Osuna and Tobias Wicky.

License

The full license can be found here.

This project is licensed under the terms of the MIT license.

gtclang's People

Contributors

cosunae avatar stefanmoosbrugger avatar thfabian 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.