QuantumATK W-2024.09 version released on Sep 9, 2024
0 Members and 1 Guest are viewing this topic.
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()