Effacer les filtres
Effacer les filtres

Use of function save is not supported on a thread-based worker

37 vues (au cours des 30 derniers jours)
Meredith
Meredith le 2 Oct 2023
Commenté : Meredith le 3 Oct 2023
I just upgraded to Matlab 2023_a from Matlab 2019_a and suddenly I'm receiving this error:
"Use of function save is not supported on a thread-based worker."
I call save from within the parfor loop. It has never been a problem before the Matlab upgrade.

Réponse acceptée

Walter Roberson
Walter Roberson le 2 Oct 2023
parpool("threads") and backgroundPool did not exist in R2019a, so you could not have been using them back then.
If your code has not changed, then possibly your parallel preferences have been set to start thread-based pools.
  1 commentaire
Meredith
Meredith le 3 Oct 2023
Yes, it was using the "threads" cluster instead of my local cluster ("Processes"). When I switched to Processes everything worked as usual. Thanks!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by