On 07/12/2018 04:36 PM, Yuxiang Wang wrote:
>
> I tried and I can neither step over (n) nor step into (s) that line of code -
> either way, it hangs right there.
Can you step into other function calls? That's sort of the point of a
debugger, that you can get into functions :-)
When it hangs, hit Ctrl-C (maybe twice, if necessary). This should stop
execution at the place where it hangs. You can then type 'backtrace' to get a
listing of where execution currently is.
> As for I run with just one processor - sorry but I am not sure about the
> question. The workstation is dual processor with 8 cores each; the program was
> unchanged from the documentation. Or were you inquiring about something else?
The number of processors doesn't matter. If you just say
./step-xy
then it's going to use just one MPI process. (Though each MPI process may use
multiple cores for shared memory parallelization, but that's a separate matter.)
If you want to use multiple MPI processes, you need to run the code as in
mpirun -np 8 ./step-xy
for example.