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
9210ad68
Commit
9210ad68
authored
May 31, 2013
by
Sébastien Villemot
Browse files
Merge pull request #410 from rattoma/parallel_option
new option for user specific files
parents
9145d369
73765b52
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/parallel/masterParallel.m
View file @
9210ad68
...
...
@@ -98,6 +98,13 @@ if nargin>8 && initialize==1
return
end
if
isfield
(
Parallel_info
,
'local_files'
)
if
isempty
(
NamFileInput
),
NamFileInput
=
Parallel_info
.
local_files
;
else
NamFileInput
=
[
NamFileInput
;
Parallel_info
.
local_files
];
end
end
% Deactivate some 'Parallel/Warning' message in Octave!
% Comment the line 'warning('off');' in order to view the warning message
...
...
@@ -358,7 +365,7 @@ for j=1:totCPU,
dynareParallelSendFiles
([
remoteFile
,
'.m'
],
PRCDir
,
Parallel
(
indPC
));
delete
([
remoteFile
,
'.m'
]);
else
if
~
strcmp
(
Parallel
(
indPC
)
.
ComputerName
,
MasterName
),
% 0.3 Run on a remote machine!
if
~
strcmp
i
(
Parallel
(
indPC
)
.
ComputerName
,
MasterName
),
% 0.3 Run on a remote machine!
% Hybrid computing Matlab(Master)-> Octave(Slaves) and Vice Versa!
if
regexpi
([
Parallel
(
indPC
)
.
MatlabOctavePath
],
'octave'
)
command1
=
[
'psexec \\'
,
Parallel
(
indPC
)
.
ComputerName
,
' -d -e -u '
,
Parallel
(
indPC
)
.
UserName
,
' -p '
,
Parallel
(
indPC
)
.
Password
,
' -W '
,
Parallel
(
indPC
)
.
RemoteDrive
,
':\'
,
Parallel
(
indPC
)
.
RemoteDirectory
,
'\'
,
PRCDir
,
'\ -a '
,
int2str
(
Parallel
(
indPC
)
.
CPUnbr
(
j
-
nCPU0
)),
...
...
...
@@ -431,7 +438,7 @@ for j=1:totCPU,
dynareParallelSendFiles
([
remoteFile
,
'.m'
],
PRCDir
,
Parallel
(
indPC
));
delete
([
remoteFile
,
'.m'
]);
else
if
~
strcmp
(
Parallel
(
indPC
)
.
ComputerName
,
MasterName
),
% 1.3 Run on a remote machine.
if
~
strcmp
i
(
Parallel
(
indPC
)
.
ComputerName
,
MasterName
),
% 1.3 Run on a remote machine.
% Hybrid computing Matlab(Master)->Octave(Slaves) and Vice Versa!
if
regexpi
([
Parallel
(
indPC
)
.
MatlabOctavePath
],
'octave'
)
command1
=
[
'psexec \\'
,
Parallel
(
indPC
)
.
ComputerName
,
' -d -e -u '
,
Parallel
(
indPC
)
.
UserName
,
' -p '
,
Parallel
(
indPC
)
.
Password
,
' -W '
,
Parallel
(
indPC
)
.
RemoteDrive
,
':\'
,
Parallel
(
indPC
)
.
RemoteDirectory
,
'\'
,
PRCDir
,
'\ -a '
,
int2str
(
Parallel
(
indPC
)
.
CPUnbr
(
j
-
nCPU0
)),
...
...
...
@@ -571,7 +578,7 @@ idCPU = NaN(1,totCPU);
if
(
options_
.
console_mode
==
1
)
||
exist
(
'OCTAVE_VERSION'
)
if
~
exist
(
'OCTAVE_VERSION'
)
if
strcmp
([
Parallel
(
indPC
)
.
MatlabOctavePath
],
'octave'
)
if
strcmp
i
([
Parallel
(
indPC
)
.
MatlabOctavePath
],
'octave'
)
RjInformation
=
'Hybrid Computing Is Active: Remote jobs are computed by Octave!'
;
fprintf
([
RjInformation
,
'\n\n'
]);
end
...
...
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