User`s guide

x Contents
Job Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-29
Job Monitor GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-29
Manage Jobs Using the Job Monitor . . . . . . . . . . . . . . . . . . 6-30
Identify Task Errors Using the Job Monitor . . . . . . . . . . . . 6-30
Programming Tips . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-32
Program Development Guidelines . . . . . . . . . . . . . . . . . . . . 6-32
Current Working Directory of a MATLAB Worker . . . . . . . . 6-33
Writing to Files from Workers . . . . . . . . . . . . . . . . . . . . . . 6-34
Saving or Sending Objects . . . . . . . . . . . . . . . . . . . . . . . . . . 6-34
Using clear functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-34
Running Tasks That Call Simulink Software . . . . . . . . . . . 6-35
Using the pause Function . . . . . . . . . . . . . . . . . . . . . . . . . . 6-35
Transmitting Large Amounts of Data . . . . . . . . . . . . . . . . . 6-35
Interrupting a Job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-35
Speeding Up a Job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-35
Control Random Number Streams . . . . . . . . . . . . . . . . . . . . 6-37
Different Workers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-37
Client and Workers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-38
Client and GPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-39
Worker CPU and Worker GPU . . . . . . . . . . . . . . . . . . . . . . 6-41
Profiling Parallel Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-42
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-42
Collecting Parallel Profile Data . . . . . . . . . . . . . . . . . . . . . . 6-42
Viewing Parallel Profile Data . . . . . . . . . . . . . . . . . . . . . . . 6-43
Benchmarking Performance . . . . . . . . . . . . . . . . . . . . . . . . . 6-51
HPC Challenge Benchmarks . . . . . . . . . . . . . . . . . . . . . . . . 6-51
Troubleshooting and Debugging . . . . . . . . . . . . . . . . . . . . . . 6-52
Object Data Size Limitations . . . . . . . . . . . . . . . . . . . . . . . 6-52
File Access and Permissions . . . . . . . . . . . . . . . . . . . . . . . . 6-52
No Results or Failed Job . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-54
Connection Problems Between the Client and MJS . . . . . . . 6-54
SFTP Error: Received Message Too Long . . . . . . . . . . . . . . 6-55
Run mapreduce on a Parallel Pool . . . . . . . . . . . . . . . . . . . . 6-57
Start Parallel Pool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-57
Compare Parallel mapreduce . . . . . . . . . . . . . . . . . . . . . . . 6-57