Totalview® for HPC User Guide : PART IV Advanced Tools and Customization : Chapter 21 Group, Process, and Thread Control : Setting Group Focus : Setting Groups
Setting Groups
This section presents a series of examples that set and create groups.
You can use the following methods to indicate that thread 3 in process 2 is a worker thread:
dset WGROUP(2.3) $WGROUP(2)
Assigns the group ID of the thread group of worker threads associated with process 2 to the WGROUP variable. (Assigning a nonzero value to WGROUP indicates that this is a worker group.)
dset WGROUP(2.3) 1
This is a simpler way of doing the same thing as the previous example.
dfocus 2.3 dworker 1
Adds the groups in the indicated focus to a workers group.
dset CGROUP(2) $CGROUP(1)
dgroups -add -g $CGROUP(1) 2
dfocus 1 dgroups -add 2
These three commands insert process 2 into the same control group as process 1.
dgroups -add -g $WGROUP(2) 2.3
Adds process 2, thread 3 to the workers group associated with process 2.
dfocus tW2.3 dgroups -add
This is a simpler way of doing the same thing as the previous example.
Following are some additional examples:
dfocus g1 dgroups -add -new thread
Creates a new thread group that contains all the threads in all the processes in the control group associated with process 1.
set mygroup [dgroups -add -new thread $GROUP($SGROUP(2))]
dgroups -remove -g $mygroup 2.3
dfocus g$mygroup/2 dgo
The first command creates a new group that contains all the threads from the process 2 share group; the second removes thread 2.3; and the third runs the remaining threads.
 
RELATED TOPICS 
 
The dfocus command
dfocus in "CLI Commands" in the TotalView for HPC Reference Guide
The dgroup command
dgroup in "CLI Commands" in the TotalView for HPC Reference Guide
The dset command
dset in "CLI Commands" in the TotalView for HPC Reference Guide