techscientist / ray-1

A high-performance distributed execution engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ray

https://travis-ci.org/ray-project/ray.svg?branch=master https://readthedocs.org/projects/ray/badge/?version=latest

Ray is a flexible, high-performance distributed execution framework.

Installation

  • Ray can be installed on Linux and Mac with pip install ray.
  • To build Ray from source, see the instructions for Ubuntu and Mac.

Example Program

Basic Python Distributed with Ray
import time





def f():
    time.sleep(1)
    return 1

# Execute f serially.
results = [f() for i in range(4)]
import time
import ray

ray.init()

@ray.remote
def f():
    time.sleep(1)
    return 1

# Execute f in parallel.
object_ids = [f.remote() for i in range(4)]
results = ray.get(object_ids)

More Information

Getting Involved

About

A high-performance distributed execution engine

License:Apache License 2.0


Languages

Language:Python 54.7%Language:C++ 37.5%Language:C 5.3%Language:Shell 1.6%Language:CMake 0.7%Language:Jupyter Notebook 0.1%Language:Ruby 0.1%Language:HTML 0.0%Language:CSS 0.0%