[Swift-user] Swift-user Digest, Vol 74, Issue 3
Nikhil Raj
nkrjnishu01 at gmail.com
Sun Jul 14 12:54:17 CDT 2013
yup Justin, i did it and it is working now,thanks for ur help.:)
On Sat, Jul 13, 2013 at 1:49 AM, <swift-user-request at ci.uchicago.edu> wrote:
> Send Swift-user mailing list submissions to
> swift-user at ci.uchicago.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user
> or, via email, send a message with subject or body 'help' to
> swift-user-request at ci.uchicago.edu
>
> You can reach the person managing the list at
> swift-user-owner at ci.uchicago.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Swift-user digest..."
>
>
> Today's Topics:
>
> 1. Re: locally running parallel code (Justin M Wozniak)
> 2. Re: locally running parallel code (Michael Wilde)
> 3. Need help with Integer cannot be cast to String (Andrew Shewmaker)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 04 Jul 2013 09:25:37 -0500
> From: Justin M Wozniak <wozniak at mcs.anl.gov>
> Subject: Re: [Swift-user] locally running parallel code
> To: Nikhil Raj <nkrjnishu01 at gmail.com>
> Cc: swift-user at ci.uchicago.edu
> Message-ID: <51D585E1.4080304 at mcs.anl.gov>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi Nikhil
> Did you try modifying jobThrottle?
> Justin
>
> On 7/4/2013 3:50 AM, Nikhil Raj wrote:
> >
> > hi,
> > this is nikhil and i am using swift for running a program. The
> > problem i want to calculate the solution parallely using local
> > multiple processor,but when i give the
> > command it is just taking each problem at a time and not
> > parallely.I have a multi core processor and i want each cpu solving
> > diffrent problem at the same time
> > but it is just using one of them and calculating one by one.pls
> > help me out asap.
> >
> >
> > my program
> >
> > type messagefile;
> >
> > app (messagefile t) solve_instance(string fname) {
> > bnb fname stdout=@filename(t);
> > }
> > string name ="b.txt c.txt";
> > messagefile fi[]<fixed_array_mapper;files=name>;
> > string
> > prob[]=["/home/nikhil/BatchS121208M.nl","/home/nikhil/BatchS151208M.nl"];
> > foreach f in prob{
> > messagefile c<regexp_mapper;
> > source=@f,
> > match="(.*)nl",
> > transform="\\1txt">;
> > c=solve_instance(f);
> > }
> >
> > bnb is a slover i am using to solve the problem."BatchS121208M.nl" is
> > the problem file name.
> > I am attaching various log files and also the files which i think may
> > be problem because of which my code is not running properly.
> > look inti sites.xml may be there is some prob
> >
> >
> >
> > _______________________________________________
> > Swift-user mailing list
> > Swift-user at ci.uchicago.edu
> > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user
>
>
> --
> Justin M Wozniak
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 4 Jul 2013 09:31:14 -0500 (CDT)
> From: Michael Wilde <wilde at mcs.anl.gov>
> Subject: Re: [Swift-user] locally running parallel code
> To: Nikhil Raj <nkrjnishu01 at gmail.com>
> Cc: swift-user at ci.uchicago.edu
> Message-ID:
> <924997554.7660571.1372948274885.JavaMail.root at mcs.anl.gov>
> Content-Type: text/plain; charset=utf-8
>
> Nikhil, the problem is most likely the jobThrottle value in your sites.xml
> file.
>
> The default sites file entry for pool "localhost" specifies jobThrottle=0 :
>
> <profile namespace="karajan" key="jobThrottle">0</profile>
>
> Copy the sites file from your swift/ release directory (e.g.
> swift-0.94/etc) to the directory in which you are running swift, and
> replace the line above with these two lines:
>
> <profile namespace="karajan" key="jobThrottle">.07</profile>
> <profile namespace="karajan" key="initialScore">10000</profile>
>
> The run swift with the -sites.file option specifying your local copy of
> sites:
>
> swift -sites.file sites.xml myscript.swift # etc
>
> The max number of jobs that Swift will send to each site (each "pool" in
> the sites file) is
> (jobThrottle + 1) * 100. This is explained in the User Guide section that
> explains Swift properties.
>
> So the value above of .07 will allow up to 8 jobs at a time to be sent to
> the pool. If you want to run 16 jobs at one, use .15, 32 jobs at once, use
> .31, etc.
>
> The reason for this odd convention is historical: Swift originally was
> developed to send jobs to grid sites where the optimal number of jobs to
> send had to be discovered dynamically. The initialScore value of 10000
> essentially disables this outdated algorithm and lets you set the number of
> concurrent jobs directly via jobThrottle. This will be made simpler and
> more clear in a future release of Swift.
>
> - Mike
>
> ----- Original Message -----
> > From: "Nikhil Raj" <nkrjnishu01 at gmail.com>
> > To: swift-user at ci.uchicago.edu
> > Sent: Thursday, July 4, 2013 3:50:06 AM
> > Subject: [Swift-user] locally running parallel code
> >
> >
> >
> >
> >
> > hi,
> > this is nikhil and i am using swift for running a program. The
> > problem i want to calculate the solution parallely using local
> > multiple processor,but when i give the
> > command it is just taking each problem at a time and not parallely.I
> > have a multi core processor and i want each cpu solving diffrent
> > problem at the same time
> > but it is just using one of them and calculating one by one.pls help
> > me out asap.
> >
> >
> >
> > my program
> >
> >
> > type messagefile;
> >
> > app (messagefile t) solve_instance(string fname) {
> > bnb fname stdout=@filename(t);
> > }
> > string name ="b.txt c.txt";
> > messagefile fi[]<fixed_array_mapper;files=name>;
> > string
> > prob[]=["/home/nikhil/BatchS121208M.nl","/home/nikhil/BatchS151208M.nl"];
> > foreach f in prob{
> > messagefile c<regexp_mapper;
> > source=@f,
> > match="(.*)nl",
> > transform="\\1txt">;
> > c=solve_instance(f);
> > }
> >
> > bnb is a slover i am using to solve the problem."BatchS121208M.nl" is
> > the problem file name.
> > I am attaching various log files and also the files which i think may
> > be problem because of which my code is not running properly.
> > look inti sites.xml may be there is some prob
> > _______________________________________________
> > Swift-user mailing list
> > Swift-user at ci.uchicago.edu
> > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 12 Jul 2013 14:18:36 -0600
> From: Andrew Shewmaker <agshew at gmail.com>
> Subject: [Swift-user] Need help with Integer cannot be cast to String
> To: swift-user at ci.uchicago.edu
> Message-ID:
> <CAF-E8XHepZ359V3y_B2DGZaEzgJ03X5J+MjcQhpo8=
> uZmTXqaA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I'm learning how use Swift, and I'm trying to understand what I'm doing
> wrong that's causing this failure:
>
> java.lang.ClassCastException: java.lang.Integer cannot be cast to
> java.lang.String
>
> on line 78 of the attached usecase1.swift
>
> I don't think I'm trying to use an Integer in the line that's mentioned.
> Any help would be appreciated!
>
> Thanks,
>
> Andrew Shewmaker
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: swiftdemo.tgz
> Type: application/x-gzip
> Size: 28103 bytes
> Desc: not available
> Url :
> http://lists.ci.uchicago.edu/pipermail/swift-user/attachments/20130712/7fba0a5f/attachment.bin
>
> ------------------------------
>
> _______________________________________________
> Swift-user mailing list
> Swift-user at ci.uchicago.edu
> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user
>
> End of Swift-user Digest, Vol 74, Issue 3
> *****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20130714/f8ceaa84/attachment.html>
More information about the Swift-user
mailing list