[mpich-discuss] LAMMPS execution on Windows 7 no SP1 using MPICH 2.0-1.4.1p1 for windows

Jayesh Krishna jayesh at mcs.anl.gov
Wed Sep 14 10:15:33 CDT 2011


Hi,
 To create an administrator command prompt Right-click on the command prompt icon and select "Run as administrator" (It is NOT enough to open a command prompt as an administrator to get an administrator command prompt).
 Try running your job from the administrator command prompt and let us know if it works.

Regards,
Jayesh

----- Original Message -----
From: "Bruce Allen" <claudevms at comcast.net>
To: "Jayesh Krishna" <jayesh at mcs.anl.gov>
Sent: Tuesday, September 13, 2011 11:52:57 PM
Subject: Re: [mpich-discuss] LAMMPS execution on Windows 7 no SP1 using MPICH 2.0-1.4.1p1 for windows


Here is the results for a user that is in the administrators group: 

Microsoft Windows [Version 6.1.7600] 
Copyright (c) 2009 Microsoft Corporation. All rights reserved. 

C:\Users\mike>cd winlaamps 
The system cannot find the path specified. 

C:\Users\mike>cd .. 

C:\Users>cd .. 

C:\>cd winlaamps 

C:\winlaamps>mpiexec -np 4 -localonly c:\winlaamps\lmp6 < in.water5 
Unable to open the HKEY_LOCAL_MACHINE\SOFTWARE\MPICH\SMPD\process\6240 registry key, error 5, Access is denied. 

Unable to open the HKEY_LOCAL_MACHINE\SOFTWARE\MPICH\SMPD\process\3572 registry key, error 5, Access is denied. 

Unable to open the HKEY_LOCAL_MACHINE\SOFTWARE\MPICH\SMPD\process\7056 registry key, error 5, Access is denied. 

Unable to open the HKEY_LOCAL_MACHINE\SOFTWARE\MPICH\SMPD\process\7060 registry key, error 5, Access is denied. 


C:\winlaamps>mpiexec -np 4 -localonly c:\winlaamps\cpi.exe 
Unable to open the HKEY_LOCAL_MACHINE\SOFTWARE\MPICH\SMPD\process\5784 registry key, error 5, Access is denied. 

Unable to open the HKEY_LOCAL_MACHINE\SOFTWARE\MPICH\SMPD\process\6316 registry key, error 5, Access is denied. 

Unable to open the HKEY_LOCAL_MACHINE\SOFTWARE\MPICH\SMPD\process\2656 registry key, error 5, Access is denied. 

Unable to open the HKEY_LOCAL_MACHINE\SOFTWARE\MPICH\SMPD\process\5096 registry key, error 5, Access is denied. 

Enter the number of intervals: (0 quits) 1 
pi is approximately 3.2000000000000002, Error is 0.0584073464102071 
wall clock time = 0.001515 
Enter the number of intervals: (0 quits) 1 
pi is approximately 3.2000000000000002, Error is 0.0584073464102071 
wall clock time = 0.000037 
Enter the number of intervals: (0 quits) 1 
pi is approximately 3.2000000000000002, Error is 0.0584073464102071 
wall clock time = 0.000034 
Enter the number of intervals: (0 quits) 1 
pi is approximately 3.2000000000000002, Error is 0.0584073464102071 
wall clock time = 0.000034 
Enter the number of intervals: (0 quits) 1 
pi is approximately 3.2000000000000002, Error is 0.0584073464102071 
wall clock time = 0.000035 
Enter the number of intervals: (0 quits) 1 
pi is approximately 3.2000000000000002, Error is 0.0584073464102071 
wall clock time = 0.000034 
Enter the number of intervals: (0 quits) 1 
pi is approximately 3.2000000000000002, Error is 0.0584073464102071 
wall clock time = 0.000035 
Enter the number of intervals: (0 quits) 1 
pi is approximately 3.2000000000000002, Error is 0.0584073464102071 
wall clock time = 0.000034 
Enter the number of intervals: (0 quits) 1 
pi is approximately 3.2000000000000002, Error is 0.0584073464102071 
wall clock time = 0.000034 
Enter the number of intervals: (0 quits) 1 
pi is approximately 3.2000000000000002, Error is 0.0584073464102071 
wall clock time = 0.000036 
Enter the number of intervals: (0 quits) 0 

C:\winlaamps>0 
'0' is not recognized as an internal or external command, 
operable program or batch file. 

C:\winlaamps>0 


Here is the same test running in a command shell that belongs to the administrator: 


