Does Petsc built with MPICH2 work in a single processor box?
Thuc Bui
bui at calcreek.com
Sat Oct 11 23:31:12 CDT 2008
Hi Barry,
I will probably do that, but first I will need to modify the Visual Studio
project file to exclude those codes required by MPI and include those needed
by non-MPI. Fortunately, I would be able to do that by looking at the build
log of the MPI static library with --with-mpi=0.
BTW, if anyone has the need to compile Petsc using Visual Studio IDE to DLL,
please let me know. I can email you the file with the instructions how to do
that. I had to make some code changes that have to do with extern and extern
"C" to make VS happy. I will need to make the list of these files with these
changes. The good thing with the VS project file is that I can now just
automatically migrate to either VS05 or VS08. Many thanks to Chetan Jhurani
for the initial VS project file for version 2.3.2.
Cheers,
Thuc
-----Original Message-----
From: owner-petsc-users at mcs.anl.gov [mailto:owner-petsc-users at mcs.anl.gov]
On Behalf Of Barry Smith
Sent: Saturday, October 11, 2008 7:35 PM
To: petsc-users at mcs.anl.gov
Subject: Re: Does Petsc built with MPICH2 work in a single processor box?
If you have multiple people wanting to run your code on single
processes, it is probably worth
your while to build another PETSC_ARCH using --with-mpi=0 to simplify
handing them the final
program.
Barry
On Oct 11, 2008, at 9:07 PM, Thuc Bui wrote:
> Hi Barry and Matt,
>
> Yes, I do not have proper MPI authentication to run on this single
> processor
> machine, which has MPICH2 installed. However, I do not expect the
> users on
> this type of machine needs to install MPICH2 to run my Petsc app.
> So, I went
> to another single processor PC, which has no MPICH2 installed, ran
> my Petsc
> app. It complains that mpich2mpi.dll and mpich2.dll are missing. So,
> I just
> copied these DLL's to a directory on the PATH then my Petsc app
> would run
> fine.
>
> Thank you both again for your help,
> Thuc
>
> -----Original Message-----
> From: owner-petsc-users at mcs.anl.gov [mailto:owner-petsc-users at mcs.anl.gov
> ]
> On Behalf Of Barry Smith
> Sent: Saturday, October 11, 2008 5:52 PM
> To: petsc-users at mcs.anl.gov
> Subject: Re: Does Petsc built with MPICH2 work in a single processor
> box?
>
>
> Looks like you may not have the proper MPICH demons running on
> this "uniprocessor"
> machine?
>
> Barry
>
> On Oct 11, 2008, at 6:03 PM, Thuc Bui wrote:
>
>>
>> Hi all,
>>
>> I am able to build Petsc-2.3.3-p15 with MPICH2 under Windows and
>> make it a
>> DLL. It works great with my app in a dual core laptop. However, when
>> the
>> same executable runs on a uniprocessor windows box, it gives me the
>> following errors:
>>
>> ...
>> [0] Error creating mpiexec process...2
>> [0] launchMpiexecProcess failed
>> Fatal error in MPI_Init: Other MPI error, error stack:
>> MPIR_Init_thread(294): Initialization failed
>> MPID_Init(82)........: channel initialization failed
>> MPID_Init(383).......: PMI_Get_id returned 1
>> ...
>>
>> Are these errors due to PatscInitialize() failing to initialize MPI
>> on a
>> single processor box?
>>
>> If this is the case, is there a way in PetscInitialize or else where
>> to turn
>> off MPI without having to recompile Petsc with the option --with-
>> mpi=0?
>>
>> Many thanks in advance for your help,
>> Thuc Bui
>>
>
>
More information about the petsc-users
mailing list