This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run as: mpirun -np <# of threads> python test-ray.py | |
from mpi4py import MPI | |
import os, sys, time | |
import numpy as np | |
import ray | |
@ray.remote | |
class Counter(object): | |
def __init__(self): |