[Swift-user] SwiftR
Michael Wilde
wilde at mcs.anl.gov
Fri May 11 09:48:35 CDT 2012
Ketan,
Until we get a chance to look into SwiftR, you can probably find what you need simply by locating and adapting the SwiftR server loop. Thats a .swift file embedded in the SwiftR code; you'll recognize it by the infinite iterate() loop which reads commands on an input FIFO (using readData() I think). The loop exits when it gets a special message from the input FIFO. Thats all you really need from SwiftR at this point, I think.
- Mike
----- Original Message -----
> From: "Ketan Maheshwari" <ketancmaheshwari at gmail.com>
> To: "Swift User" <swift-user at ci.uchicago.edu>
> Sent: Friday, May 11, 2012 8:51:42 AM
> Subject: [Swift-user] SwiftR
> Hi,
>
>
> I am trying to get started with SwiftR on my ubuntu box.
>
>
> I installed and tested SwiftR successfully :
>
>
>
> > library(Swift)
>
>
> > basicSwiftTest()
> Working in /tmp/ketan/SwiftR/swift.SsHn
> Running in /tmp/ketan/SwiftR/swift.SsHn (linked to
> /tmp/ketan/SwiftR/swift.local)
> project=NONE cores=2 nodes=1 queue=NONE server=local
> Started worker manager with pid 10837
>
>
> *** Starting test 1.1 ***
>
>
> Test of local do.call(sumstuff)
> local result=
> [1] 4505
>
>
> Test of swiftapply(sumstuff,arglist)
>
>
> swiftapply to 1 arg lists.
>
>
> Swift properties:
> server =
> callsperbatch = 1
> runmode = service
> tmpdir = /tmp
> workerhosts = localhost
> initialexpr =
>
>
> 1 Swift request files written to:
> /tmp/ketan/SwiftR/requests.P10826/R0000000
> Removing /tmp/ketan/SwiftR/requests.P10826/R0000000
> Swift result:
>
>
> ===============
>
>
> However, when trying to use a SwiftR example shown on
> http://wiki.ci.uchicago.edu/SWFT/SwiftR , I am getting errors:
>
>
>
> > add = function(x,y) {return (x*y);}
> > swiftapply(add, list( list(2,3), list(3,4)))
> Information about current server of type not found
> swiftapply to 2 arg lists.
>
>
> Swift properties:
> server =
> callsperbatch = 1
> runmode = service
> tmpdir = /tmp
> workerhosts = localhost
> initialexpr =
>
>
> 2 Swift request files written to:
> /tmp/ketan/SwiftR/requests.P10826/R0000002
> Error in getWorkerDir(server) :
> No SwiftR servers launched within R and no server type specified,
> can't identify a likely location for a swiftR service
> ===========
>
>
> In learning about SwiftR, my goal is to test its 'infinite' loop and
> streams functionality. Does some examples demonstrating these features
> exist for me to try on my local machine?
>
>
>
>
> Regards, --
> Ketan
>
>
>
> _______________________________________________
> Swift-user mailing list
> Swift-user at ci.uchicago.edu
> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user
--
Michael Wilde
Computation Institute, University of Chicago
Mathematics and Computer Science Division
Argonne National Laboratory
More information about the Swift-user
mailing list