Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8571

Controlling # Processors Used by MathKernel?

From Mark Suhovecky <suhovecky@nd.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Controlling # Processors Used by MathKernel?
Date 2012-02-17 11:25 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jhldft$orv$1@smc.vnet.net> (permalink)

Show all headers | View raw


We're running Mathematica 8.0.1 on Red Hat Enterprise Linux 5.7. This
is an HPC cluster environment, so most folks run Mathematica scripts
in batch using the format  math -script example.m

My usersr are not doing explicit Parallel programming yet, but I've
noticed that some mathematica scripts, when run, take up all all of
the cores available on a machine, i.e. - a top command will show
MathKernal using 800%
on an 8 core machine.

Is it possible to tell Mathematica how many cores it's restricted to
on a machine, rather than having it grab them all?

I've tried adding

Unprotect[$ProcessorCount];ProcessorCount=2;

to my initfile- no difference. I've also tried adding that to the
start of the script, to no effect.

If anyone's been able to do this, I'd appreciate knowing how.

Thanks,

Mark

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Controlling # Processors Used by MathKernel? Mark Suhovecky <suhovecky@nd.edu> - 2012-02-17 11:25 +0000
  Re: Controlling # Processors Used by MathKernel? "Oleksandr Rasputinov" <oleksandr_rasputinov@ymail.com> - 2012-02-20 07:53 +0000

csiph-web