Changeset 6218


Ignore:
Timestamp:
10/09/10 17:58:45 (14 years ago)
Author:
Eric.Larour
Message:

Added gprof flag, to profile executables

Location:
issm/trunk/src/m
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/@model/model.m

    r6201 r6218  
    232232        md.element_debugid=NaN;
    233233        md.mem_debug=0;
     234        md.gprof=0;
    234235        md.memoryleaks=NaN;
    235236
  • issm/trunk/src/m/classes/clusters/astrid.m

    r6152 r6218  
    5858                 end
    5959                 %}}}
    60                  function BuildQueueScript(cluster,modelname,analysis_type,mem_debug) % {{{1
     60                 function BuildQueueScript(cluster,md) %{{{1
     61                 
     62                         %retrieve parameters
     63                         modelname=md.name;
     64                         analysis_type=md.analysis_type;
     65                         mem_debug=md.mem_debug;
    6166
    6267                         %open file for writing:
     
    7075                                 %fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full --gen-suppressions=all --suppressions=%s %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock  2> %s.errlog >%s.outlog & ',cluster.valgrindlib,cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath,EnumToString(analysis_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname);
    7176                                 fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full --suppressions=%s %s/issm.exe %s %s %s.bin %s.petsc %s.outbin %s.lock  2> %s.errlog >%s.outlog & ',cluster.valgrindlib,cluster.np,cluster.valgrind,cluster.valgrindsup, cluster.codepath,EnumToString(analysis_type),cluster.executionpath,modelname,modelname,modelname,modelname,modelname,modelname);
     77                         end
     78
     79                         if md.gprof,
     80                                 fprintf(fid,'\n gprof %s/issm.exe gmon.out > %s.performance',cluster.codepath,modelname);
    7281                         end
    7382
  • issm/trunk/src/m/model/solveparallel.m

    r6038 r6218  
    2121
    2222%Now, we need to build the queuing script, used by the cluster to launch the job.
    23 cluster.BuildQueueScript(md.name,md.analysis_type,md.mem_debug);
     23cluster.BuildQueueScript(md);
    2424
    2525%Now, launch the queueing script
Note: See TracChangeset for help on using the changeset viewer.