Skip to content

egison/formura

 
 

Repository files navigation

formura Build Status Download

Formura = Formula Translator - Translator + RA (Reserach Assistant)

In Formura, you can describe stencil computations just as if you would write the discretized formulae in the papers, without even translating them into Fortran.

The syntax of Formura is kept simple, so that you can easily learn and write simple Formura programs, and you can generate more complex Formura programs from your favorite programming languages.

really wanted

Note: The originary repo is https://github.com/nushio3/formura.

Quick Start

OS: Ubuntu 18.04, CentOS 7, Mac, WSL

curl -sSfL https://raw.githubusercontent.com/formura/formura/master/install.sh | sh

Add ${HOME}/.formura/bin to your PATH and

formura --version

Install

Download binary (x86_64)

Ubuntu 18.04, CentOS 7, Mac, WSL

curl -sSfL https://raw.githubusercontent.com/formura/formura/master/install.sh | sh

Upgrade

curl -sSfL https://raw.githubusercontent.com/formura/formura/master/install.sh | sh

Downgrade

WSL, Linux:

ln -f -s $HOME/.formura/bin/formura_linux_<version> $HOME/.formura/bin/formura

Mac:

ln -f -s $HOME/.formura/bin/formura_mac_<version> $HOME/.formura/bin/formura

where <version> is such like v2.3.2.

Using docker

Pull the image of formura

docker pull formura/formura

Execute examples

git clone git@github.com:formura/formura.git
cd formura/examples/diffusion1
docker run -it --rm -u $UID:$GID -v $PWD:/work formura/formura make run

Build from source

Preparation for compiling Formura

apt install build-essential git mpi-default-dev libtinfo-dev
wget -qO- https://get.haskellstack.org/ | sh # installation of the Haskell tool Stack

Compile Formura

git clone git@github.com:formura/formura.git
cd formura
stack install

Add the path of the binary execution file of Formura to the $PATH variable of your shell. The path of the binary execution file is, for example, ${HOME}/.local/bin.

Execute examples

cd formura/examples/diffusion1
make
make run

Documents

Old info

About

Describe stencil formurae without even translating them

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 43.3%
  • Fortran 28.4%
  • C++ 8.5%
  • Haskell 8.2%
  • Assembly 5.5%
  • Python 2.6%
  • Other 3.5%