janestreet / async_parallel Goto Github PK
View Code? Open in Web Editor NEWDistributed computing library
License: MIT License
Distributed computing library
License: MIT License
I'm not really sure if async_parallel is supposed to work on OSX or if I'm doing something horribly wrong.
Below is my shell commands from trying to compile and run the ping_pong example after installing async_parallel via opam.
➜ ocaml corebuild -pkg async,async_parallel ping_pong.native
➜ ocaml ./ping_pong.native
Uncaught exception:
(Unix.Unix_error "No such file or directory" readlink
"((filename /proc/4775/exe))")
Raised at file "lib/core_unix.ml", line 48, characters 11-42
Called from file "lib/master_process.ml", line 408, characters 21-83
Called from file "lib/master_process.ml", line 477, characters 10-32
Re-raised at file "lib/master_process.ml", line 483, characters 14-15
Called from file "lib/intf.ml", line 10, characters 22-53
Called from file "ping_pong.ml", line 22, characters 4-140
Called from file "lib/exn.ml", line 87, characters 6-10
So I tried checking out the source in github and compiling the examples there, but there's a dependency on async_kernel which doesn't appear to be available on opam.
➜ async_parallel git:(master) make
./setup-dev.exe -build
W: No replace section found in file Makefile
Finished, 1 target (0 cached) in 00:00:00.
+ ocamlfind ocamlc -c -g -package threads -package sexplib.syntax -package sexplib -package core -package bin_prot.syntax -package bin_prot -package async -syntax camlp4o -thread -I lib -o lib/import.cmo lib/import.ml
File "lib/import.ml", line 10, characters 15-33:
Error: Unbound module Async_kernel
Command exited with code 2.
Compilation unsuccessful after building 3 targets (0 cached) in 00:00:01.
E: Failure("Command ''/Users/tim/.opam/4.01.0/bin/ocamlbuild' lib/async_parallel.cma lib/async_parallel.cmxa lib/async_parallel.a lib/async_parallel.cmxs examples/deep.native examples/echo_server.native examples/pingpong.native examples/ring.native examples/simple.native examples/wide.native -tag debug' terminated with error code 10")
make: *** [build] Error 1
I'd really like to get some working code with async_parallel. If there are some steps I'm missing or some docs I could look at please point them out.
async_parallel looks like an exciting extension to the existing async functionality and it would be fantastic to have a smooth / well documented way for people to start using it.
Thanks
I have some code with
Parallel.init ~cluster ();
and (it happens) one of the machines in cluster
does not accept SSH connections.
The program just terminates with code 141
, there is no exception, no error message.
The module has been renamed to Async_parallel_deprecated
... what's the non-deprecated version that's meant to be used?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.