Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
graintracking
DCT
Commits
28ef5566
Commit
28ef5566
authored
11 years ago
by
Yoann Guilhem
Committed by
Nicola Vigano
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix for OAR job submissions (should fix oar6 problems)
Signed-off-by:
Yoann Guilhem
<
yoann.guilhem@esrf.fr
>
parent
68418594
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
zUtil_Help/infopc.m
+14
-8
14 additions, 8 deletions
zUtil_Help/infopc.m
zUtil_OAR/OAR_make.m
+3
-2
3 additions, 2 deletions
zUtil_OAR/OAR_make.m
zUtil_OAR/make_oar_matlab.m
+1
-1
1 addition, 1 deletion
zUtil_OAR/make_oar_matlab.m
with
18 additions
and
11 deletions
zUtil_Help/infopc.m
+
14
−
8
View file @
28ef5566
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
This diff is collapsed.
Click to expand it.
zUtil_OAR/OAR_make.m
+
3
−
2
View file @
28ef5566
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
zUtil_OAR/make_oar_matlab.m
+
1
−
1
View file @
28ef5566
...
...
@@ -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
],
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment