You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'll update this properly when I next get a chance, but it will be fine to comment this line out. It's indeed not in this repo, the contents of that function are
function matlabpool_cluster(n)
% Open a matlabpool with data storage in a temporary directory% This prevents multiple pools on the same machine from interacting%matlabpool close force
c=parcluster();
t=tempname();
mkdir(t);
fprintf('Matlabpool storage: %s\n',t);
c.JobStorageLocation=t;
c.NumWorkers =n;
[~, hostname] = system('hostname');
s = RandStream('mt19937ar','Seed',sum(hostname));
holdtime = round(10*rand(s,1,1));
fprintf('Holding for %ds...\n',holdtime);
pause(holdtime);
matlabpool(c, c.NumWorkers);
startup
So all it does is open a matlabpool with a particular storage directory - on the USYD cluster with shared storage, workers on different compute nodes would all try to write their temporary files to the same shared directory otherwise. If you're just running this on a normal machine, then there is no need for this functionality, it should be fine to just open a parallel pool prior to calling fit_kaggle and comment that line out
First time running the code and when trying
run fit_kaggle.m
it throws up error
Undefined function or variable 'matlabpool_cluster'.
some cursory googling suggests to me this isn't a built-in matlab function. Perhaps it's a custom utils function not contained in this repo??
The text was updated successfully, but these errors were encountered: