Skip to content

Quickstart

Philipp Gschwandtner edited this page Apr 26, 2017 · 1 revision

Quickstart

This is the quickstart guide for the impatient. If you run into problems or prefer more information, please check the more elaborate Install Guide

Getting the Sources

Fork or clone the SDK repo

git clone [email protected]:allscale/allscale_sdk.git name-of-your-repo

and run the setup script to create example source files

cd name-of-your-repo
scripts/setup/run project-name

Writing a Parallel Application

Put the following pfor-based "Hello World" code in code/app/src/project-name.cxx

#include <iostream>
#include <allscale/api/user/operator/pfor.h>

using namespace allscale::api::user;

int main() {
  pfor(0, 10, [](int i) { 
    std::cout << "Hello World " << i << "!" << std::endl; 
  });
  return 0;
}

Building and Running

Build your application

mkdir build
cd build
cmake ../code
make -j4

and run it

app/project-name
Clone this wiki locally