Matlab function for testing the CONDOR scheduling environment by Y. Peysson (CEA/DSM/IRFM,yves.peysson@cea.fr) and J. Decker (CEA/DSM/IRFM,joan.decker@cea.fr)
0001 function condortest(sleepnumber,sleepinterval,filename) 0002 % 0003 % Matlab function for testing the CONDOR scheduling environment 0004 % 0005 % by Y. Peysson (CEA/DSM/IRFM,yves.peysson@cea.fr) and J. Decker (CEA/DSM/IRFM,joan.decker@cea.fr) 0006 % 0007 fid = fopen( filename, 'w' ); 0008 % 0009 fprintf( fid, 'Running condortest.m, with sleepinterval=%i seconds and sleepnumber=%i ...\n', sleepinterval, sleepnumber); 0010 % 0011 for i=1:sleepnumber 0012 fprintf( fid, 'Iteration %i....\n', i); 0013 pause(sleepinterval); 0014 end; 0015 % 0016 fclose(fid) 0017 % 0018 quit;