Coder Social home page Coder Social logo

trinity's Introduction

Build Status

The Trinity Programming Language

This is a compiler for Trinity, a statically typed programming language for scientific computing on the GPU. It was made as a student project at Aalborg University. The only dependency is jdk, it was primarily tested using openJDK 1.7, but newer versions should also work. This project uses the gradle for building and testing. Using the gradle wrapper is the preferred way of running gradle tasks:

./gradlew       # for UN*X
gradlew.bat     # for Windows

This will automatically downloaded and use the correct gradle version. To build the project run the installDist task:

./gradlew installDist

This will install Trinity in build/install/tric/ Trinity can now be evoked with ./bin/tric [options] filename. Feel free to move the tric folder and/or add the bin folder to your PATH.

To run the unit tests run the check gradle task: ./gradlew check

Usage

Usage: <main class> [options] filename
  Options:
    -c, --ccompiler
       Name of c compiler command to use. If nothing is specified a default
       value will be chosen depending on the value of gpuenabled
    -f, --format
       Format the generated c code using indent
       Default: false
    -g, --go
       Keep-on-trucking on error
       Default: false
    -gpu, --gpuenabled
       Enabled some functions to be performed on a gpu
       Default: false
    -h, --help
       Display this information
       Default: false
    -i, --indent
       Indentation width
       Default: 4
    -p, --pretty
       Pretty Print mode
       Default: false
    -v, --version
       Display the version number
       Default: false
    -o
       Write output to file

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.