[mpich-discuss] executiong mpi code on single linux

Jeff Hammond jhammond at alcf.anl.gov
Tue Oct 11 08:33:31 CDT 2011


Please run examples/cpi to see if MPI is configured properly.

I don't know what "exactly parallel" means nor do I understand how you
achieve MPI parallelism in your code, as you have not posted it.

Jeff

On Tue, Oct 11, 2011 at 7:50 AM, Jack Jacky <shajarian_e at yahoo.com> wrote:
> hi Jeff
> my code is exactly parallel .when I write a serial code for my problem just
> 12.5% of cpu are working and my computation runtime is long so I want to
> write a parallel code to solving my problem and use 100% of cpu .now I write
> the code and my code has no problem and running under windows very well but
> I want to run it under linux and I dont know what must I do?and need your
> help .
> I tested mpirun -np N ./a.out but it uses only one process .
> thank you very much
> ________________________________
> From: Jeff Hammond <jhammond at alcf.anl.gov>
> To: Jack Jacky <shajarian_e at yahoo.com>; mpich-discuss at mcs.anl.gov
> Sent: Tuesday, October 11, 2011 3:56 AM
> Subject: Re: [mpich-discuss] executiong mpi code on single linux
>
> is your code actually parallel or did you expect mpicxx to make it so?
>
> in circumstances such as this, it is helpful to post your code.
>
> another thing to do is run the examples/cpi test to ensure MPI is
> configured properly.
>
> jeff
>
> On Tue, Oct 11, 2011 at 1:23 AM, Jack Jacky <shajarian_e at yahoo.com> wrote:
>> hi.
>> Im new in parallel programming and I can write parallel codes for
>> computations such as FDTD and so on .
>>> I have a pc with core i7 quad core cpu and I run my code on win 7 with
>>> this cmd command mpiexec -n 8 a.exe and I want do this on linux after
>>> compiling my code with mpicxx I run it with this command mpirun -np 8
>>> ./a.out but just 1 process was work .can you help me what must i
>>  do for running 8 processes on single pc?
>>> thank you very much.
>> _______________________________________________
>> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
>> To manage subscription options or unsubscribe:
>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>>
>>
>
>
>
> --
> Jeff Hammond
> Argonne Leadership Computing Facility
> University of Chicago Computation Institute
> jhammond at alcf.anl.gov / (630) 252-5381
> http://www.linkedin.com/in/jeffhammond
> https://wiki.alcf.anl.gov/index.php/User:Jhammond
>
>
>



-- 
Jeff Hammond
Argonne Leadership Computing Facility
University of Chicago Computation Institute
jhammond at alcf.anl.gov / (630) 252-5381
http://www.linkedin.com/in/jeffhammond
https://wiki.alcf.anl.gov/index.php/User:Jhammond


More information about the mpich-discuss mailing list