- Andrew Perrin
- Jan 20, 2024
- 1 min read
The MATLAB version of my program was having an issue where some of the parallel workers (each worker runs on a processor core) would sometimes just spontaneously quit and walk off the job, so to speak, leaving the remaining workers/cores to pick up the slack. Some googling revealed that this could happen if they ran out of memory, and so I tried to update my code to use less RAM by clearing out large variables as soon as the program was through with them. This seemed to help, but in the midst of optimizing my code, I realized my MATLAB was running the old Intel version, not the new Apple Silicon version, and that was another reason for the excess memory usage. I upgraded MATLAB to the proper version and now all is well.