OpenSeesMP on Windows 8.1
Moderator: selimgunay
OpenSeesMP on Windows 8.1
Hi everyone,
I have installed MPICH2, "mpich2-1.4.1p1-win-x86-64.msi", by following the steps based on the OpenSees instruction, and all checks have been passed. But when I try to run ex3.tcl or ex2.tcl by writing in command line "mpiexec -np 4 OpenSeesMP ex3.tcl" , nothing happens and it simply goes to next line without any error or output.
It will be really appreciated if you can give me any idea to get rid of this situation.
I have installed MPICH2, "mpich2-1.4.1p1-win-x86-64.msi", by following the steps based on the OpenSees instruction, and all checks have been passed. But when I try to run ex3.tcl or ex2.tcl by writing in command line "mpiexec -np 4 OpenSeesMP ex3.tcl" , nothing happens and it simply goes to next line without any error or output.
It will be really appreciated if you can give me any idea to get rid of this situation.
Re: OpenSeesMP on Windows 8.1
if it is set up correctly that should work. what is in ex2 and ex3
Re: OpenSeesMP on Windows 8.1
Hi Frank,
Thanks for replying me. Actually, I was successful to run cpi test, 'mpiexec -n 4 cpi', after mpich2 installation and also smpd test was correct 'smpd running on $hostname$' which in this case $hostname$ is Lenovo-PC . And, ex2.tcl and ex3.tcl are the examples you have mentioned in OpenSeesMP tutorial.
I really appreciate if you could give me any other hint to try.
Thanks for replying me. Actually, I was successful to run cpi test, 'mpiexec -n 4 cpi', after mpich2 installation and also smpd test was correct 'smpd running on $hostname$' which in this case $hostname$ is Lenovo-PC . And, ex2.tcl and ex3.tcl are the examples you have mentioned in OpenSeesMP tutorial.
I really appreciate if you could give me any other hint to try.
Re: OpenSeesMP on Windows 8.1
The script of ex3.tcl
set pid [getPID]
set np [getNP]
if {$pid == 0 } {
puts "\nRandom:"
for {set i 1 } {$i < $np} {incr i 1} {
recv -pid ANY msg
puts "$msg"
}
} else {
send -pid 0 "Hello from $pid"
}
#barrier
if {$pid == 0 } {
puts "Ordered:"
for {set i 1 } {$i < $np} {incr i 1} {
recv -pid $i msg
puts "$msg"
}
} else {
send -pid 0 "Hello from $pid"
}
!!
set pid [getPID]
set np [getNP]
if {$pid == 0 } {
puts "\nRandom:"
for {set i 1 } {$i < $np} {incr i 1} {
recv -pid ANY msg
puts "$msg"
}
} else {
send -pid 0 "Hello from $pid"
}
#barrier
if {$pid == 0 } {
puts "Ordered:"
for {set i 1 } {$i < $np} {incr i 1} {
recv -pid $i msg
puts "$msg"
}
} else {
send -pid 0 "Hello from $pid"
}
!!
Re: OpenSeesMP on Windows 8.1
try running the script with the OpenSeesMP executable (should result in np = 1) to see if the issue is with OpenSeesMP and tcl on your system
Re: OpenSeesMP on Windows 8.1
Thanks fmk,
I run the commands "set pid [get PID]" and "set np [get NP]" as you said and it gave me 0 and 1. So, it seems the problem is my OpenSeesMP and tcl file.
By the way, I wanted to download the tcl file(64 bit version) for parallel but I couldn't, there was a problem with Opensees website and still it doesn't work to download "tcl file(64 bit version)" and "Getting Started Manual" !!
I run the commands "set pid [get PID]" and "set np [get NP]" as you said and it gave me 0 and 1. So, it seems the problem is my OpenSeesMP and tcl file.
By the way, I wanted to download the tcl file(64 bit version) for parallel but I couldn't, there was a problem with Opensees website and still it doesn't work to download "tcl file(64 bit version)" and "Getting Started Manual" !!
Re: OpenSeesMP on Windows 8.1
are you runinng the correct version of mpi (32 or 64) that agrees with the OpenSeesMP and tcl you have installed?
Re: OpenSeesMP on Windows 8.1
Yes, I am running the 64 version of MPICH2 which is compatible with my OpenSeesMP and the installed tcl file. But, shouldn't I install the new tcl file for parallel processing?
Actually, I am trying to run the OpenSeesMP with the installed tcl file which I was using to run normal OpenSees since the link for tcl file downloading is broken
Actually, I am trying to run the OpenSeesMP with the installed tcl file which I was using to run normal OpenSees since the link for tcl file downloading is broken
Re: OpenSeesMP on Windows 8.1
any hint? any comment? I really need that...
Re: OpenSeesMP on Windows 8.1
Hi fmk
I want to kindly ask you if I install windows seven through virtual machine and install everything in windows seven, does it work?
Also I want to know that the same tcl that I can use to run normal opensees, can be used to run parallel opensees ?
Many thanks in advance
I want to kindly ask you if I install windows seven through virtual machine and install everything in windows seven, does it work?
Also I want to know that the same tcl that I can use to run normal opensees, can be used to run parallel opensees ?
Many thanks in advance
Re: OpenSeesMP on Windows 8.1
if OpenSeesMP outputs stuff for the tcl you have installed OpenSees and tcl are in synch. OpenSees may not be in synch with mpi or mi is not finding the .exe. try running in verbose mode:
mpiexec -verbose -n 2 OpenSeesMP test.tcl
you may pipe results to output file: mpiexec -verbose -n 2 OpenSeesMP test.tcl > tmp
the output will hopefully tell you what is amiss. e.g. if i enter a command for which it cannot find the .exe i get similar symtoms to what you decrribe, but the verbose output contains info buried in the file:
......\smpd_handle_command
........handling command:
........ src = 1
........ dest = 0
........ cmd = result
........ tag = 2
........ ctx = left
........ len = 190
........ str = cmd=result src=1 dest=0 tag=2 cmd_tag=2 cmd_orig=launch result=FAIL error="CreateProcess(OpenSeesBlah me.tcl) on 'FRANK4619' failed, error 3 - The system cannot find the path specified.
"
........\smpd_command_destination
.........0 -> 0 : returning NULL context
......../smpd_command_destination
........\smpd_handle_result
.........launch failed: CreateProcess(OpenSeesBlah me.tcl) on 'FRANK4619' failed, error 3 - The system cannot find the path specified.
mpiexec -verbose -n 2 OpenSeesMP test.tcl
you may pipe results to output file: mpiexec -verbose -n 2 OpenSeesMP test.tcl > tmp
the output will hopefully tell you what is amiss. e.g. if i enter a command for which it cannot find the .exe i get similar symtoms to what you decrribe, but the verbose output contains info buried in the file:
......\smpd_handle_command
........handling command:
........ src = 1
........ dest = 0
........ cmd = result
........ tag = 2
........ ctx = left
........ len = 190
........ str = cmd=result src=1 dest=0 tag=2 cmd_tag=2 cmd_orig=launch result=FAIL error="CreateProcess(OpenSeesBlah me.tcl) on 'FRANK4619' failed, error 3 - The system cannot find the path specified.
"
........\smpd_command_destination
.........0 -> 0 : returning NULL context
......../smpd_command_destination
........\smpd_handle_result
.........launch failed: CreateProcess(OpenSeesBlah me.tcl) on 'FRANK4619' failed, error 3 - The system cannot find the path specified.