Microsoft Windows [Version 6.1.7600] 
Copyright (c) 2009 Microsoft Corporation. All rights reserved. 

C:\Windows\system32>cd .. 

C:\Windows>cd .. 

C:\>cd winlaamps 

C:\winlaamps>mpiexec -np 4 -localonly c:\winlaamps\cpi.exe 
Enter the number of intervals: (0 quits) 0 

C:\winlaamps>mpiexec -np 4 -localonly c:\winlaamps\cpi.exe 
Enter the number of intervals: (0 quits) 1 
pi is approximately 3.2000000000000002, Error is 0.0584073464102071 
wall clock time = 0.000077 
Enter the number of intervals: (0 quits) 1 
pi is approximately 3.2000000000000002, Error is 0.0584073464102071 
wall clock time = 0.000035 
Enter the number of intervals: (0 quits) 1 
pi is approximately 3.2000000000000002, Error is 0.0584073464102071 
wall clock time = 0.000033 
Enter the number of intervals: (0 quits) 1 
pi is approximately 3.2000000000000002, Error is 0.0584073464102071 
wall clock time = 0.000037 
Enter the number of intervals: (0 quits) 1 
pi is approximately 3.2000000000000002, Error is 0.0584073464102071 
wall clock time = 0.000072 
Enter the number of intervals: (0 quits) 1 
pi is approximately 3.2000000000000002, Error is 0.0584073464102071 
wall clock time = 0.000033 
Enter the number of intervals: (0 quits) 1 
pi is approximately 3.2000000000000002, Error is 0.0584073464102071 
wall clock time = 0.000032 
Enter the number of intervals: (0 quits) 0 

C:\winlaamps> 

Nice! No access issues!!! 

I get the following from running LAMMPS: 

The application is unable to start correctly (0xc000007b). Click OK to close the application. I'm guessing this error is coming from LAMMPS and is related to how it's calling MPICH? 

Thanks for the help on the access issue. 


----- Original Message -----
From: "Jayesh Krishna" <jayesh at mcs.anl.gov> 
To: mpich-discuss at mcs.anl.gov 
Cc: claudevms at comcast.net 
Sent: Tuesday, September 13, 2011 7:54:02 AM 
Subject: Re: [mpich-discuss] LAMMPS execution on Windows 7 no SP1 using MPICH 2.0-1.4.1p1 for windows 

Hi, 

>> MPICH2 not installed or unable to query host ... 
This is due to a bug in wmpi* wrapper programs. This does not indicate a faulty installation. Try running "mpiexec -n 2 c:\Progra~1\MPICH2\examples\cpi.exe" and see if it works. 

>> Unable to open the ... 
Try running the command from an administrator command prompt (Right-click on command prompt icon and select "Run as administrator".) 

Let us know if it works. 

Regards, 
Jayesh 

----- Original Message ----- 
From: "Bruce Allen" <claudevms at comcast.net> 
To: mpich-discuss at mcs.anl.gov 
Sent: Monday, September 12, 2011 11:39:58 PM 
Subject: [mpich-discuss] LAMMPS execution on Windows 7 no SP1 using MPICH 2.0-1.4.1p1 for windows 



I can see smpd running as a service. smpd responds to start and stop commands. 

MPICH2 Configurable Settings reports 

"spike: MPICH2 not installed or unable to query host" 

I used the wmpiregister.exe to associate "behappy" with my mike account. I copied the mpich2mpidll to the winlaamps directory along with the 
mpiexec.exe. 

I turned off the windows firewall and disabled it. I turned off the Norton firewall and it is disabled as well. 

The lmp6.exe is a LAMMPS EXE file copied directly from the LAMMPS site. 



C:\winlaamps>mpiexec -np 4 -localonly c:\winlaamps\lmp6 < in.water5 
Unable to open the HKEY_LOCAL_MACHINE\SOFTWARE\MPICH\SMPD\process\6240 registry key, error 5, Access is denied. 

Unable to open the HKEY_LOCAL_MACHINE\SOFTWARE\MPICH\SMPD\process\3572 registry key, error 5, Access is denied. 

Unable to open the HKEY_LOCAL_MACHINE\SOFTWARE\MPICH\SMPD\process\7056 registry key, error 5, Access is denied. 

Unable to open the HKEY_LOCAL_MACHINE\SOFTWARE\MPICH\SMPD\process\7060 registry key, error 5, Access is denied. 

I was hoping to get LAMMPS to run quicker (divide and conquer)in a multicore environment. 

Thanks in advance for any insight! 


_______________________________________________ 
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 


More information about the mpich-discuss mailing list