Opened 5 years ago

Last modified 5 years ago

#1446 reopened enhancement

use hwloc to choose ideal number of threads

Reported by: Roland Haas Owned by: Erik Schnetter
Priority: minor Milestone:
Component: Carpet Version: development version
Keywords: Cc:


Currently if OMP_NUM_THREADS is not set Cactus ends up using the "default" number of threads, which usually is as many as there are cores. This is however not always ideal, eg if one uses 2 MPI processes per machine or when using SMT or when running on a magny cours CPU which has 1/2 of a FPU unit per SMT unit.

Instead it might be useful to have the driver consult with hwloc to choose a more ideal number of threads.

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by Roland Haas

One comment on the proposal: how would one handle MPI processes? Those are created before Cactus' main process (or at least creation is not under Cactus' control). So given that usually we want number_of_processes * number_of_threads_per_process = number_of_cores (or 2*number_of_cores or 0.5*number_of_cores) it seems that we really cannot choose the number of threads once the executable starts but have to rely on simfactory instead.

comment:2 Changed 5 years ago by Roland Haas

Resolution: wontfix
Status: newclosed

I believe this cannot be handled from within Cactus since at this point all MPI processes are already started.

comment:3 Changed 5 years ago by Erik Schnetter

Resolution: wontfix
Status: closedreopened

Reopening because this issue is about choosing the number of threads, not processes.

Modify Ticket

Change Properties
Set your email in Preferences
as reopened The owner will remain Erik Schnetter.
Next status will be 'review'.
as The resolution will be set.
to The owner will be changed from Erik Schnetter to the specified user.
The owner will be changed from Erik Schnetter to anonymous.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.