Ignore:
Timestamp:
08/25/09 17:56:24 (15 years ago)
Author:
Eric.Larour
Message:

Valgrind memory checker now working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/BuildQueueingScriptGeneric.m

    r1790 r1904  
    44%   Usage:
    55%      BuildQueueingScriptGeneric(md,executionpath,codepath)
     6
     7global ISSM_DIR
    68
    79%Open queuing script file
     
    1517fprintf(fid,'#!/bin/sh\n');
    1618fprintf(fid,'rm -rf %s/%s.lock\n',executionpath,md.name);
     19
     20if md.mem_debug==0,
    1721fprintf(fid,'mpirun -np %i %s/%s.exe %s %s.bin %s.outbin %s.lock  2> %s.errlog >%s.outlog & ',md.np,codepath,AnalysisTypeFromEnum(md.analysis_type),executionpath,md.name,md.name,md.name,md.name,md.name);
     22else
     23fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full %s/%s.exe %s %s.bin %s.outbin %s.lock  2> %s.errlog >%s.outlog & ',[ISSM_DIR '/externalpackages/valgrind/install/lib/libmpidebug.so'],md.np,[ISSM_DIR '/externalpackages/valgrind/install/bin/valgrind'],codepath,AnalysisTypeFromEnum(md.analysis_type),executionpath,md.name,md.name,md.name,md.name,md.name);
     24end
     25
    1826fclose(fid);
Note: See TracChangeset for help on using the changeset viewer.