MATLAB PARALLEL COMPUTING TOOLBOX - S Podręcznik Użytkownika Strona 205

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 204
Partition a Datastore in Parallel
6-65
[total,count] = sumAndCountArrivalDelay(ds)
sumtime = toc
mean = total/count
total =
17211680
count =
2417320
sumtime =
10.8273
mean =
7.1201
The partition function allows you to partition the datastore into smaller parts,
each represented as a datastore itself. These smaller datastores work completely
independently of each other, so that you can work with them inside of parallel language
features such as parfor loops and spmd blocks.
The number of partitions in the following code is set by the numpartitions function,
based on the datastore itself (ds) and the parallel pool (gcp) size. This does not
necessarily equal the number of workers in the pool. In this case, the number of loop
iterations is then set to the number of partitions (N).
The following code starts a parallel pool on a local cluster, then partitions the datastore
among workers for iterating over the loop. Again, a separate function is called, which
includes the parfor loop to amass the count and sum totals. Copy and save this function
if you want to run the example.
function [total, count] = parforSumAndCountArrivalDelay(ds)
N = numpartitions(ds,gcp);
Przeglądanie stron 204
1 2 ... 200 201 202 203 204 205 206 207 208 209 210 ... 655 656

Komentarze do niniejszej Instrukcji

Brak uwag

Philips 303463166 manuals

Owner’s manuals and user’s guides for Unknown Philips 303463166.
We providing 1 pdf manuals Philips 303463166 for download free by document types: Manual


Philips 303463166 Manual (1 pages)


Brand: Philips | Category: No info | Size: 0.53 MB |

 

Table of contents





More products and manuals for Unknown Philips

Models Document Type
FC8033/01 Datasheet   Philips exhaust filter FC8033, 2 pages
FC8046 Datasheet   Philips FC8046 Disposable dust bag, 2 pages
305143166 Manual   Philips 305143166 User manual, 1 pages
Kidsplace Manual   Philips 300633486 User manual, 2 pages
303451766 Manual   Philips 303443166 User manual, 1 pages
369981786 Manual Philips 369984386 User manual, 2 pages
myKitchen Manual Philips myKitchen, 1 pages
300543186 Manual   Philips 300483186 User manual, 1 pages
Kidsplace Manual   Philips Kidsplace, 2 pages
320663176 Manual   Philips 320663176 User manual, 2 pages
34144/31/16 Specifications    Philips myBathroom Ceiling light 32005/31/16, 4 pages
316103186 User Manual   Philips Ceiling light 31610/11/86, 8 pages
34022/11/16 Specifications      Philips myBathroom Ceiling light 32021/11/16, 34 pages
408343116 User Manual   Philips Ledino 408343116 ceiling lighting, 8 pages
SM120V LED27S/840 PSD W60L60 Installation Manual   Philips SM120V LED37S/840 PSU W20L120, 2 pages
AEA1000/37 User Manual   Philips AEA1000/37 User manual, 16 pages
30852/31/16 Specifications       Philips myKidsRoom Ceiling light 30110/55/16, 32 pages
InStyle User Manual   Philips InStyle Ceiling light 37481/30/16, 8 pages
690573116 User Manual       Philips InStyle Ceiling light 69057/31/16, 25 pages
InStyle User Manual   Philips InStyle Ceiling light 40740/17/16, 8 pages