Giter Site home page Giter Site logo

encore's People

Contributors

charguer avatar mikerainey avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

encore's Issues

Find and fix a space leak somewhere in encore

valgrind mixed.dbg -lgn 4 -dag_freq 2
==78864== Memcheck, a memory error detector
==78864== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==78864== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
==78864== Command: mixed.dbg -lgn 4 -dag_freq 2
==78864==
nb_promotions 52
nb_steals 0
exectime 0.360
==78864==
==78864== HEAP SUMMARY:
==78864== in use at exit: 183,296 bytes in 28 blocks
==78864== total heap usage: 1,898 allocs, 1,870 frees, 2,868,384 bytes allocated
==78864==
==78864== LEAK SUMMARY:
==78864== definitely lost: 110,592 bytes in 27 blocks
==78864== indirectly lost: 0 bytes in 0 blocks
==78864== possibly lost: 0 bytes in 0 blocks
==78864== still reachable: 72,704 bytes in 1 blocks
==78864== suppressed: 0 bytes in 0 blocks
==78864== Rerun with --leak-check=full to see details of leaked memory
==78864==
==78864== For counts of detected and suppressed errors, rerun with: -v
==78864== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Find a good semantics for async/finish (aka join_plus/spawn_minus)

The problem currently is that the join_plus block does not interact properly with, say, parallel_for. In pdfs, for example, the parallel_for on the neighbor loop is bogus because the loop splits do not get counted appropriately by the join counter of the enclosing join_plus block.

Enhance makefile

It should at least track dependencies of header files. Maybe better is to use an alternative build system.

Introduce new macros to simplify declaration of parallel loops

Before:

static constexpr int nb_loops = 1;
encore_private_activation_record_begin(encore::edsl, maxIndex, nb_loops)
int s; int e;
encore_private_activation_record_end(encore::edsl, maxIndex, sar, par, dc, get_dc)

After:

encore_private_activation_record_begin(encore::edsl, maxIndex)
encore_parallel_for_declare()
int s; int e;
encore_private_activation_record_end(encore::edsl, maxIndex, sar, par, dc, get_dc)

In other words, declare each loop inline by a macro call, such as encore_parallel_for_declare(), encore_parallel_combine_declare(), etc.

Introduce leaf-level looping constructs

The purpose is to properly encode serial and parallel loops in encore. The idea is that encore realizes efficient looping in general by properly controlling grain size. The input format of the new looping operators should be such that each loop body of a leaf level loop (i.e., innermost loop) is expressed by a lambda function and the lambda function is parameterized by a range (i.e., lo, hi).

Generalize lazy binary splitting facility to handle more general patterns than just parallel_for

We want to handle:

  • parallel_for loops (there is no combining operator; all parallel iterations produce data for one common consumer vertex)
  • reductions
    • need proper support for constant and non constant time combining operators
    • maybe provide special support for combining operators that are both associative and commutative; one application is parallel bfs, where we have a reduction that is constructing a bag in a divide and conquer fashion; the operation that merges two given bags is a commutative operation
  • speculative_for loops?

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.