Commit da598352 authored by mikec1's avatar mikec1 Committed by Brad Kennedy
Browse files

in progress...

parent e2b0b0f4
......@@ -48,9 +48,9 @@
%Suite 330, Boston, MA 02111-1307 USA
function properties = batchconfig2propgrid(batchconfig)
num_properties = 16;
for i=1:length(batchconfig);
properties((i*11)-10:(i*11)) = [ ...
properties((i*num_properties)-(num_properties-1):(i*num_properties)) = [ ...
... % basic properties...
PropertyGridField(['exec_func[',num2str(i),']'], batchconfig(i).exec_func, ...
'Type', PropertyType('char', 'row', {'ef_gen_m','ef_current_base', 'ef_sbatch', 'ef_sqsub','ef_qsub','ef_sqsub_sshfm','ef_mshpc'}), ...
......@@ -72,21 +72,26 @@ for i=1:length(batchconfig);
'Category', ['Level ',num2str(i),' - ',batchconfig(i).file_name], ...
'DisplayName', ['exec_config[',num2str(i),']']) ...
...% execute properties...
PropertyGridField(['qsub[',num2str(i),'].job_name'], batchconfig(i).job_name, ...
'Type', PropertyType('char','row'), ...
'Category', ['Level ',num2str(i),' - ',batchconfig(i).file_name], ...
'DisplayName', ['job_name'], ...
'Description', ['Parameters for creating the job name (Batch string swap rules apply).']) ...
PropertyGridField(['qsub[',num2str(i),'].session_init'], batchconfig(i).session_init, ...
'Type', PropertyType('char', 'row'), ...
'Category', ['Level ',num2str(i),' - ',batchconfig(i).file_name], ...
'DisplayName', ['session_init'], ...
'Description', ['Code [or file name of a text file containing code] to execute at the begining of a submission session.']) ...
PropertyGridField(['qsub[',num2str(i),'].job_name'], batchconfig(i).job_name, ...
'Type', PropertyType('char','row'), ...
'Category', ['Level ',num2str(i),' - ',batchconfig(i).file_name], ...
'DisplayName', ['job_name'], ...
'Description', ['Parameters for creating the job name (Batch string swap rules apply).']) ...
PropertyGridField(['qsub[',num2str(i),'].job_init'], batchconfig(i).job_init, ...
'Type', PropertyType('char', 'row'), ...
'Category', ['Level ',num2str(i),' - ',batchconfig(i).file_name], ...
'DisplayName', ['job_init'], ...
'Description', ['Code [or file name of a text file containing code] to execute at the begining of a job.']) ...
PropertyGridField(['qsub[',num2str(i),'].mfile_name'], batchconfig(i).mfile_name, ...
'Type', PropertyType('char','row'), ...
'Category', ['Level ',num2str(i),' - ',batchconfig(i).file_name], ...
'DisplayName', ['mfile_name'], ...
'Description', ['Parameters for creating the .m file name (Batch string swap rules apply).']) ...
PropertyGridField(['qsub[',num2str(i),'].m_init'], batchconfig(i).m_init, ...
'Type', PropertyType('char', 'row'), ...
'Category', ['Level ',num2str(i),' - ',batchconfig(i).file_name], ...
......@@ -168,6 +173,26 @@ for i=1:length(batchconfig);
'-v|--verbose' char(9) 'verbose mode: shows debugging-type details' char(10) ...
'-d|--debug' char(9) 'debug mode: don''t actually submit, but show the command' char(10) ...
]) ...
PropertyGridField(['qsub[',num2str(i),'].memory'], batchconfig(i).memory, ...
'Type', PropertyType('char', 'row'), ...
'Category', ['Level ',num2str(i),' - ',batchconfig(i).file_name], ...
'DisplayName', ['memory'], ...
'Description', ['Amount of memory required by each process.']) ...
PropertyGridField(['qsub[',num2str(i),'].time_limit'], batchconfig(i).time_limit, ...
'Type', PropertyType('char', 'row'), ...
'Category', ['Level ',num2str(i),' - ',batchconfig(i).file_name], ...
'DisplayName', ['time_limit'], ...
'Description', ['Provide a runtime limit. (elapsed, wallclock time, not summed across cpus)']) ...
PropertyGridField(['qsub[',num2str(i),'].mpi'], batchconfig(i).mpi, ...
'Type', PropertyType('char', 'row', {'true','false'}), ...
'Category', ['Level ',num2str(i),' - ',batchconfig(i).file_name], ...
'DisplayName', ['mpi'], ...
'Description', ['Whether mpi will be used or not. (default: false)']) ...
PropertyGridField(['qsub[',num2str(i),'].num_processors'], batchconfig(i).num_processors, ...
'Type', PropertyType('char', 'row'), ...
'Category', ['Level ',num2str(i),' - ',batchconfig(i).file_name], ...
'DisplayName', ['num_processors'], ...
'Description', ['Number of processors to be used for this job. (default: 1)']) ...
PropertyGridField(['qsub[',num2str(i),'].software'], batchconfig(i).software, ...
'Type', PropertyType('char', 'row', {'matlab','octave','none'}), ...
'Category', ['Level ',num2str(i),' - ',batchconfig(i).file_name], ...
......
......@@ -35,16 +35,20 @@
function batch_config=init_batch_config
batch_config.file_name='';
batch_config.exec_func='ef_current_base';
batch_config.replace_string={''};
batch_config.order=[];
batch_config.session_init='';
batch_config.job_name='';
batch_config.mfile_name='';
batch_config.job_init='';
batch_config.m_init='';
batch_config.qsub_options={''};
batch_config.memory='';
batch_config.time_limit='';
batch_config.mpi='false';
batch_config.num_processors='';
batch_config.software='matlab';
batch_config.program_options={''};
......@@ -62,12 +62,16 @@ for li=1:nlevels;
batchconfig(li).exec_func=strtrim(propgrid.Properties((li*4)-3).Value);
batchconfig(li).replace_string=strtrim(propgrid.Properties((li*4)-2).Value);
batchconfig(li).order=propgrid.Properties((li*4)-1).Value;
batchconfig(li).job_name=strtrim(propgrid.Properties((li*4)).Children(1).Value);
batchconfig(li).session_init=strtrim(propgrid.Properties((li*4)).Children(2).Value);
batchconfig(li).session_init=strtrim(propgrid.Properties((li*4)).Children(1).Value);
batchconfig(li).job_name=strtrim(propgrid.Properties((li*4)).Children(2).Value);
batchconfig(li).job_init=strtrim(propgrid.Properties((li*4)).Children(3).Value);
batchconfig(li).m_init=strtrim(propgrid.Properties((li*4)).Children(4).Value);
batchconfig(li).qsub_options=strtrim(propgrid.Properties((li*4)).Children(5).Value);
batchconfig(li).software=strtrim(propgrid.Properties((li*4)).Children(6).Value);
batchconfig(li).program_options=strtrim(propgrid.Properties((li*4)).Children(7).Value);
batchconfig(li).mfile_name=strtrim(propgrid.Properties((li*4)).Children(4).Value);
batchconfig(li).m_init=strtrim(propgrid.Properties((li*4)).Children(5).Value);
batchconfig(li).qsub_options=strtrim(propgrid.Properties((li*4)).Children(6).Value);
batchconfig(li).memory=strtrim(propgrid.Properties((li*4)).Children(7).Value);
batchconfig(li).time_limit=strtrim(propgrid.Properties((li*4)).Children(8).Value);
batchconfig(li).num_processors=strtrim(propgrid.Properties((li*4)).Children(9).Value);
batchconfig(li).software=strtrim(propgrid.Properties((li*4)).Children(10).Value);
batchconfig(li).program_options=strtrim(propgrid.Properties((li*4)).Children(11).Value);
end
......@@ -49,9 +49,14 @@ batch_config.replace_string={''};
batch_config.order=[];
batch_config.session_init='';
batch_config.job_name='';
batch_config.mfile_name='';
batch_config.job_init='';
batch_config.m_init='';
batch_config.qsub_options={''};
batch_config.memory='';
batch_config.time_limit='';
batch_config.mpi='';
batch_config.num_processors='';
batch_config.software='';
batch_config.program_options={''};
......@@ -87,4 +92,4 @@ for i=1:length(keywords);
batch_config=setfield(batch_config,keywords{i},str2num(key_val{:}));
end
end
end
\ No newline at end of file
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment