Skip to content
Snippets Groups Projects
Commit 28ef5566 authored by Yoann Guilhem's avatar Yoann Guilhem Committed by Nicola Vigano
Browse files

Bugfix for OAR job submissions (should fix oar6 problems)

parent 68418594
No related branches found
No related tags found
No related merge requests found
function infopc
% display info of the ssh connection
disp('******************************************************')
fprintf(' %s = %s\n',' matlab',version)
fprintf(' %s = %s\n','hostname',getenv('HOSTNAME'))
fprintf(' %s = %s\n','username',getenv('USER'))
fprintf(' %s = %s\n',' pwd',strtrim(pwd))
disp('******************************************************')
function infopc()
% INFOPC display info of the ssh connection
[~, hostname] = system('hostname');
hostname = strtrim(hostname);
disp('******************************************************');
fprintf(' %s = %s\n', ' matlab', version);
fprintf(' %s = %s\n', 'hostname', hostname);
fprintf(' %s = %s\n', 'username', getenv('USER'));
fprintf(' %s = %s\n', ' pwd', strtrim(pwd));
disp('******************************************************');
end % end of function
......@@ -78,7 +78,7 @@ app.gpu = 'NO';
app.node = 1;
app.cpu = 1;
app.core = 1;
app.host = 'htc';
app.host = '%';
app.checkpoint = 600;
app.signal = 2;
app.type = 'idempotent';
......@@ -95,7 +95,8 @@ disp(' ******* Submitting jobs to OAR *******')
disp(' ****************************************')
disp(' ')
hostname = getenv('HOSTNAME');
[~, hostname] = system('hostname');
hostname = strtrim(hostname);
user = getenv('USER');
out.fprintf(' *** version : %s\n', version);
......
......@@ -34,7 +34,7 @@ function script_location = make_oar_matlab(pathdir, tmpdir, tmpname, oarpars)
header = {'#!/bin/bash', ...
['#OAR -l {type = ''default''}/core=' num2str(oarpars.core) '/nodes=' num2str(oarpars.node) ...
'/cpu=' num2str(oarpars.cpu) ',walltime=' oarpars.walltime], ...
['#OAR -p (host like ''' oarpars.host '%'') AND (desktop_computing = ''NO'')'] ...
['#OAR -p (host like ''' oarpars.host ''') AND (desktop_computing = ''NO'')'] ...
['#OAR -p (gpu = ''' oarpars.gpu ''') AND (mem>' num2str(oarpars.mem) ')'], ...
['#OAR -O ' oarpars.stdout], ...
['#OAR -E ' oarpars.stderr], ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment