Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
ef56f877
Commit
ef56f877
authored
Dec 20, 2010
by
Marco Ratto
Browse files
- fix for Octave printf
- missing semicolon
parent
55e553f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/parallel/AnalyseComputationalEnvironment.m
View file @
ef56f877
...
...
@@ -369,7 +369,11 @@ for Node=1:length(DataInput) % To obtain a recoursive function remove the 'for'
send
=
'exit'
;
StrCommand
=
([
s1
,
s2
,
s3
,
s4
,
s41
,
s42
,
s5
,
s51
,
s52
,
send
]);
% Mettere controllo su NbW ...
NbW
=
fprintf
(
fid
,
StrCommand
,
'%s'
);
if
exist
(
'OCTAVE_VERSION'
)
NbW
=
printf
(
fid
,
StrCommand
,
'%s'
);
else
NbW
=
fprintf
(
fid
,
StrCommand
,
'%s'
);
end
fclose
(
fid
);
dynareParallelSendFiles
(
'Tracing.m'
,
RemoteTmpFolder
,
DataInput
(
Node
));
...
...
@@ -398,7 +402,7 @@ for Node=1:length(DataInput) % To obtain a recoursive function remove the 'for'
if
Environment
% Controllare ... in Linux!
system
([
'ssh '
,
DataInput
(
Node
)
.
UserName
,
'@'
,
DataInput
(
Node
)
.
ComputerName
,
' "cd '
,
DataInput
(
Node
)
.
RemoteDirectory
,
'/'
,
RemoteTmpFolder
,
'; '
,
DataInput
(
Node
)
.
MatlabOctavePath
,
' -nosplash -nodesktop -minimize -r Tracing;" &'
])
system
([
'ssh '
,
DataInput
(
Node
)
.
UserName
,
'@'
,
DataInput
(
Node
)
.
ComputerName
,
' "cd '
,
DataInput
(
Node
)
.
RemoteDirectory
,
'/'
,
RemoteTmpFolder
,
'; '
,
DataInput
(
Node
)
.
MatlabOctavePath
,
' -nosplash -nodesktop -minimize -r Tracing;" &'
])
;
else
[
NonServeS
NenServeD
]
=
system
([
'start /B psexec \\'
,
DataInput
(
Node
)
.
ComputerName
,
' -e -u '
,
DataInput
(
Node
)
.
UserName
,
' -p '
,
DataInput
(
Node
)
.
Password
,
' -W '
,
DataInput
(
Node
)
.
RemoteDrive
,
':\'
,
DataInput
(
Node
)
.
RemoteDirectory
,
'\'
,
RemoteTmpFolder
' -low '
,
DataInput
(
Node
)
.
MatlabOctavePath
,
' -nosplash -nodesktop -minimize -r Tracing'
]);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment