The following example creates five child processes and uses them simultaneously to compute the second integral homology of each of the 267 groups of order 64. The final command shows that
H_2(G, Z)= Z_2^15
for the 267-th group G in GAP's library of small groups.
gap> Processes:=List([1..5],i->ChildProcess());; gap> fn:=function(i);return GroupHomology(SmallGroup(64,i),2);end;; gap> for p in Processes do > ChildPut(fn,"fn",p); > od; gap> NrSmallGroups(64); 267 gap> L:=ParallelList([1..267],"fn",Processes);; gap> L[267]; [ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ]
The function ParallelList()
is built from HAP's six core functions for parallel computation.
generated by GAPDoc2HTML