30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Setting Group Focus<br />

1.2: 37258.2 Stopped PC=0xffffffffffffffff<br />

1.3: 37258.3 Stopped PC=0xd042c944<br />

d1. dfocus p dstatus<br />

1: 37258 Breakpoint [omp_prog]<br />

1.1: 37258.1 Breakpoint PC=0x1000acd0,<br />

[./omp_prog.f#35]<br />

1.2: 37258.2 Stopped PC=0xffffffffffffffff<br />

1.3: 37258.3 Stopped PC=0xd042c944<br />

The CLI displays the following when you ask for the status of the lockstep<br />

group. (The rest of this example uses the f abbreviation for dfocus, and st<br />

for dstatus.)<br />

d1. f L st<br />

1: 37258 Breakpoint [omp_prog]<br />

1.1: 37258.1 Breakpoint PC=0x1000acd0,<br />

[./omp_prog.f#35]<br />

This command tells the CLI to display the status of the threads in thread,<br />

which is the 1.1 lockstep group since this thread is the TOI. The f L focus<br />

command narrows the set so that the display only includes the threads in<br />

the process that are at the same PC as the TOI.<br />

By default, the dstatus command displays information at process width. This means<br />

that you don’t need to type f pL dstatus.<br />

The duntil command runs thread 1.3 to the same line as thread 1.1. The<br />

dstatus command then displays the status of all the threads in the process:<br />

d1. f t1.3 duntil 35<br />

35@> write(*,*)"i= ",i,<br />

"thread= ",omp_get_thread_num()<br />

d1. f p dstatus<br />

1: 37258 Breakpoint [omp_prog]<br />

1.1: 37258.1 Breakpoint PC=0x1000acd0,<br />

[./omp_prog.f#35]<br />

1.2: 37258.2 Stopped PC=0xffffffffffffffff<br />

1.3: 37258.3 Breakpoint PC=0x1000acd0,<br />

[./omp_prog.f#35]<br />

As expected, the CLI adds a thread to the lockstep group:<br />

d1. f L dstatus<br />

1: 37258 Breakpoint [omp_prog]<br />

1.1: 37258.1 Breakpoint PC=0x1000acd0,<br />

[./omp_prog.f#35]<br />

1.3: 37258.3 Breakpoint PC=0x1000acd0,<br />

[./omp_prog.f#35]<br />

The next set of commands begins by narrowing the width of the default<br />

focus to thread width—notice that the prompt changes—and then displays<br />

the contents of the lockstep group:<br />

d1. f t<br />

t1. f L dstatus<br />

1: 37258 Breakpoint [omp_prog]<br />

1.1: 37258.1 Breakpoint PC=0x1000acd0,<br />

[./omp_prog.f#35]<br />

270 Chapter 13: Using Groups, Processes, and Threads

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!