Changes in README [3c9fc94:24aa734]
Legend:
- Unmodified
- Added
- Removed
-
README
r3c9fc94 r24aa734 16 16 -L/path/to/memlog -Wl,-rpath,/path/to/memlog -lmemlog 17 17 18 For statically-linked applications ld's automatic wrapping functionality is 19 employed, and the exact set of necessary flags is large, so a file named 20 memlog_s_ld_cmds has been provided containing the necessary flags. 18 For statically-linked applications, add the following to your linker flags: 21 19 22 To your linker flags add: 23 24 `cat /path/to/memlog/memlog_s_ld_cmds` 25 26 or, if your compiler and wrappers support response files (gcc and clang do, for 27 example), simply: 28 29 @/path/to/memlog/memlog_s_ld_cmds 30 31 so your overall linking command might look something like this: 32 33 mpic++ -O3 -g -o my_program my_obj1.o my_obj2.o @/path/to/memlog/memlog_s_ld_cmds 20 -Wl,--wrap,malloc,--wrap,free,--wrap,realloc,--wrap,calloc,--wrap,memalign \ 21 /path/to/memlog/memlog_s.o -lpthread -ldl 34 22 35 23 ** RUNNING ** … … 41 29 use by running: 42 30 43 /path/to/memlog/memlog _analyze/path/to/HOST.PID.memlog31 /path/to/memlog/memlog2dot /path/to/HOST.PID.memlog 44 32 45 33 this will generate files named HOST.PID.memlog.dot, HOST.PID.memlog.ps and … … 48 36 in textual form. 49 37 50 If you pass the --leaks option to memlog_analyze, it will provide data on51 allocations active at the end of the program (leaks) instead of those active52 when the peak memory usage is first reached.53 54 You might have many runs of the same application (or output from many ranks of55 an MPI job), and you'd like to pick the one for analysis with the highest56 memory usage. If you provide a glob pattern to memlog_analyze it will do this57 for you. Make sure you quote the glob pattern so that your shell does not58 expand it.59 60 /path/to/memlog/memlog_analyze "/path/to/*.memlog"61 62 When running under common batch systems, the files are named63 JOB_ID.HOST.PID.memlog, and when running under the BG/Q CNK, the process's rank64 is used instead of the node-local PID.65 66 38 Note that te peak memory usage is determined by monitoring the processes's 67 39 maximum resident set size, not just the total allocated heap memory. 68 40 69 memlog_analyze takes, as a second optional parameter, the name of the output 70 directory (the current directory is the default). If the directory does not 71 exist, it will be created. 72 73 memlog_analyze depends on dot (from the graphviz package) and ps2pdf (from the 41 memlog2dot depends on dot (from the graphviz package) and ps2pdf (from the 74 42 ghostscript package), plus various tools from the binutils package. 75 43
Note: See TracChangeset
for help on using the changeset viewer.