[Eeglablist] AMICA on NSG - jobs don't exit and thus timeout
John Johnson
john.johnson at gatech.edu
Sat Feb 22 07:16:10 PST 2020
I'm running jobs on NSG using EEGLAB on Comet.
These jobs are created using a script, and worked correctly about a year
ago.
Now, all my jobs are timing out, despite having finished (according to
stdout.txt).
When I run the same scripts locally, Matlab runs all the code, then
stops at the Matlab prompt, even after I've added an `exit(0)` to the
script, as suggested by NSG tech support. If I then type `exit` at the
`>>` prompt, the dataset is saved and all is well.
Testing a minimal example
```
disp('okay');
exit(0);
```
Works correctly.
Could this be because `runamica15.m` runs a binary to do the processing?
The jobs take about 30hrs to run, so troubleshooting is difficult.
Any suggestions appreciated.
Here is the job script being submitted to NSG:
```
[ALLEEG EEG CURRENTSET ALLCOM] = eeglab;
in_filename = 'p20_vi_nf_vf_preasr_kine.set';
out_filename = 'p20_vi_nf_vf_preasr_kine_amica.set'
EEG = pop_loadset('filename',in_filename);
datfile = EEG.datfile;
arglist = cell(1, 10);
arglist{1} = 'outdir';
arglist{2} = 'amicaout';
arglist{3} = 'num_chans';
arglist{4} = size(EEG.data, 1);
arglist{5} = 'pcakeep';
arglist{6} = size(EEG.data, 1);
arglist{7} = 'max_threads';
arglist{8} = 5;
arglist{9} = 'num_models';
arglist{10} = 5;
if isfield(EEG,'datfile') && length(EEG.datfile) > 0
disp('Found datfile');
[W,S,mods] = runamica15(datfile,arglist{:});
else
disp('No datfile field found in EEG structure. Will write temp
file.');
[W,S,mods] = runamica15(EEG.data(:,:),arglist{:});
end
EEG.icaweights = W;
EEG.icasphere = S(1:size(W,1),:);
EEG.icawinv = mods.A(:,:,1);
EEG.mods = mods;
[ALLEEG, EEG, CURRENTSET] = eeg_store( ALLEEG, EEG, 0 );
EEG = eeg_checkset( EEG );
EEG = pop_saveset( EEG, 'filename', out_filename);
exit(0);
```
Thanks,
John
John T. Johnson
PhD Candidate - Cognitive Motor Control Laboratory
Lab TA NEURO 4001 Neuroscience Capstone
School of Biological Sciences
Georgia Institute of Technology
john.johnson at gatech.edu
he/him/his
More information about the eeglablist
mailing list