From 2772668409eb8e0b797ee93ed504c47bdc2f7701 Mon Sep 17 00:00:00 2001 From: Jaron Krogel Date: Fri, 11 Nov 2016 21:21:52 +0000 Subject: [PATCH] nexus: allow omp thread oversubscription by providing processes per node git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7222 e5b18d87-469d-4833-9cc0-8cdfa06e9491 --- nexus/library/machines.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nexus/library/machines.py b/nexus/library/machines.py index 0f079b4d7..0547beabf 100644 --- a/nexus/library/machines.py +++ b/nexus/library/machines.py @@ -1384,7 +1384,11 @@ class Supercomputer(Machine): else: job.cores = min(job.cores,job.nodes*self.cores_per_node) #end if - job.processes = max(1,int(float(job.cores)/job.threads)) + if job.processes_per_node!=None: + job.processes=job.nodes*job.processes_per_node + else: + job.processes = max(1,int(float(job.cores)/job.threads)) + #end if job.tot_cores = job.nodes*self.cores_per_node job.procs = job.nodes*self.procs_per_node