If you really want a good test that MPI works properly, try to also do
import platform
import time
import random
import os
from NanoLanguage import *
node = platform.node()
rand_sleep = random.random()
time.sleep(rand_sleep)
if processIsMaster():
print "Master : %s" % node
else:
print "Slave : %s" % node
env_variables = ['OMP_NUM_THREADS', 'OMP_DYNAMIC', 'MKL_NUM_THREADS', 'MKL_DYNAMIC']
for variable in env_variables:
print "%s %s=%s" % (node, variable, os.environ[variable])
from NL.ComputerScienceUtilities.ParallelTools.ParallelTools import mpiDiagnostic
mpiDiagnostic()
Although the output in the log WINDOW may appear to be missing something, perhaps the actual file created has more? It's just that it looked a bit truncated...