Error using parfoor: interactive sessions

5 vues (au cours des 30 derniers jours)
Egena Onu
Egena Onu le 30 Sep 2015
Hello guys,
please is it a good practice to have two parfor loops execute in the same function? For example, I have:
parfor slice_num = 1:number_of_labs
.
.
.
end
.
.
.
parfor slice_num = 1:number_of_labs
.
.
.
end
Now, my problem is that it generates an error stating: "Found an interactive session. You cannot have multiple interactive sessions open simultaneously. To terminate the existing session, use 'delete(gcp)'"
Please, you guys, what should I do to resolve this error?
Thank you for your assistant.
  5 commentaires
Mohammad Aref
Mohammad Aref le 3 Sep 2017
As Edric stated, I encountered the same error by calling parpool for the second time.
Petru-Daniel Morosan
Petru-Daniel Morosan le 9 Jan 2018
I had this error message when multiple defintion of parpool occurs, which is not allowed in Matlab.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Parallel Computing Fundamentals dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by