I've encountered a strange problem with a threaded app.

Using slurm 16.05.8, I see the following:

$ srun -N1 --cpus-per-task=2 ./thread-ex
Thread 1 says Hello!
Thread 2 says Hi!
$

However, the same command with slurm 17.11.0-0pre2 generates

$ srun -N1 --cpus-per-task=2 ./thread-ex
Thread 1 says Hello!
Thread 2 says Hi!
Thread 2 says Hi!
Thread 1 says Hello!
Thread 1 says Hello!
Thread 2 says Hi!
Thread 1 says Hello!
Thread 1 says Hello!
Thread 2 says Hi! Thread 1 says Hello!
Thread 2 says Hi!
Thread 1 says Hello!
Thread 2 says Hi!
Thread 2 says Hi!
Thread 1 says Hello!
Thread 2 says Hi!

Thread 1 says Hello!
Thread 2 says Hi!
Thread 1 says Hello!
Thread 2 says Hi!
$

If I add "-n1" to the command line, I get back to the previous behavior.

Is this an intentional change?

Andy

--
Andy Riebs
andy.ri...@hpe.com
Hewlett-Packard Enterprise
High Performance Computing Software Engineering
+1 404 648 9024
My opinions are not necessarily those of HPE
    May the source be with you!

Reply via email to