Does my job run on a box with multiple cpus?

Does my job run on a box with multiple cpus?

My program generates two threads that are supposed to share a
workload. It works as intended - with fine speedup - on a 2 cpu Mac.
Cannot replicate this yet on MTL.

One possibility is that my job script does not grab a box with multiple
cpus. I tried taskset first and subsequently:

#PBS -N myjob
#PBS -j oe
#PBS -l ncpus=2

Does this job guarantee to run on a 2 cpu box?

If not, what do I do wrong?

If it does, then there is deeper trouble.

I see distinct different behavior in a single cpu setting between my
Cygwin Unix and MTL's Linux, which I conjecture to be explained as

A posix signal call in Cygwin executes at a higher priority than the
invoking thread, which wakes up another thread thereby leading to work
load sharing. Not so in Linux. The invoking thread continues at full
speed and starves all other threads.

I do worry now that a posix signal call in Linux also does not get
through in a 2 cpu setting ...

Yes, I am a newbee in this realm, so please set me straight as you see fit.

2 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

Not knowing your source code, it's a little difficult to diagnose the problem, that being the case let me try and answer some ofyour questions, as best I can.

You don't need the OMP_NUM_THEADS assignment if you're running posix threads.

The batch machines consist of 32-core (CPU system), so any PBS assignments of <= 32 ncpu's will be honored.

Lascia un commento

Eseguire l'accesso per aggiungere un commento. Non siete membri? Iscriviti oggi