Skip to content

Commit

Permalink
Automatic VSC worker registration.
Browse files Browse the repository at this point in the history
  • Loading branch information
schani committed Jun 12, 2010
1 parent 6dd2129 commit 4bfc2dc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions dist/dist.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(use 'at.ac.tuwien.complang.distributor.vsc
'at.ac.tuwien.tilab.icfp2010.core)

(vsc-register-worker)
3 changes: 3 additions & 0 deletions dist/runworker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

exec java -Dpid=$$ -cp `echo lib/*.jar | sed -e 's/ /:/g'`:classes:src/clj clojure.main -i dist/dist.clj
2 changes: 1 addition & 1 deletion src/clj/at/ac/tuwien/tilab/icfp2010/core.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns at.ac.tuwien.tilab.icfp2010.core
(:use at.ac.tuwien.complang.distributor.vsc))

(vsc-fn fib "0.1" [n]
(vsc-fn fib 1 [n]
(if (< n 2)
n
(+ (fib (- n 1)) (fib (- n 2)))))

0 comments on commit 4bfc2dc

Please sign in to comment.