-
Notifications
You must be signed in to change notification settings - Fork 2
/
glmnSubmit.m
56 lines (51 loc) · 1.06 KB
/
glmnSubmit.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
%%
%
% Validation step
%
%
% 1 - Try using the automatic validation
% 2 - Use the following manual validation
setSchedulerMessageHandler(@disp)
cluster = parcluster('guillimin');
cluster.NumWorkers = 3;
job = createCommunicatingJob(cluster, 'Type', 'spmd') ;
createTask(job, @labindex, 1, {});
submit(job);
wait(job);
out = fetchOutputs(job);
%%
%
% Verification step
%
%
% Just check the values of the overall script
test = glmnPBS();
test.getSubmitArgs()
%%
%
% CPUs vs GPUs speed checking
%
%
clear glmnPBS;
clear all;
% Workspace variable
workspace = struct;
workspace.typePretrain = 'DAE';
workspace.typeTrain = 'MLP';
workspace.nbLayers = 5;
workspace.fileIDchar = 'a';
% Submit this single job to the cluster
setSchedulerMessageHandler(@disp)
cluster = parcluster('guillimin');
cluster.NumWorkers = 11;
typesPre = {'DAE', 'RBM'};
curJob = 3;
for nbLayers = 4%:5
for idChars = 'e':'f'
for type = 1%:2
curJob = curJob + 1;
test = glmnPBS();
test.submitTo(cluster, {nbLayers, typesPre{type}, 'MLP', idChars});
end
end
end