> Note in the case of execution on a JVM, a single process will be  
> spawned with P places. In the case of native execution, each place  
> will be executed in a separate process.

Let me check if I understood this right. So if I run a sequential x10  
program on a JVM with 4 places, the program would actually run in 1  
place while the other 3 are "idle" ?

On Nov 10, 2009, at 12:37 PM, Vijay Saraswat wrote:

> Note in the case of execution on a JVM, a single process will be  
> spawned with P places. In the case of native execution, each place  
> will be executed in a separate process. The nodes on which the  
> processes are spawned is determined by the hosts file.
>
> Also setting the number of initial threads in a place is important.
>
> When using mpirun, please use the -x option to set the X10_NTHREADS  
> variable, thus:
>
> mpirunx10 -x X10_NTHREADS=<n> -np <p> --hostfile <hostfilename>  
> <x10executable> <program args>
>
>
> Igor Peshansky wrote:
>>
>> Kshitij Mehta <kvm1...@gmail.com> wrote on 11/10/2009 01:08:14 PM:
>>
>>
>>> Hello
>>> Is there a way to set the no. of places in the Linux environment?
>>> Looks like the default value is 4, which was set by the x10 runtime
>>> during installation. Please note that I am not using eclipse.
>>>
>>
>> Hi, Kshitij,
>>
>> Are you running with the Java backend or the C++ one?  You also did
>> not mention which version of X10 you're trying to use.
>>
>> Your question implies that you're using the Java backend.
>> To run with K places, use
>>
>> x10 -NUMBER_OF_LOCAL_PLACES=K YourClass
>>
>> For the C++ backend, the launcher supplies the number of places,  
>> e.g.,
>>
>> mpirunx10 -np K YourApp
>>
>> Hope this helps,
>>         Igor
>>
>

Kshitij Mehta
Graduate Student
Parallel Software Technologies Lab
Dept. of Computer Science
University of Houston
USA
www.cs.uh.edu/~kmehta

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to