Version 3 (modified by 7 years ago) ( diff ) | ,
---|
MPI
How to get the plugin
- run the command "bzr branch lp:~mg5hpcteam/mg5amcnlo/mpi_plugin"
- move the created directory in the PLUGIN directory of your MG5aMC code (version 2.5.2 or later required)
what the plugin does
- Allow to have a new version of the gridpack generation (LO only) working via MPI method
- define a new set of cluster type showing how to submit such run on MPI cluster. You will be likely to have to edit one of those examples to make it running in your cluster.
How to install the plugin
- launch ./bin/mg5
- configure your fortran compiler: set fortran_compiler mpif77 (or set fortran_compiler ftn)
- configure your version to cluster mode: set run_mode 1
- Choose your MPI_CLUSTER: set cluster_type cori_haswell (or edit the MPIcluster.py file as needed for your cluster)
MPI Cluster handling
- The list of supported cluster and the associated class is written in init.py
new_cluster = {'edison': MPIcluster.EdisonCluster, 'mpi_single_core': MPIcluster.OneCore, 'cori_haswell': MPIcluster.CoriClusterH, 'cori_kln': MPIcluster.CoriClusterKLN}
- They all contain hardcoded number. So you are likely needed to modify one of those class or create your own to handle your cluster. The examples in that file should be enough for you to understand the logic and modify those or create your own submission routine.
How to run the plugin
- ./bin/mg5_aMC
- type "generate p p > XXXXXXXX"
- type "output mpi PATH"
- type exit
- type "cd PATH"
- ./bin/generate_events
- this gridpack is created in the local directory and is typically named: "run_01_gridpack.tar.gz"
- you can use your gridpack on the grid(this is a single node job). You can run it as many times as needed as long as you have a different seed for each job.
Note:
See TracWiki
for help on using the wiki.