MATLAB PARALLEL COMPUTING TOOLBOX - S Uživatelská příručka Strana 405

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 656
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 404
delete
11-61
delete
Remove job or task object from cluster and memory
Syntax
delete(obj)
Description
delete(obj) removes the job or task object, obj, from the local MATLAB session,
and removes it from the cluster’s JobStorageLocation. When the object is deleted,
references to it become invalid. Invalid objects should be removed from the workspace
with the clear command. If multiple references to an object exist in the workspace,
deleting one reference to that object invalidates the remaining references to it. These
remaining references should be cleared from the workspace with the clear command.
When you delete a job object, this also deletes all the task objects contained in that job.
Any references to those task objects will also be invalid, and you should clear them from
the workspace.
If obj is an array of objects and one of the objects cannot be deleted, the other objects in
the array are deleted and a warning is returned.
Because its data is lost when you delete an object, delete should be used only after you
have retrieved all required output data from the effected object.
Examples
Create a job object using the default profile, then delete the job:
myCluster = parcluster;
j = createJob(myCluster,'Name','myjob');
t = createTask(j,@rand,1,{10});
delete(j);
clear j t
Zobrazit stránku 404
1 2 ... 400 401 402 403 404 405 406 407 408 409 410 ... 655 656

Komentáře k této Příručce

Žádné komentáře