loading and saving classes in parallel computing

7 visualizaciones (últimos 30 días)
Patricia
Patricia el 6 de Abr. de 2012
HI!
I've been able to save and load the .mat file of a variable x :
x = [2;4;5];
save('x','x');
clear x
load('x')
>> x
x =
2
4
5
This also works when I try to load the same variable in pmode.
And, when I try doing that with a class object (classA.mat), I am able to save and load it successfully.
However, when I am in pmode, classA comes up empty when i try to load it.
I even tried labSend and Labreceive:
pmode start 'lsfconfig' 2
P>>
if labindex == 1
x = classA;
for i = 2:numlabs
labSend(x{i},i,1);
end
else
x = labReceive(1,1);
end
However, x still turns up empty in lab 2.
Is there a way around this? this somehow only applies to the classes?
Thanks,
P

Respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by