Commit 4bc90006 authored by Brad Kennedy's avatar Brad Kennedy
Browse files

Fix some small bugs

parent a497bbe0
......@@ -78,12 +78,12 @@ function out = format_scheduler(~, job_spec)
out = sprintf('%s --time=%s', out, time_str);
end
if ~isempty(job_spec.num_proc) && job_spec.num_proc ~= 1
out = sprintf('%s --ntasks=%s', out, job_spec.num_proc);
out = sprintf('%s --ntasks=%d', out, job_spec.num_proc);
end
if ~isempty(job_spec.num_thread_per_proc) ...
&& job_spec.num_thread_per_proc ~= 1
out = sprintf('%s --cpus-per-task=%s', out, ...
out = sprintf('%s --cpus-per-task=%d', out, ...
job_spec.num_thread_per_proc);
end
......
......@@ -71,7 +71,7 @@ function out = format_scheduler(~, job_spec)
if ~isempty(job_spec.num_thread_per_proc) ...
&& job_spec.num_thread_per_proc ~= 1
out = sprintf('%s --tpp=%s', out, ...
out = sprintf('%s --tpp=%d', out, ...
job_spec.num_thread_per_proc);
end
......
......@@ -32,7 +32,7 @@
% Suite 330, Boston, MA 02111-1307 USA
function rval = find_hints_context_config(context_config, varname)
rval = '';
if ~exist('context_config', 'var') || isempty('context_config.misc')
if ~exist('context_config', 'var') || isempty(context_config.misc)
return;
end
exp = '\[(?<key>\w+)\]\s+(?<val>\S+)';
......
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