I am using ParallelMap for my code,however, it gives some messages that don't affect the evaluation process but fill up the memory and take some more time. So, I want to turn off all messages on all kernels. I used Quiet but it doesn't work.

Is there a way to switch off messages on all kernels?

Any help is appreciated. Thanks in advance.

  • 3
    $\begingroup$ One way is to include Quiet in the function that you are mapping. $\endgroup$
    – Szabolcs
    Jun 26, 2013 at 8:56
  • $\begingroup$ Does Off[your message] help? $\endgroup$ Jun 26, 2013 at 9:58
  • $\begingroup$ @Szabolcs Thank you, I don't get any more. $\endgroup$
    – cesm
    Jun 26, 2013 at 12:27
  • $\begingroup$ @SjoerdC.deVries I tried it but it works only for the first kernel. $\endgroup$
    – cesm
    Jun 26, 2013 at 12:28
  • 1
    $\begingroup$ @cesm To use Sjoerd's solution, you need to evaluate the Off[...] in each kernel separately, i.e. do ParallelEvaluate[Off[...]]. Don't forget to turn it back on if it might be useful! (I'd feel safer with using Quiet) $\endgroup$
    – Szabolcs
    Jun 26, 2013 at 15:51

1 Answer 1


You do it exactly as you would do it on the main kernel. Following example which throws a message when it divides by zero:

ParallelMap[1/# &, Mod[Range[30], 3]]

Some people prefer to switch specific messages off beforehand. This can be done with

ParallelMap[1/# &, Mod[Range[30], 3]]

Or you use Quiet as suggested by Szabolcs directly in the function

ParallelMap[Quiet[1/#] &, Mod[Range[30], 3]]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.