Action #356

Feature #353: ctobssim: Parallelize event simulations

Implement maximum number of threads as user parameter.

Added by Knödlseder Jürgen over 12 years ago. Updated about 12 years ago.

Status:ClosedStart date:07/30/2012
Priority:NormalDue date:
Assigned To:-% Done:

100%

Category:-Estimated time:16.00 hours
Target version:00-05-00
Duration:

Description

Ideally, the maximum number of thread used by ctobssim should be a hidden user parameter, so that a user can start ctobssim from the command line with something like

$ ctobssim threads=10

and the simulation will then run on 10 cores in parallel.

This requires that the maximum number of threads can be controlled from within the code.

By default we should set this parameter to 0, and in this case the automatic method of openmp should be used to determine how many cores are available.


Recurrence

No recurrence.

History

#1 Updated by Knödlseder Jürgen over 12 years ago

  • Description updated (diff)

#2 Updated by Anonymous over 12 years ago

  • Status changed from New to Resolved
  • Start date set to 07/30/2012
  • % Done changed from 0 to 100

OpenMP use environment variables, we can easily choose the number of thread by setting the OMP_NUM_THREADS variable.

export OMP_NUM_THREADS=10
ctobssim

By default, the number of threads is the number of cores.

#3 Updated by Knödlseder Jürgen about 12 years ago

  • Status changed from Resolved to Closed
  • Remaining (hours) changed from 16.0 to 0.0

Also available in: Atom PDF