GithubHelp home page GithubHelp logo

python-for-hpc / ramba Goto Github PK

View Code? Open in Web Editor NEW
33.0 33.0 4.0 1.15 MB

Python combination of Ray and Numba providing compiled distributed arrays, remote functions, and actors.

License: BSD 2-Clause "Simplified" License

Python 100.00%

ramba's People

Contributors

drtodd13 avatar poky-stuffed avatar pspillai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ramba's Issues

Use deferred ops for initialization functions, map operations

It should be possible to convert function/lambda-based initialization and map skeletons to use deferred operations. All are per-element operations. We will need to add mechanisms to allow custom JIT functions to be called from within a deferred op, and mechanisms for providing global index arguments (tuple or otherwise) for initialization functions.

Deduplicate communications in deferred ops

Currently, data communication in deferred ops sends multiple copies of the same data if overlapping ranges are referred to by multiple slices. For the default Parallel Research Kernels stencil (a radius=2 "star" or "plus" pattern), this results in 1.5x times the minimum data volume to be transmitted. For a general 5x5 stencil, this would result in 7.5x the necessary data volume.

astype_executor copy bug

On line 5319 copy is a boolean arg, not callable:

ramba/ramba/ramba.py

Lines 5315 to 5319 in 13227ea

def astype_executor(cls, temp_array, self, dtype, copy=True):
dprint(1, "astype executor:", self.dtype, type(self.dtype), dtype, type(dtype), copy)
if dtype == self.dtype:
assert copy
return copy(self)

Unclear to me what the right fix is, libcopy.deepcopy(self) seems to work.

Achieve grouped workers in MPI mode.

For doing node-aware partitioning, we want the Ramba workers/RemoteStates to be grouped so that all the workers on a given node are laid out consecutively. In MPI mode, there are some configurations where the ranks are not natively laid out consecutively on the nodes. Thus, we need to have some kind of a mapping between MPI ranks and workers so that from Ramba's perspective the invariant is maintained that chunks of the worker array of size num_workers/num_nodes are laid out consecutively.

Alias detection in deferred operations

Currently, system does not detect when different ranges of same arrays are used for reads and writes when fusing deferred loops. This can have correctness issues when same-sized but different ranges are written / read in consecutive operations. Work-around for now is to manually insert a deferred_op.do_ops() to prevent fusion of such operations.

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.