Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Langford <jl@nyclamp.(none)>2012-09-27 11:23:34 +0400
committerJohn Langford <jl@nyclamp.(none)>2012-09-27 11:23:34 +0400
commite0908903cbef9a4486877e2efe0685e6346d8a00 (patch)
tree9bd2001472955c12d016139866e7fbbbee9ee2ac /cluster
parent6ec912d53b83823c7b5dc3e3824db87d66ee383d (diff)
fix parallel in linux
Diffstat (limited to 'cluster')
-rwxr-xr-xcluster/single_machine4
-rw-r--r--cluster/spanning_tree.cc4
2 files changed, 6 insertions, 2 deletions
diff --git a/cluster/single_machine b/cluster/single_machine
index c3be4f6c..72f3f2bd 100755
--- a/cluster/single_machine
+++ b/cluster/single_machine
@@ -1,6 +1,6 @@
#!/bin/sh
# A simplest-possible example of parallel code at work on a single machine.
./spanning_tree
-../vw --total 2 --node 0 --unique_id 0 -d $1 --span_server localhost > node_0 2>&1 &
-../vw --total 2 --node 1 --unique_id 0 -d $1 --span_server localhost
+../vowpalwabbit/vw --total 2 --node 0 --unique_id 0 -d $1 --span_server localhost > node_0 2>&1 &
+../vowpalwabbit/vw --total 2 --node 1 --unique_id 0 -d $1 --span_server localhost
killall spanning_tree
diff --git a/cluster/spanning_tree.cc b/cluster/spanning_tree.cc
index c9cb095d..d4f293a8 100644
--- a/cluster/spanning_tree.cc
+++ b/cluster/spanning_tree.cc
@@ -119,9 +119,13 @@ int main(int argc, char* argv[]) {
int sock = socket(PF_INET, SOCK_STREAM, 0);
if (sock < 0) {
+#ifdef _WIN32
lastError = WSAGetLastError();
cerr << "can't open socket! (" << lastError << ")" << endl;
+#else
+ cerr << "can't open socket! " << errno << endl;
+#endif
exit(1);
}